oracle創建用戶名錶空間


--創建數據表空間
create tablespace spaceName2
datafile 'd:\oracle\product\10.2.0\oradata\orcl\AMS.dbf' size 2000M
autoextend on next 100M maxsize unlimited logging
extent management local autoallocate
segment space management auto;

--創建用戶並指定表空間
create user dms
  identified by dms
  default tablespace DMS
  temporary tablespace TEMP;
-- Grant/Revoke role privileges 
grant connect to dms with admin option;
grant dba to dms with admin option;
grant resource to dms with admin option;
grant unlimited tablespace to dms with admin option; 

--刪除表空間以及數據文件
drop tablespace spaceName including contents and datafiles;

--刪除用戶名
drop user username cascade;

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