oracle错删数据后如何恢复

先查询某个节点的数据

select * from 表名 as of timestamp to_timestamp('2013-05-29 15:29:00','yyyy-mm-dd hh24:mi:ss'); 

进行恢复

flashback table 表名 to timestamp to_timestamp('2013-05-29 15:29:00','yyyy-mm-dd hh24:mi:ss');

如果报错,允许更改时间戳

alter table 表名 enable row movement; 

 

数据不是太多,可以直接拷贝放回去,或者把表清了,用insert放回去也行

posted @ 2021-03-01 11:05  Ice_Blue_Brother  阅读(56)  评论(0编辑  收藏  举报