ITeye博客

oracle恢复表数据至某个时间点

jiues · 2014-09-18 16:31 · oracle · Web前端 · Markdown

oracle数据update,delete 后怎么恢复到以前的数据

为了方便大家自己的解决办法:

1、select * from V$SQL where SQL_TEXT like '%update MAP_OPTCBL_POINT_70 set shape%'--查出你需要恢复的时间点

2、
create table t_table_recove --新的表
 as select * from your_table --你误操作的表
as of timestamp to_timestamp('2013-09-23 11:38:46','yyyy-mm-dd hh24:mi:ss');--时间点
--得到你想要的数据

3、delete  your_table;--将原表的数据全部删除

4、insert  into your_table  select * from t_table_recove;--恢复数据

5.删除临时表 drop table t_table_recove;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。