一、誤刪除表
delete from oa.test_0504
commit;
二、往前推大概刪除時間,查詢是否有對應資料
select count(1) from oa.test_0504 as of timestamp to_date('20171121 14:45:00','yyyymmdd hh24:mi:ss') ;
三、create 一張臨時表,根據查詢結果
create table oa.test_0504_test tablespace oa_data as
select * from oa.test_0504 as of timestamp to_date('20171121 14:45:00','yyyymmdd hh24:mi:ss') ;
四、根據歷史表的資料,insert into 到源表
insert into oa.test_0504 select * from oa.test_0504_test;
五、驗證資料
flash back閃回資料
使用flashback 恢復被delete的資料 delete from tname t where t.type 5 commit select from tname 4 rows selected select sysdate from dual 確定乙個刪除之前的時間點 flashback t...
資料庫閃回(flashback)技術
資料庫type oracle 應用場景 勿執行ud 更新 刪除 操作的時候 且進行了commit操作。執行閃回可以將資料恢復。操作如下 應用場景1 將表閃回到某一時間點 1 1 閃回操作前啟用行移動功能 sql alter table temp emp enable row movement tab...
oracle oracle閃回 閃回資料庫
閃回技術 實現基於磁碟上閃回恢復區的自動備份恢復 配置閃回恢復區閃回恢復區 1 閃回資料庫 可以將資料庫恢復到以前的某個時間,使用該技術必須先配置閃回恢復區 sql connect sys newtouch as sysdba sql shutdown immediate sql startup m...