--創建數據表空間
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;
oracle創建用戶名錶空間
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.