//創建臨時表空間
create temporary tablespace test_temp
tempfile 'D:/app/hmit/oradata/mydata/test_temp.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//創建數據表空間
create tablespace test
logging
datafile 'D:/app/hmit/oradata/mydata/test.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
//創建用戶並指定表空間
create user test identified by test
default tablespace test
temporary tablespace test_temp;
//給用戶授予權限
grant connect,resource to test