创建表空间:
create tablespace tablespace_test
datafile 'D:/dataBak/tablespace_test.dbf'
size 1500M
autoextend on next 5M maxsize 3000M;
创建成功后会在指定的目录生成一个dbf文件:
创建用户并指定表空间:
create user testuser identified by testuser
default tablespace tablespace_test;
删除用户
drop user testuser cascade
用户授权
grant dba to testuser
删除表空间
1、不删除物理文件:
drop tablespace tablespace_test
在原目录下依旧可以找到对应的bdf文件
2、 删除物理文件
drop tablespace tablespace_test including contents and datafiles;