oracle建立表空間、用戶

-- 建立空間  
create tablespace chicoTest  
datafile 'D:\oradata\chicoTest_data.dbf' size 50M  
default storage (initial 500K Next 500K  minextents 1  maxextents unlimited  pctincrease 0); 

-- Oracle建立用戶權限
-- 建立用戶  
create user chico identified by chico default tablespace chicoTest;  
-- 受權   
grant resource,connect,dba to chico; 

-- 刪除表空間   
drop tablespace "空間名" including contents and datafiles 

-- 刪除用戶 

drop user "lxg" cascade 

-- 增長表空間
alter tablespace chinawater add datafile 'c:\oracle\oradata\orcl9\ADDCHINAWATER.dbf' size 200M
 
相關文章
相關標籤/搜索