今早不小心刪了表中的部分數據,由於存在新建的數據未備份就被誤刪除,oracle沒有開啟閃回,也沒記錄日志,最后根據某一時刻的數據還原,具體操作如下:
根據oracle自己的快照備份查詢某一時刻的某張表數據
select * from 表名 as of timestamp to_timestamp('2019-06-08 11:06:00', 'yyyy-MM-dd HH:mi:ss');
可直接刪除表數據,再插入歷史快照數據:
delete from 表名;
commit;
insert into 表名 select * from 表名 as of timestamp to_timestamp('2019-06-08 11:06:00', 'yyyy-MM-dd HH:mi:ss');