剛刪除數據,已提交或默認提交,閃回數據

--閃回  回退已刪除的數據
select * from NCMS_SPECIALIST_CHRONIC as of timestamp to_timestamp('2019-12-16 9:04:00', 'yyyy-mm-dd hh24:mi:ss');
--開啓這張表的狀態
alter table NCMS_SPECIALIST_CHRONIC enable row movement;
flashback table NCMS_SPECIALIST_CHRONIC  to timestamp TO_TIMESTAMP('2019-12-16 9:04:00', 'yyyy-mm-dd hh24:mi:ss');
--關閉
alter table NCMS_SPECIALIST_CHRONIC disable row movement;
相關文章
相關標籤/搜索