Oracle数据库误删除数据恢复(Oracle闪回功能)

一、启用行移动功能

alter table table_name enable row movement ;

二、可查询之前某一个时间点的数据(默认是1440分钟,即24小时内的数据)

select * from table_name as of timestamp to_timestamp('2019-07-01 12:00:00','yyyy-mm-dd hh24:mi:ss') ;

三、恢复数据

flashback table table_name to timestamp to_timestamp('2019-07-01 12:00:00','yyyy-mm-dd hh24:mi:ss') ;
原文地址:https://www.cnblogs.com/liuyb/p/11189652.html