当前位置:Gxlcms > 数据库问题 > oracle 误操作 数据丢失找回

oracle 误操作 数据丢失找回

时间:2021-07-01 10:21:17 帮助过:45人阅读

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

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

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

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

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

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

4、执行得到的sql

5、删除新建的表

oracle 误操作 数据丢失找回

标签:

人气教程排行