回复误删除数据信息。

1、执行 alter table table_name enable row movement;

2、执行 FlashBack table table_name to timestamp to_timestamp('2012-05-24 14:59:36','yyyy-mm-dd hh24:mi:ss');

查询历史操作数据信息。

比较合理的方法是先从闪回区查找出被误删的数据,再将被误删的数据插入到原来的表中。

  1、执行 select * from A as of timestamp sysdate-10/1440;

 

    该SQL语会查找出距离现在10分钟之前A表的所有数据。

 

    sysdate-10/1440表示距离现在10分钟之前,1440这个数字表示一天有1440分钟。

 

    如果不写距离时间,SQL语句可写成:select * from A as of timestamp sysdate;表示查找出到现在为止A表中的所有数据。

 

  2、从以上查找出的数据中找出被误删的数据,再插入到原来的表中就可以了。

相关文章:

  • 2021-12-04
  • 2021-12-23
  • 2021-11-18
  • 2021-11-08
  • 2021-11-27
  • 2021-09-20
  • 2021-11-13
  • 2021-09-27
猜你喜欢
  • 2022-01-02
  • 2021-09-20
  • 2021-10-02
  • 2021-11-11
  • 2021-04-24
  • 2021-05-18
  • 2021-11-02
相关资源
相似解决方案