oracle数据丢失恢复

1、查询可以恢复的时间点 

1
select * from V$SQL where SQL_TEXT like '%update MAP_OPTCBL_POINT_70 set shape%'

2、数据恢复到新建的表,根据时间戳

1
create table newTable as select * from oldTable as of timestamp to_timestamp('2015-10-11','yyyy-mm-dd');

3、结果集导出到Excel,使用Excel函数生成你需要的sql

1
 =CONCATENATE("update oldTable t set t.dicname='"&F2&"' where t.id="&B2&";")

4、执行得到的sql

你可能感兴趣的:(oracle数据丢失恢复)