dbms_flashback
1> 获得当前SCN
select dbms_flashback.get_system_change_number from dual;
SQL> select dbms_flashback.get_system_change_number from dual;
GET_SYSTEM_CHANGE_NUMBER
------------------------
4672259
2>如果能够确切知道删除之前SCN最好,如果不知道,可以进行闪回查询尝试
1* select count(*) from wrcdb.templetdic as of scn 4672259
SQL> /
COUNT(*)
----------
0
1* select count(*) from wrcdb.templetdic as of scn 4670800
SQL> /
COUNT(*)
----------
42
3>该scn中的数据和删除前一样,就可以用该scn恢复了
SQL> edit
已写入 file afiedt.buf
1* insert into wrcdb.templetdic select * from wrcdb.templetdic as of scn 4670800
SQL> /
已创建42行。
太棒了!
-
顶
- 0
-
踩