当前位置:Gxlcms > 数据库问题 > oracle闪回数据

oracle闪回数据

时间:2021-07-01 10:21:17 帮助过:2人阅读

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闪回数据

标签:

人气教程排行