1. 程式人生 > >oracle閃回恢復被刪除資料

oracle閃回恢復被刪除資料

一不小心刪除了表中資料...老大就在旁邊..瞬間想跑路了~!

查詢被刪除資料

select * from dbName.tableName as of timestamp to_timestamp('xxxx','yyyy-mm-dd hh24:mi:ss');
使用時間點恢復被刪除資料
flashback table tableName to timestamp to_timestamp(time,'yyyy-mm-dd hh24:mi:ss');
彈框顯示未開啟行移動時
開啟行移動
alter table tableName enable row movement;

終於平靜了~,安心敲程式碼