oracle 誤刪除表/表中數據,恢復方法


步驟:

1.查詢刪除時間點之前的數據,確認好時間點

select * from TEST as of timestamp to_timestamp('2021-12-08 17:00:00', 'yyyy-mm-dd hh24:mi:ss');

2.開啟行移動
alter table TEST enable row movement;

3.數據恢復到那個時間點
flashback table TEST to timestamp to_timestamp('2021-12-08 17:00:00','yyyy-mm-dd hh24:mi:ss');

4.關閉行移動
alter table TEST disable row movement

 

參考路徑:https://blog.csdn.net/weixin_41364238/article/details/109029803


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM