plsql誤操作表(增刪改)的數據恢復(閃回操作)

plsql誤操作表(增刪改)的數據恢復

--允許行移動
alter table pms_app_notice enable row movement;
--查詢指定時刻的數據
select * from pms_app_notice as of timestamp to_timestamp('2018/9/15 14:39:00','yyyy-mm-dd hh24:mi:ss');
--閃回恢復數據
flashback table pms_app_notice to timestamp to_timestamp('2018/9/15 14:39:00','yyyy-mm-dd hh24:mi:ss');

--關閉行移動

alter table cloud_agent_profit_detail DISABLE row movement;

--添加查詢條件

SELECT * FROM table AS OF  TIMESTAMP TO_TIMESTAMP('2019/06/27  16:30:00', 'yyyy-mm-dd hh24:mi:ss')

WHERE id= '903410815847021';

詳情:https://blog.csdn.net/hdblocal/article/details/53376566

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章