oracle闪回数据

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;  --开启这个功能 才能试用闪回操作。 

posted on 2015-11-16 13:10  ..小树苗  阅读(236)  评论(0编辑  收藏  举报

导航