/*第1步:創建臨時表空間 */
create temporary tablespace mdb_temp
tempfile 'G:\data\oracle\mdb_temp.ora'
size 10m
autoextend on
next 5m maxsize 2048m
extent management local;
/*第2步:創建數據表空間 */
create tablespace mdb_data
logging
datafile 'G:\data\oracle\mdb_data.ora'
size 10m
autoextend on
next 5m maxsize 2048m
extent management local;
/*第3步:創建用戶並指定表空間 */
create user mdb identified by mdb
default tablespace mdb_data
temporary tablespace mdb_temp;
/*第4步:給用戶授予權限 */
grant connect,resource,dba to mdb;
/* 刪除表空間 */
DROP TABLESPACE mdb_temp INCLUDING CONTENTS AND DATAFILES;
存儲過程
函數