四步找回delete删除的表数据

四步找回delete删除的表数据

–开启行移动功能
alter table 表名 enable row movement;
–查询删除之前数据
select * from 表名 as of timestamp to_timestamp(‘2019-02-11 11:10:37’,‘yyyy-mm-dd hh24:mi:ss’)
–恢复数据
flashback table 表名 to timestamp to_timestamp(‘2019-02-11 11:10:37’,‘yyyy-mm-dd hh24:mi:ss’);
----关闭行移动功能 ( 千万别忘记 )
alter table 表名 disable row movement

猜你喜欢

转载自blog.csdn.net/jingjingxiazhe/article/details/86985252