oracle 表資料 誤刪時 資料恢復

2021-07-12 07:36:06 字數 694 閱讀 3031

通過時間恢復刪除資料

alter table drugusage enable row movement; --開啟行遷移

select * from drugusage as of timestamp to_timestamp('2016-06-02 12:00:47','yyyy-mm-dd hh24:mi:ss');   --查詢2016-06-02 12:00:47點的表資料

flashback table drugusage to timestamp to_timestamp('2016-06-02 12:00:00','yyyy-mm-dd hh24:mi:ss');   --恢復2016-06-02 12:00:47點的表資料

select * from drugusage;

通過 scn 恢復刪除資料

alter table drugusage enable row movement; --開啟行遷移

select current_scn from v$database; --查詢當期表的操作scn

select * from drugusage as of scn 3600000 order by type asc; --根據scn查表資料

flashback table drugusage to scn 3600000; --資料恢復到scn操作

select * from drugusage;

oracle表資料誤刪還原

一 如果是剛剛刪除,那麼有兩方法 首先用show parameter undo 命令檢視當時的資料庫引數undo retention設定。顯示如下 undo management string auto undo retention integer 10800 undo suppress error...

oracle誤刪除表資料,資料恢復

2016 10 23 00 05 45 silence dark 分類專欄 oracle筆記 oracle資料庫delete誤刪除,commit提交後,恢復資料的方法 1.查詢最近更新資料之前的資料 select from tablename as of timestamp to timestamp...

Oracle資料庫中,誤刪除或者修改資料恢復方法

在我們實際工作中,誤刪除或者修改oracle資料庫中的資料,怎麼辦呢?這裡給大家分享一種解決辦法。假如你誤操作的時間不超過30分鐘 資料庫預設的回滾保持段裡的資料時間,可以在pl sql執行視窗按ctrl e檢視你最近的操作 就是可以使用以下方法恢復資料。1.樣例表test 171205 資料如下圖...