oracle恢复数据到某个时间点

 

  --查询当前系统时间

    select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') from dual;

  --查询删除数据的时间点的数据(如果不是,则继续缩小范围)

    select * from tbl_user_role as of timestamp to_timestamp('2015-06-30 10:20:00','yyyy-mm-dd hh24:mi:ss'); 

  --恢复删除且已提交的数据

   flashback table tbl_servicearea_user to timestamp to_timestamp('2015-06-30 10:20:00','yyyy-mm-dd hh24:mi:ss');        alter table tbl_servicearea_user enable row movement;

  --注意:如果在执行上面的语句,出现错误。可以尝试执行  //允许更改时间戳  

原文地址:https://www.cnblogs.com/sctrkb/p/12775608.html