oracle 資料閃回

2021-06-02 12:27:19 字數 631 閱讀 9887

select * from scott.dept

insert into scott.dept values(50,'錯誤資料','china');

select * from scott.dept as of timestamp to_timestamp('2011-12-09 10:00:00','yyyy-mm-dd hh24:mi:ss');

alter table scott.dept enable row movement

flashback table scott.dept to timestamp to_timestamp('2011-12-09 10:00:00','yyyy-mm-dd hh24:mi:ss');

select * from scott.dept as of timestamp to_timestamp('2011-12-09 10:00:00','yyyy-mm-dd hh24:mi:ss');
alter table scott.dept enable row movement
flashback table scott.dept to timestamp to_timestamp('2011-12-09 10:00:00','yyyy-mm-dd hh24:mi:ss');

恢復oracle資料 回閃

1.刪除表後,可以採用如下操作 在 user recyclebin中找到最近操作過的表名稱,然後用閃回 只能用於10g及以上版本 flash back table table name to before drop 如果是刪了或修改裡面的資料,可以先建立乙個快表將刪除修改之前狀態的資料找回到這個表中...

Oracle閃回資料操作

問題 在使用oracle時,不小心刪錯了資料,並提交了怎麼怎麼辦?解決方法 這個時候就需要使用oracle的閃回功能。flashback table 表名 to timestamp to timestamp 2014 0315 09 30 00 yyyy mm dd hh24 mi ss 使用上述語...

oracle 資料回滾查詢 閃回查詢

由於在做開發的時候,是多個同事同時對同乙個包進行操作,如果在對package body 做edit之前,沒有進行refresh操作,極易造成包的覆蓋。如果覆蓋,只能通過快閃儲存器進行恢復。1.以sys使用者登入資料庫,先找物件的obj號碼 select obj from obj as oftimes...