保留表空间删除各表以释放空间?

[复制链接]
查看11 | 回复9 | 2007-9-9 07:55:30 | 显示全部楼层 |阅读模式
用语句怎么写能一下子达到?
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
释放空间给别的应用程序使用
还是要释放表所占用的表空间?
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
要释放表所占用的表空间
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
可以找到所有表,但不知怎样用命令删(DROP只用过针对一表)
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
select 'drop table '||table_name||';' from user_tables;
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
spool aa.sql
select 'drop table '|| table_name||';' from user_tables where tablespace_name=your tablespacename;
@sql;
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
set heading off
set echo off
set feedback off
spool drop.sql
select 'drop table '||table_name from user_tables where tablespace_name='XXX';
spool off
@drop.sql
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
thanks
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
另外要告诉的是该表空间有许多用户噢!以解决,谢!
回复

使用道具 举报

千问 | 2007-9-9 07:55:30 | 显示全部楼层
select 'drop table '|| table_name||';' from user_tables where tablespace_name=。。。
只是选啊,怎么删?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行