oracle 数据闪回

来源:互联网 发布:枪林弹雨刷永久枪软件 编辑:程序博客网 时间:2024/05/16 23:36

1.有的时候 错删一条数据 或操作错误 要恢复操作之前的数据 操作如下

select  字段 from 表名 as of timestamp to_timestamp('2015-09-08 10:10:00','yyyy-mm-ddhh24:mi:ss');--查询

示例

第一步查询:select bdate  from t_backoney  as of timestamp to_timestamp('2015-09-08 10:10:00','yyyy-mm-ddhh24:mi:ss');--查询



第二步--开启这个表的回滚语句:alter table t_backoney  enable row movement;


第三步--进行回滚:flashback table t_backoney  to timestamp to_timestamp ('2015-09-08 10:20:00','yyyy-mm-ddhh24:mi:ss');
0 0
原创粉丝点击