1. 創建臨時表空間
create temporary tablespace jxy_temp
tempfile 'E:\app\Administrator\oradata\orcl\jxy_temp.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
2. 創建數據表空間
create tablespace JXY
logging
datafile 'E:\app\Administrator\oradata\orcl\jxy_data.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;
3. 創建用戶並指定表空間
create user jxy identified by "jxy"
default tablespace JXY
temporary tablespace jxy_temp;
4. 給用戶授予權限
grant connect,resource,dba to jxy;