ICode9

精准搜索请尝试: 精确搜索
首页 > 数据库> 文章详细

Goldengate Integrated Capture hungs when reading from Oracle 19c

2021-10-26 09:00:06  阅读:222  来源: 互联网

标签:OGGPRO Capture hungs redo when number NEW extract RBA


一、OGG集成抽取19c db hang

在找其它资料时,翻阅到了这个MOS,觉得比较有意思就翻译发一篇博客,有遇到的小伙伴可以借鉴一下。

问题现象:

Goldengate Integrated Capture hungs when reading from Oracle 19c (Doc ID 2693598.1)
APPLIES TO: Oracle GoldenGate - Version 19.0.0.0.0 and later Information in this document applies to any platform. SYMPTOMS Integrated extract is hung . In database alert log : LOGMINER: skipped redo. Thread 2, RBA 0x00xxx.xxx.xxx, nCV 5 LOGMINER: session# 4 op 4.9 (Transaction Block)
就是说使用OGG19版本,对19C db集成模式抽取时,rba卡着不动了,db alert存在skipped redo的信息!!!

 

二、问题处理

CAUSE
The problem is introduced when Goldengate extract is configured to read from Oracle 19c.
Database Bug 30414679 - GoldenGate Extract or other LogMiner clients hang.
GoldenGate or other LogMiner clients hang when mining through redo that contains more than 4 change vectors.
The alert log indicates a message "LOGMINER: skipped redo..." prior to the hang.
SOLUTION
 1) Apply the database patch .
 2) As a workaround ,  use  dbms_logmnr_internal.skip_rba() to skip the RBA , here is the example :
LOGMINER: skipped redo. Thread 2, RBA 0x001e5d.0026a808.0138, nCV 5
LOGMINER: session# 1 op 4.9 (Transaction Block)
Get output of below query :
select session#,resetlogs_change#,RESET_TIMESTAMP from  system.logmnr_session$;
 SESSION# RESETLOGS_CHANGE# RESET_TIMESTAMP
---------- ----------------- ---------------
        1                 1       1000000000
1st number, the thread number from the message, here it is 2
2nd number, the sequence number of the redo log, in this case, it is the first number in the RBA field,
0x001e5d in hex, which is 7773 in decimal. 3rd number, the block number of the redo log block, in this case, it is the second number in the RBA field,
0026a808 in hex, which is 2533384 in decimal. 4th number, the offset within the block, in this case, is the third number in the RBA field, 0138 in hex,
which is 312 in decimal. 5th number, <RESETLOGS_CHANGE#> value from the above command output. 6th number, <RESET_TIMESTAMP> value from the above command output. 7th number, <SESSION#> value from the above command output. The command should be : SQL> exec dbms_logmnr_internal.skip_rba(2,7773,2533384,312,1,1000000000,1); Note : Make sure the extract is stopped before running above command. Then restart the extract process.

Oracle提供两种解决方法:
1.出现这个Bug,对DB安装补丁;
2.临时性跳过,通过上述的规则进行跳过Rba,但是跳过这个rba,这个rba代表的日志能否正常抽取呢? OGG没说,那样是否存在数据丢失?
3.个人建议,如果是抽取最前期的阶段,可以尝试删除重来

NEW_OGGPRO=ecc
NEW_OGG_FILE=ecc/ec
ggsci <<EOF
dblogin USERIDALIAS targetogg
delete ${NEW_OGGPRO}
unregister EXTRACT ${NEW_OGGPRO} database
add extract ${NEW_OGGPRO},INTEGRATED TRANLOG,BEGIN NOW
add exttrail ./dirdat/${NEW_OGG_FILE},extract ${NEW_OGGPRO}, megabytes 100
register extract ${NEW_OGGPRO} database CONTAINER(FPROD)
START ${NEW_OGGPRO}
exit
EOF

 

标签:OGGPRO,Capture,hungs,redo,when,number,NEW,extract,RBA
来源: https://www.cnblogs.com/lvcha001/p/15464196.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有