一:根據數據庫SCN恢復數據
1、查詢當前數據庫SCN號
select current_scn from v$database;(不能執行的話,切換到sys用戶或system用戶查詢)
查詢到的當前值爲:91799986
2、縮小SCN號查詢被刪除表數據(若無數據繼續縮小SCN,由於數據庫操作不止一人,SCN號變化比較多,可以多縮小几個號)
select * from 表名 as of scn 91799980;
3、恢復數據
flashback table 表名 to scn 91799980;
恢復完成。若報錯:ORA-08189:未啓用行移動功能,不能閃回表;
操作如下:alert table 表名 enable row movement;