oracle 数据误删恢复

查询该时间段 这个表的状态
select * from 表名

as of timestamp to_timestamp('2018-10-12 9:30:00', 'yyyy-mm-dd hh24:mi:ss');

开启闪回
alter table 表名 enable row movement;

把表的状态闪回到这个时间段
flashback table 表名 to timestamp TO_TIMESTAMP('2018-10-12 9:30:00', 'yyyy-mm-dd hh24:mi:ss');

用完记得关闭闪回
alter table 表名 disable row movement

posted @ 2020-03-13 17:45  请问吃饭了吗  阅读(99)  评论(0)    收藏  举报