zoukankan      html  css  js  c++  java
  • oracle 数据库如何恢复到指定时间

    1、首先查询数据库系统的当前时间:因为某些系统的时间与当前时间可能不一样

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


    2、查询删除数据库的时间点数据,如果不是继续缩小范围

      其中RES_5GC_IDC是用户表或者view,此语句可以查看这个时间段的表/视图 的内容,确定该数据是否是想恢复到的数据内容,以确定恢复时间

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

    3、恢复删除且已经提交的数据,RES_5GC_IDC 是所修改的 表/视图 的名称

      使用Flashback table 的时候必须先enable row movement

      alter table RES_5GC_IDC enable row movement;
      flashback table RES_5GC_IDC to timestamp to_timestamp('2021-03-11 18:20:00','yyyy-mm-dd hh24:mi:ss');

      

    参考链接: https://www.cnblogs.com/crily-mei/articles/4609708.html

    你是一只猪
  • 相关阅读:
    axios baseURL
    TP5 nginx 配置
    Vue
    key
    curl openssl error
    vue use bulma
    《平凡的世界》
    《听听那冷雨》余光中
    心烦意乱
    祝你19岁生日快乐
  • 原文地址:https://www.cnblogs.com/guyibade/p/14519445.html
Copyright © 2011-2022 走看看