posts - 5, comments - 0, trackbacks - 0, articles - 0

oracle删除表空间

Posted on 2011-10-31 22:28 playingenjoy 阅读(268) 评论(0)  编辑  收藏
--删除空的表空间,但是不包含物理文件
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;

只有注册用户登录后才能发表评论。


网站导航: