1.DROP删除表找回
--查询回收站
SELECT * FROM RECYCLEBIN;
--回收站里存在被删除表,恢复表(h表)
flashback table h to before drop ;
--查询表
SELECT * FROM h;
--如果想彻底删除,执行脚本:
DROP TABLE H PURGE;
附:清除回收站里的信息:
清除指定表:purge table H;
清除当前用户的回收站:purge recyclebin;
清除所有用户的回收站:purge dba_recyclebin;
2.delete 删除表数据寻回
--按特定时间点恢复
select timestamp_to_scn(to_timestamp('2018-01-30 09:00:00','yyyy-mm-dd hh24:mi:ss')) from dual;
执行上面脚本得到数据 : 135127128
select * from retable_name as of scn 135127128;
--拿回记录创建临时表
create table temp_retable_name as
select * from retable_name as of scn 135127128;