oracle误操作表数据--回退(闪回)被提交后的数据

// 查询该时间段 这个表的状态   (就是表状态正常的时刻    下面的时间仅用于举例)
select * from 表名 as of timestamp to_timestamp('2019-09-26 11:07:00', 'yyyy-mm-dd hh24:mi:ss');
// 开启闪回
alter table 表名 enable row movement;
// 把表的状态闪回到这个时间段(下面的时间仅用于举例)
flashback table 表名  to timestamp TO_TIMESTAMP('2019-09-26 11:07:00', 'yyyy-mm-dd hh24:mi:ss');
// 关闭闪回
alter table 表名 disable row movement;

 

参考:https://www.cnblogs.com/JohnsonLiu/p/11465973.html  

posted @ 2019-09-26 11:21  lvlin241  阅读(681)  评论(0编辑  收藏  举报