天天看點

oracle 資料庫的建立

--建立資料表空間

create tablespace mytablespace

datafile 'd:/mytablespace.dbf'

Size 32m

autoextend on

maxsize unlimited;

--建立臨時表空間

create temporary tablespace temptablespace

tempfile 'd:/mytempspace.ldf'

size 32m

--删除資料表空間和臨時表空間

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;