第1步:创建临时表空间
create temporary tablespace test_temp
tempfile 'I:\ORACLE\oradata\orcl\test_temp.dbf'
size 100M
autoextend on
next 10m maxsize 1024m
extent management local;
第2步:创建数据表空间
create tablespace test_data
tempfile 'I:\ORACLE\oradata\orcl\test_data.dbf'
size 30720M
autoextend on
next 100m maxsize 31744m
extent management local;
第3步:创建用户并指定表空间
create user test_user identified by test
default tablespace test_data
temporary tablespace test_temp;
第4步:给用户授予权限
grant connect,resource,dba to test_user;