Oracle 恢复delete误删数据

-- 开启行移动功能
alter table 表名 enable row movement;

-- 查询删除前的数据
select * from 表名 as of timestamp to_timestamp('删除时间点','yyyy-mm-dd hh24:mi:ss');

-- 恢复数据
flashback table 表名 to timestamp to_timestamp('删除时间点','yyyy-mm-dd hh24:mi:ss');

-- 关闭行移动功能
alter table 表名 disable row movement;
posted @ 2021-07-21 03:35  北涯  阅读(302)  评论(0)    收藏  举报