ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Oracle 数据恢复

Oracle 数据恢复

原创 Linux操作系统 作者:wjychl 时间:2010-12-20 10:22:29 0 删除 编辑
使用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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-12-17

  • 博文量
    21
  • 访问量
    21892