oracle創建用戶



//創建空間  

1. create tablespace test  

2. datafile 'c:\oracle\oradata\orcl9\test.dbf' size 50M  

3. default storage (initial 500K   

4. Next 500K  

5. minextents 1  

6. maxextents unlimited  

7. pctincrease 0); 

//Oracle創建用戶權限

//創建用戶  

create user lxg identified by lxg default tablespace test;  

TEMPORARY TABLESPACE //臨時表空間

//授權   

grant resource,connect,dba to test; 

//刪除表空間   

drop tablespace "空間名" including contents and datafiles 

刪除用戶 

1. drop user "lxg" cascade 

增加表空間

1. alter tablespace chinawater add datafile 'c:\oracle\oradata\orcl9\ADDCHINAWATER.dbf' size 200M 

創建用戶

1. create user userName identified by password

創建用戶 userName,密碼爲 password

給用戶授權

1. grant dba to lxg;--授予DBA權限  

2. grant unlimited tablespace to lxg;--授予不限制的表空間  

3. grant select any table to lxg;--授予查詢任何表  

4. grant select any dictionary to lxg;--授予 查詢 任何字典 

1. grant dba to lxg;  

2. grant unlimited tablespace to lxg;  

3. grant select any table to lxg;  

4. grant select any dictionary to lxg; 

 

發佈了22 篇原創文章 · 獲贊 0 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章