oracle 如何恢复数据删除并且提交(Submit)了的数据表

来源:互联网 发布:算法工程师的基本要求 编辑:程序博客网 时间:2024/05/22 15:17

1、查询当前数据库时间

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

2、查询数据表在这个时间的数据

      select * from 表名 as of timestamp to_timestamp('2017-07-04 11:10:00','yyyy-mm-dd hh24:mi:ss')

      如果在这个时间没有该数据,则时间往前推移,直到找到该数据。

3、开启数据表闪回功能

     alter table 表名 enable  row movement;

4、数据闪回

    flashback table 表名 to timestamp to_timestamp('2017-07-04 11:10:00','yyyy-mm-dd hh24:mi:ss');

原创粉丝点击