查询某一时刻数据库中数据状态语句:
select * from abc as of timestamp to_timestamp('2015-08-24 10:31:00', 'yyyy-mm-dd hh24:mi:ss');
闪回DML语句:
Flashback table abc to timestamp to_timestamp('2014-02-14 16:00:00','yyyy-mm-dd hh24:mi:ss');
insert into abc select * from abc as of timestamp to_timestamp('2015-11-5 12:35:00', 'yyyy-mm-dd hh24:mi:ss') where id =201945 ;
闪回可能会遇到08189错误,执行下列语句:
alter table abc enable row movement;
意思是oracle允许修改rowid,Oracle插入数据时会为该条数据分配唯一rowid并且不变,要启用闪回功能必须开启可修改rowid功能
闪回DML数据是使用回滚段进行恢复