• oracle rac切换到单实例DG后OGG的处理


    在RAC切换到单实例DG后,将OGG目录复制过去,在使用alter extract ext_name,begin now的时候报错

    2016-04-10 11:27:03 WARNING OGG-01423 Oracle GoldenGate Capture for Oracle, cknm2bet.prm: No valid default archive log destination directory found
    2016-04-10 11:27:03 INFO OGG-00546 Oracle GoldenGate Capture for Oracle, cknm2bet.prm: Default thread stack size: 10485760.
    2016-04-10 11:27:03 ERROR OGG-00446 Oracle GoldenGate Capture for Oracle, cknm2bet.prm: The number of Oracle redo threads (2) is not the same
    2016-04-10 11:27:03 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, cknm2bet.prm: PROCESS ABENDING.

    原因是以前是RAC,因此有两个thread,产生的redo是两个,现在是单实例,只有一个thread,只是产生一个redo

    解决方法:

    select THREAD#, STATUS , ENABLED , SEQUENCE#, to_char(LAST_REDO_TIME,'dd-mon-yy hh24:mi:ss') from v$thread;

       THREAD# STATUS ENABLED   SEQUENCE# TO_CHAR(LAST_REDO_TIME,'DD-
    ---------- ------ -------- ---------- ---------------------------
             1 OPEN   PUBLIC           62 17-apr-20 17:11:21
             2 CLOSED PUBLIC           38 15-apr-20 15:00:42
    select THREAD#,GROUP#,SEQUENCE#,MEMBERS,status from v$log order by SEQUENCE#;

       THREAD#     GROUP#  SEQUENCE#    MEMBERS STATUS
    ---------- ---------- ---------- ---------- ----------------
             2          4          0          1 UNUSED
             2          3         38          1 INACTIVE
             1          2         61          1 INACTIVE
             1          1         62          1 CURRENT 禁用thread2
    alter database disable thread 2; 删除thread2的logfile(unused) alter database drop logfile group 4;
    alter database drop logfile group 3;
    
    ggsc> alter extract ext_name, thread 1, extseqno 547, extrba 0;
  • 相关阅读:
    Java入门:基础算法之求数组元素的和
    Java入门:基础算法之计算三角形面积
    Java入门:基础算法之计算园的面积
    Java入门:创建多个对象
    编程语言教程书该怎么写: 向K&R学习!
    Java入门:一些初学者需要掌握的基础算法程序——二分查找
    Java入门:一些初学者需要掌握的基础算法程序——逆序输出
    Java入门:Java中获取键盘输入值的三种方法
    Java注释规范整理
    8大排序算法图文讲解
  • 原文地址:https://www.cnblogs.com/monkey6/p/12720803.html
Copyright © 2020-2023  润新知