Oracle 數據恢復SQL

1.select timestamp_to_scn(to_timestamp('2016-02-23 10:00','YYYY-MM-DD HH24:MI:SS')) from dual
2.create table my_table_bak as select * from  my_table as of scn 13627283657906
3.drop table my_table
4.rename my_table_bak  to my_table


一、從flash back裏查詢被刪除的表sql

    select * from recyclebin

2.執行表的恢復code

   flashback table  tb  to before drop,這裏的tb表明你要恢復的表的名稱。flash

flashback table test to timestamp to_timestamp('2015-05-07 15:00:00','yyyy-mm-dd hh24:mi:ss');
相關文章
相關標籤/搜索