首页 > 数据库技术 > 详细

oracle闪回数据

时间:2015-11-16 13:57:29      阅读:365      评论:0      收藏:0      [点我收藏+]

insert into demo
select * from demo as of timestamp to_date(‘2015-11-16 12:30‘,‘yyyy-mm-dd hh24:mi‘)

查询到表某个时间的数据, 然后插入。 

 

其他的sql语句:

select current_scn from v$database;

select * from chg_invoice_cancel as of timestamp  sysdate-5/24/60;     --5分钟前的表数据

flashback table demo to scn 34757567;  --闪回表到一个scn的状态

alter table demo enable row movement;  --开启这个功能 才能试用闪回操作。 

oracle闪回数据

原文:http://www.cnblogs.com/lishupeng/p/4968624.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!