清空 表空间

清空表空间:
drop tablespace SIRM INCLUDING CONTENTS

清空表空间并物理删除文件
drop tablespace SIRM INCLUDING CONTENTS and datafiles;


报错:有域索引或次级对象
下列可以查看 那些 影响了文件删除
查看哪些objects存储在EXAMPLE表空间,将其drop或者move,然后再drop tablespace
select owner,segment_name, segment_type from dba_segments where tablespace_name = 'EXAMPLE'; 

select distinct owner,segment_name, segment_type from dba_extents where tablespace_name='EXAMPLE';



2011-11-2 10:22:35
终于可以了

-- 先删除用户(如果要删除的表空间上有多个用户有相关数据,则要将多个用户都删除)
drop user user_name;

-- 再删除表空间:
drop tablespace tablespace_name including contents and datafiles;


然后物理删除表空间 就可以释放空间了
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值