oracle 误删除表/表中数据,恢复方法

步骤:

1.查询删除时间点之前的数据,确认好时间点

select * from TEST as of timestamp to_timestamp('2021-12-08 17:00:00', 'yyyy-mm-dd hh24:mi:ss');

2.开启行移动
alter table TEST enable row movement;

3.数据恢复到那个时间点
flashback table TEST to timestamp to_timestamp('2021-12-08 17:00:00','yyyy-mm-dd hh24:mi:ss');

4.关闭行移动
alter table TEST disable row movement

参考路径:https://blog.csdn.net/weixin_41364238/article/details/109029803

原文地址:https://www.cnblogs.com/yr1126/p/15662517.html