Oracle 恢复表中误删的数据
#####不小心把系统中菜单表的数据删除了,特此记录一下恢复方法:
####1、查询删除数据时间点之前的数据
select * from 表名 as of timestamp to_timestamp(‘2018-03-21 08:12:11’,‘yyyy-mm-dd hh24:mi:ss’);
####2、将row movement设置为enable
alter table 表名 enable row movement;
####3、恢复数据
flashback table 表名 to timestamp to_timestamp(‘2018-03-21 08:12:11’,‘yyyy-mm-dd hh24:mi:ss’);