- 分为四步
第1步:创建临时表空间:
create temporary tablespace 临时表空间名称
tempfile 'E:\oracle\oradata\orcl\临时表空间名称.dbf'
size 50m
autoextend on
next 10m maxsize 20480m
extent management local;
第2步:建立表空间:
create tablespace 表空间名称
logging
datafile 'E:\oracle\oradata\orcl\表空间名称.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
第3步:新建用户并关联表空间:
create user 用户名 identified by 密码
default tablespace 表空间名
temporary tablespace 临时表空间名;
第4步:用户权限:
grant connect,resource,dba to 用户名;
删除表空间:
DROP TABLESPACE tablespacename INCLUDING CONTENTS AND DATAFILES CASCADE CONSTRAINTS
评论区