oracle 誤操做 數據丟失找回

一、查詢能夠恢復的時間點 sql

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

二、數據恢復到新建的表,根據時間戳函數

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

三、結果集導出到Excel,使用Excel函數生成你須要的sqlcode

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

四、執行獲得的sqltable

五、刪除新建的表class

相關文章
相關標籤/搜索