玉祥平台客服-15087858732

标题: 删除表空间及数据文件方法 [打印本页]

作者: 张兴康    时间: 2020-2-22 13:42
标题: 删除表空间及数据文件方法
--删除空的表空间,但是不包含物理文件
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;

作者: 张兴康    时间: 2020-2-22 13:42

作者: fteair    时间: 2020-2-22 17:38

作者: fteair    时间: 2020-2-22 17:39

作者: fteair    时间: 2020-2-23 17:32

作者: fteair    时间: 2020-2-23 17:33

作者: 张兴康    时间: 2020-2-28 13:59





欢迎光临 玉祥平台客服-15087858732 (http://bbs.delit.cn/) Powered by Discuz! X3.2