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;