PLSQL創建表空間和用戶並授權

首先使用sys登錄



然後新建sql窗口


(創建表空間)說明:datafile是指定創建位置,指向oracle數據庫的默認位置;
autoextend 設置容量爲自動增長,50M是自增的大小

create tablespace tutu_new3 datafile 'G:\oradata\tutuqc\tutu_new3.dbf' size 300M autoextend on next 50M maxsize unlimited;


(創建用戶)說明:identified by後爲用戶登錄密碼;
default tablespace爲默認表空間;
profile設爲系統默認;
ACCOUNT UNLOCK解鎖用戶;
create user ****** identified by "*******" default tablespace tutu_new3 profile DEFAULT ACCOUNT UNLOCK;

說明:分別給用戶授dba權限
grant dba to tutu_new3;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章