解決Oracle誤刪資料操作

2021-10-04 11:21:57 字數 779 閱讀 8644

1.開啟行移動功能

alter

table 表名 enable

row movement;

2.恢復資料表

flashback table 表名 to

timestamp to_timestamp(

'刪除時間點'

,'yyyy-mm-dd hh24:mi:ss'

);

3.關閉移動行功能(千萬不要忘記

alter

table 表名 disable

row movement;

ps

select

*from

table

asof

timestamp to_timestamp(

'2020-03-01 22:00:00'

,'yyyy-mm-dd hh24:mi:ss');

--查詢這張表的到十點的時候的時間點資料。

insert

into

table

(select

*from

table

asof

timestamp to_timestamp(

'2020-03-01 22:00:00'

,'yyyy-mm-dd hh24:mi:ss'))

;--恢復到這張表的到十點的時候的時間點資料。

oracle資料檔案誤刪解決辦法

一 由於資料檔案被刪 資料庫啟動不了 即登入不了資料庫 如下圖 img 解決方法 1 cmd 2 sqlplus sys oracle as sysdba 即以sysdba身份登入 3 shutdown 4 startup 將出現如圖錯誤 顯示哪個檔案被誤刪 複製被刪的檔案 如 c aaa.dbf ...

ORACLE誤刪資料恢復

有很多原因導致了資料記錄的誤刪,怎樣恢復誤刪的記錄呢?先來看看這個概念 scn 系統改變號 它的英文全拼為 system change number 它是資料庫中非常重要的乙個資料結構。scn提供了oracle的內部時鐘機制,可被看作邏輯時鐘,這對於恢復操作是至關重要的 注釋 oracle 僅根據 ...

oracle誤刪資料恢復

oracle誤刪資料恢復 scn 系統改變號 它的英文全拼為 system change number 它是資料庫中非常重要的乙個資料結構。scn提供了oracle的內部時鐘機制,可被看作邏輯時鐘,這對於恢復操作是至關重要的 注釋 oracle 僅根據 scn 執行恢復。它定義了資料庫在某個確切時刻...