oracle数据库删除 表空间还有吗

如题所述

--删除空的表空间,但是不包含物理文件
drop
tablespace
tablespace_name;
--删除非空表空间,但是不包含物理文件
drop
tablespace
tablespace_name
including
contents;
--删除空表空间,包含物理文件
drop
tablespace
tablespace_name
including
datafiles;
--删除非空表空间,包含物理文件
drop
tablespace
tablespace_name
including
contents
and
datafiles;
--如果其他表空间中的表有外键等约束关联到了本表空间中的表的字段,就要加上cascade
constraints
drop
tablespace
tablespace_name
including
contents
and
datafiles
cascade
constraints;
温馨提示:答案为网友推荐,仅供参考
相似回答
大家正在搜