oracle rac+adg调整redo日志组导致adg备库ogg抽取进程abend

架构信息:oracle rac通过dataguard同步数据,adg备库上配置有ogg抽取进程同步到其他数据库。

环境信息:oracle数据库11.2.0.4   操作系统 rhel7  ogg版本12.1.2.1

问题描述:由于性能问题,oracle rac调整redo,根据oracle官方建议,adg主库rac调整redo日志,相应的standby log也需要调整,同时adg备库的redo日志和standby 日志也需要做相应的调整。由于adg备库redo日志调整不当,简单来说就是redo日志添加未注明thread进程号,指定的redo日志没有与主库rac的进程号绑定,导致OGG抽取adg备库数据的时候由于 OGG-00868报错而退出。

报错内容参考如下:

oracle rac+adg调整redo日志组导致adg备库ogg抽取进程abend_第1张图片

 

问题处理:

根据报错提示,参考官方文档(Doc ID 2004661.1)需要调整adg备库的standby redo日志配置。

1.先确认有问题的redo日志组,很明显standby log添加未指定thread号

SQL> select group#, THREAD#, SEQUENCE#,STATUS from v$standby_log;

GROUP#    THREAD#  SEQUENCE# STATUS
---------- ---------- ---------- ----------
         4          1     315168 ACTIVE
         5          1          0 UNASSIGNED
         6          1          0 UNASSIGNED
         7          1          0 UNASSIGNED
         8          0          0 UNASSIGNED
         9          0          0 UNASSIGNED
        10          0          0 UNASSIGNED

2.删除有问题的redo日志组

SQL> alter database drop standby logfile group 8;

Database altered.

SQL> alter database drop standby logfile group 9;

Database altered.

SQL> alter database drop standby logfile group 10;

Database altered.

3.确认问题standby log已经删除

SQL> select group#, THREAD#, SEQUENCE#,STATUS from v$standby_log;

    GROUP#    THREAD#  SEQUENCE# STATUS
---------- ---------- ---------- ----------
         4          1     315168 ACTIVE
         5          1     315169 ACTIVE
         6          1          0 UNASSIGNED
         7          1          0 UNASSIGNED

SQL> 

4.指定进程号后standby log重新添加后

SQL> select group#, THREAD#, SEQUENCE#,STATUS from v$standby_log;
GROUP#    THREAD#  SEQUENCE# STATUS
---------- ---------- ---------- ----------
         4          1     315168 ACTIVE
         5          1          0 UNASSIGNED
         6          1          0 UNASSIGNED
         7          1          0 UNASSIGNED
         8          1          0 UNASSIGNED
         9          1          0 UNASSIGNED
        10          1          0 UNASSIGNED

5.尝试启动ADG备库的ogg抽取进程

GGSCI (orcl01) 19> start ext_fb

Sending START request to MANAGER ...
EXTRACT EXT_FB starting

GGSCI (orcl01) 20> 
GGSCI (orcl01) 26> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING                                           
EXTRACT     STOPPED     DP_FB      00:00:00      00:32:20      
EXTRACT     RUNNING     EXT_FB     02:27:36      00:00:02    
GGSCI (orcl01) 27> 

6.启动adg备库上的投递进程

GGSCI (orcl01) 38> start dp_fb

Sending START request to MANAGER ...
EXTRACT DP_FB starting

GGSCI (orcl01) 39> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING                                           
EXTRACT     RUNNING     DP_FB      00:00:00      00:38:52    
EXTRACT     RUNNING     EXT_FB     02:34:08      00:00:02       

GGSCI (orcl01) 40> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING                                           
EXTRACT     RUNNING     DP_FB      00:00:00      00:38:54     
EXTRACT     RUNNING     EXT_FB     02:34:11      00:00:01      
GGSCI (orcl01) 41>

 

你可能感兴趣的:(oracle,数据库,sql)