oracle数据库误删数据后,及时闪回恢复数据

时间:2017-08-17 09:44:15   收藏:0   阅读:252

删除数据后最好不要进行其他无关操作

①确定删除数据的时间

②此语句找出删除的数据:select * from 表名 as of timestamp to_timestamp(‘删除时间点‘,‘yyyy-mm-dd hh24:mi:ss‘)

③删除的数据重新插入原表:insert into 表名 (select * from 表名 as of timestamp to_timestamp(‘删除时间点‘,‘yyyy-mm-dd hh24:mi:ss‘));

要保证主键不重复。

原文:http://www.cnblogs.com/DesignerFly/p/7379797.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!