回到某個正常時間點
#回到一個小時前
1.查詢執行delete、update操作之前數據庫記錄。
select from tableName as of timestamp sysdate - 1/12
2.進行行項遷移。
alter table tableName enable row movement;
3.閃回表
flashback table tableName to timestamp sysdate - 1/12;
前提是第一步可以查得出來
#回到某個確定時間點
select * from table_name as of timestamp to_timestamp('2019-10-21 10:10:00','yyyy-mm-dd hh24:mi:ss');
alter table table_name enable row movement;
flashback table table_name to timestamp to_timestamp('2019-10-21 10:10:00','yyyy-mm-dd hh24:mi:ss');