oracle闪回,找回已提交修改的记录

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_24521431/article/details/84580166

例如删除ward_id为96这条并且提交后,

记录已经没了。

执行

select * from T_HRM_WARD as of timestamp to_timestamp('2018-11-28 10:30:00','yyyy-mm-dd hh24:mi:ss') where ward_id='96'

其中查询的时间是修改之前的,这个闪回时间是需要设置的,我们公司数据库设置的是3个小时,所有3个小时以前的记录都是可以查到的,然后复制粘贴就可以了

猜你喜欢

转载自blog.csdn.net/qq_24521431/article/details/84580166