码迷,mamicode.com
首页 > 数据库 > 详细

oracle 误删除数据,回退表数据

时间:2017-11-17 17:34:52      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:min   表数据   删除   back   提交   ash   sys   lte   alter   

select * from sh_gonghuo_renyuan as of timestamp to_timestamp(‘2017-11-17 16:00:00‘,‘yyyy-mm-dd hh24:mi:ss‘);  

--3、恢复删除且已提交的数据

alter table sh_gonghuo_renyuan enable row movement;

--flashback table sh_gonghuo_renyuan to timestamp to_timestamp(‘2017-11-17 16:00:00‘,‘yyyy-mm-dd hh24:mi:ss‘);
 flashback table sh_gonghuo_renyuan to timestamp (systimestamp-interval ‘30‘ minute)
 --最后通过这个解决

oracle 误删除数据,回退表数据

标签:min   表数据   删除   back   提交   ash   sys   lte   alter   

原文地址:http://www.cnblogs.com/zrlhss/p/7852517.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!