标签:select rom flash back 导出 文件 before recycle ble
--查看所有删除的表
select * from dba_recyclebin where droptime >‘2017-04-11:12:00:00‘
--恢复单个表
FLASHBACK TABLE HT_BM TO BEFORE DROP;
--批量恢复,使用 sqlplus 登录,使用一下命令
spool d:/flashback.sql;
select ‘flashback table ‘||owner||‘.‘||original_name||‘ to before drop‘|| ‘;‘ from dba_recyclebin where type=‘TABLE‘ and droptime >‘2017-04-11:12:00:00‘;
spool off;
--导出的sql文件,需要修改一下,把不要的删除掉,再执行
@d:/flashback.sql;
标签:select rom flash back 导出 文件 before recycle ble
原文地址:http://www.cnblogs.com/zhanglimei/p/6707142.html