创建表空间:
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;
本文介绍如何在Oracle数据库中创建表空间、用户,并指定默认表空间。同时覆盖了表空间及用户的删除操作,以及如何进行用户授权。此外还详细说明了两种删除表空间的方法:一种仅删除逻辑结构,另一种同时删除物理文件。
1058

被折叠的 条评论
为什么被折叠?



