Oracle表資料被刪除後的恢復

2021-08-26 17:33:12 字數 357 閱讀 7312

在oracle資料庫使用過程中,會存在表中資料被誤刪除的情況,如果被刪除的資料有備份,則可從備份中獲取,若表資料被刪除至發現被刪除期間沒有進行備份,則可使用oracle閃回技術進行資料恢復(適用於短時間內被刪除的資料),可恢復資料的時間根據資料庫的配置有所不同

select * from 表名 as of timeestamp to_timestamp('日期','日期格式')

示例:如下語句恢復表salb27在'2011-9-7 15:00:00'這個時刻的資料

select * from salb27 as of timestamp to_timestamp('2011-9-7 15:00:00','yyyy-mm-dd hh24:mi:ss')

Oracle 恢復被刪除的表 資料

假設表名稱為 table delete 獲得系統當前時間 如果出現 則是因為該表是被truncate的,該方法無效 假設被刪除的表名稱為 testtruncate select from user recyclebin order by droptime desc flashback table t...

oracle資料檔案被刪除後,恢復

先將資料庫設定為歸檔模式 sql plus sqlplus system system orcl as sysdba 建立實驗表空間 sql create tablespace test datafile c test.ora size 5m 建立實驗使用者 sql create user test...

oracle找回被刪除的資料

oracle中如果進行裡的delete如果想要恢復 例如檢視某一張表 select from vts users 發現有2條資料 然後執行刪除表資料操作 delete from vts users 這是檢視scn資料 select dbms flashback.get system change n...