Oracle误删数据回复

Oracle误删数据恢复

1、查指定时间段对应表的数据

select * from 表名 
as of timestamp to_timestamp('2021-09-04 09:44:00', 'yyyy-MM-dd hh24:mi:ss')

2、开启闪回功能

alter table 表名 enable row movement

3、恢复数据

flashback table 表名 
to timestamp TO_TIMESTAMP('2021-09-04 09:44:00', 'yyyy-MM-dd hh24:mi:ss')

4、关闭闪回

alter table 表名 disable row movement
posted @ 2021-09-04 10:03  挨平底锅的灰太狼  阅读(49)  评论(0编辑  收藏  举报