Oracle误操作 数据恢复

SELECT * FROM v$sqlarea //查询最近sql记录

SELECT r.FIRST_LOAD_TIME,r.* FROM v$sqlarea r ORDER BY r.FIRST_LOAD_TIME DESC; //按时间倒序


CREATE TABLE T_TABLE_RECOVE as
SELECT * FROM bftable as of timestamp to_timestap('2017-02-13 14:14:14','yyyy-mm-dd hh24:mi:ss') //创表存放某时间段内的 数据


UPDATE bftable a set(a.字段)=(SELECT 字段 FROM T_TABLE_RECOVE b WHERE b.id=a.id) //恢复数据

 

posted @ 2020-07-30 19:07  吟恋错  阅读(140)  评论(0编辑  收藏  举报