--慎用!!!drop user test cascade; drop tablespace testdb INCLUDING CONTENTS;
只是清数据吗?可以这样做: set pagesize 0 set echo off spool d:\trunc.sql select 'truncate table '||table_name from user_tables; spool off然后打开d:\trunc.sql,检查一下有没有多余的语句。 执行清空:@trunc.sql如果要drop表,方法同上.
清除数据用truncate table table_name很快的
最好先做一次完整的备份,然后再清空,以免操作失误无法找回数据 DROP tablespace testdb INCLUDING CONTENTS;
drop tablespace testdb INCLUDING CONTENTS;
set pagesize 0
set echo off
spool d:\trunc.sql
select 'truncate table '||table_name from user_tables;
spool off然后打开d:\trunc.sql,检查一下有没有多余的语句。
执行清空:@trunc.sql如果要drop表,方法同上.
DROP tablespace testdb INCLUDING CONTENTS;
如果清空数据段表比较多的话,你可以写个存储过程什么的,循环truncate一下
exp 用户名/密码@数据库 rows=n 路径
重新建立个新库 导入导出的dmp不就可以了