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';