Oracle 误删数据恢复 – 闪回功能
1. 查询该时间段 这个表的状态
select * from 表名 as of timestamp to_timestamp(‘2019-05-24 13:00:00’, ‘yyyy-mm-dd hh24:mi:ss’) where 条件;
2. 开启闪回
alter table 表名 enable row movement;
3. 把表的状态闪回到这个时间段
flashback table 表名 to timestamp TO_TIMESTAMP(‘2019-05-24 13:00:00’, ‘yyyy-mm-dd hh24:mi:ss’);
4. 用完记得关闭闪回
alter table 表名 disable row movement