oracle误删数据恢复方法

来源:互联网 发布:淘宝图片版权保护 编辑:程序博客网 时间:2024/06/04 19:51
1. select * from         //查询A中所有的数据,可以看到三条数据

 2. delete                      //删除A中所有的数据,三条数据消失

 3. select * from        //无数据。

 4. insert into A select * from A as of timestamp to_Date('2011-01-19 15:28:00', 'yyyy-mm-dd hh24:mi:ss')             //已将误删除数据插入表中

 5. select * from        //又会看到三条数据。

分析一下第四步:

select * from A as of timestamp to_Date('2011-01-19 15:28:00', 'yyyy-mm-dd hh24:mi:ss'),什么意思呢, 找到A在2011-01-19 15:28:00这个时间点的所有数据,既然找到了,你想怎么操作都可以了。

0 0
原创粉丝点击