方法一:
在使用该方法之前,必须开启Oracle行移动功能。
alter table tableName enable row movement;
恢复表数据
flashback table tableName to timestamp to_timestamp('2017-03-11 07:00:00','yyyy-mm-dd hh24:mi:ss');
方法二:
查询当前日期-1小时前的时间点该表数据。
select * from tableName as of timestamp sysdate-1/24;
注:该办法不适用与过长时间,因为你的oracle闪回区空间是有限的。
关于方法二的小技巧:
找回确实的部分数据。
select * from tableName as of timestamp sysdate-1/24
minus
select * from tableName;
座右铭:努力不一定成功,但放弃一定失败!