工作经验-更新或删除数据后恢复

  1. select r.FIRST_LOAD_TIME,r.* from v$sqlarea r order by r.FIRST_LOAD_TIME desc ;--查看某时间段内执行的语句

  2. create table t_table_recove --新表
    as
    select * from table1--你操作的那张表
    as
    of timestamp to_timestamp('2016-08-25/11:20:09','yyyy-mm-dd hh24:mi:ss'); --执行更新操操作的时间

  3. fdelete table1;--将原表的数据全部删除
    insert into table1 select * from t_table_recove;--恢复数据

posted @ 2018-12-27 22:11  你真的好美  阅读(243)  评论(0编辑  收藏  举报