oracle數據庫的創建

--創建數據表空間
create tablespace mytablespace
datafile 'd:/mytablespace.dbf'
Size 32m
autoextend on
maxsize unlimited;

--創建臨時表空間
create temporary tablespace temptablespace
tempfile 'd:/mytempspace.ldf'
size 32m
autoextend on
maxsize unlimited;

--刪除數據表空間和臨時表空間
drop tablespace mytablespace including contents and datafiles;
drop tablespace temptablespace including contents and datafiles;

--爲表空間創建用戶
create user my identified by hht default tablespace mytablespace temporary
tablespace temptablespace;

--授權和收回
grant connect,resource to my;
revoke connect,resource from my;

--修改用戶密碼
alter user my identified by www;

--刪除用戶和所有模式
drop user my cascade;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章