使用delete删除数据时:
insert into t select * from t as of timestamp sysdate - 1/24/2 where t.id = 999;
另外一种方式就是利用闪回进行回滚
1、查询SCN
select dbms_flashback.get_system_change_number from dual; --查询结果10260843212274
2、查询
select count(*) from t as of scn 10260843205786; --查询结果:0
select count(*) from t as of scn 10260843205785; --查询结果:10
那么我们就可以确定SCN了。
3、回滚
insert into t select * from t as of scn 10260843205785;
使用drop删除表时:
flashback table t to before drop;
利用truncate 删除表时: 本人暂未找到找回方式,如果有牛人拥有方法,不妨共享一下,嘿嘿……
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25086534/viewspace-682146/
,如需转载,请注明出处,否则将追究法律责任。