GoldenGate Extract进程hang问题解决一例

一直运行正常的extract进程突然hang住了,起初怀疑是不是找不到归档所致,但是细细的检查了下,extract所需的归档都还在,而且日志中也没报任何错。而且将extract进程停掉后,也能正常起来,没有任何错误或者告警:

  1. // ggserr.log
  2. 2015-05-25 11:03:27 INFO OGG-01513 Oracle GoldenGate Capture for Oracle, elis.prm: Positioning to (Thread 1) Sequence 5824, RBA 290544656, SCN 1415.2504802626.
  3. 2015-05-25 11:03:27 INFO OGG-01516 Oracle GoldenGate Capture for Oracle, elis.prm: Positioned to (Thread 1) Sequence 5824, RBA 290544656, SCN 1415.2504802626, May 20, 2015 4:50:25 PM.
  4. 2015-05-25 11:03:27 INFO OGG-01513 Oracle GoldenGate Capture for Oracle, elis.prm: Positioning to (Thread 2) Sequence 4798, RBA 18781712, SCN 1415.2504799356.
  5. 2015-05-25 11:03:27 INFO OGG-01516 Oracle GoldenGate Capture for Oracle, elis.prm: Positioned to (Thread 2) Sequence 4798, RBA 18781712, SCN 1415.2504799356, May 20, 2015 4:50:19 PM.
  6. 2015-05-25 11:03:27 INFO OGG-00993 Oracle GoldenGate Capture for Oracle, elis.prm: EXTRACT ELIS started.
  7. //extract进程的rpt文件
  8. 2015-05-25 11:03:27 INFO OGG-00546 Default thread stack size: 196608.
  9. 2015-05-25 11:03:27 INFO OGG-00547 Increasing thread stack size from 196608 to 1048576.
  10. 2015-05-25 11:03:27 INFO OGG-01513 Positioning to (Thread 1) Sequence 5824, RBA 290544656, SCN 1415.2504802626.
  11. 2015-05-25 11:03:27 INFO OGG-01516 Positioned to (Thread 1) Sequence 5824, RBA 290544656, SCN 1415.2504802626, May 20, 2015 4:50:25 PM.
  12. 2015-05-25 11:03:27 INFO OGG-01513 Positioning to (Thread 2) Sequence 4798, RBA 18781712, SCN 1415.2504799356.
  13. 2015-05-25 11:03:27 INFO OGG-01516 Positioned to (Thread 2) Sequence 4798, RBA 18781712, SCN 1415.2504799356, May 20, 2015 4:50:19 PM.
  14. 2015-05-25 11:03:27 INFO OGG-01517 Position of first record processed for Thread 1, Sequence 5824, RBA 290544656, SCN 1415.2504802623, May 20, 2015 4:50:25 PM.
  15. 2015-05-25 11:03:27 INFO OGG-01644 BOUNDED RECOVERY: COMPLETE: for object pool 1: p33619994_Redo Thread 1 at SeqNo: 5824, RBA: 290545168, SCN: 1415.2504802626 (6079883526466), Thread: 1.
  16. 2015-05-25 11:03:27 INFO OGG-01055 Recovery initialization completed for target file /ogg/ggate/data/dirext/lis/ea002534, at RBA 1109.
  17. 2015-05-25 11:03:27 INFO OGG-01478 Output file /ogg/ggate/data/dirext/lis/ea is using format RELEASE 11.2.
  18. 2015-05-25 11:03:27 INFO OGG-01517 Position of first record processed for Thread 2, Sequence 4798, RBA 18781712, SCN 1415.2504799356, May 20, 2015 4:50:19 PM.
  19. 2015-05-25 11:03:27 INFO OGG-01026 Rolling over remote file /ogg/ggate/data/dirext/lis/ea002534.
  20. 2015-05-25 11:03:27 INFO OGG-01053 Recovery completed for target file /ogg/ggate/data/dirext/lis/ea002535, at RBA 1109.
  21. 2015-05-25 11:03:27 INFO OGG-01057 Recovery completed for all targets.
从日志中看,extract进程没有问题,但是extract进程实际上是运行不正常的:

  1. GGSCI (hxddlis01) 8> info all
  2. Program Status Group Lag at Chkpt Time Since Chkpt
  3. MANAGER RUNNING
  4. JAGENT RUNNING
  5. EXTRACT RUNNING ELIS 96:14:58 00:00:04
  6. EXTRACT RUNNING PL2IS 00:00:00 00:00:00
  7. EXTRACT RUNNING PLIS 00:00:00 00:00:09
extract进程的lag越来越大,而且trail文件也不再增长。这情况真是让人一头雾水。我们先来看看当前系统的运行环境:

  1. GoldenGate:11.2.1.0.27
  2. Database: 11.2.0.3 两节点的RAC,使用ASM
  3. OS: AIX 6.1
然后搜索Oracle Support,找到一篇文章1432994.1,和碰到的情形有点相像。在我们的环境中也是使用了DBLOGREADER,但是不同的是DBLOGREADERBUFSIZE已经配置成1M:

  1. ...
  2. TRANLOGOPTIONS BUFSIZE 1048576
  3. TRANLOGOPTIONS DBLOGREADER, DBLOGREADERBUFSIZE 1048576
  4. --TRANLOGOPTIONS _NOREADAHEAD ANY
  5. EXTTRAIL /ogg/ggate/data/dirext/lis/ea
  6. ...
这也是AIX下能配置的最大值。难道该值还是太大的缘故?所以就尝试将该值改成了512K:

  1. ...
  2. TRANLOGOPTIONS BUFSIZE 1048576
  3. TRANLOGOPTIONS DBLOGREADER, DBLOGREADERBUFSIZE 524288
  4. --TRANLOGOPTIONS _NOREADAHEAD ANY
  5. EXTTRAIL /ogg/ggate/data/dirext/lis/ea
  6. ...
然后重启extract进程,结果就正常了。估计使用 DBLOGREADER还是有不少的bug。


  1. ...
  2. TRANLOGOPTIONS BUFSIZE 1048576
  3. TRANLOGOPTIONS DBLOGREADER, DBLOGREADERBUFSIZE 524288
  4. --TRANLOGOPTIONS _NOREADAHEAD ANY
  5. EXTTRAIL /ogg/ggate/data/dirext/lis/ea
  6. ...


  1. ...
  2. TRANLOGOPTIONS BUFSIZE 1048576
  3. TRANLOGOPTIONS DBLOGREADER, DBLOGREADERBUFSIZE 524288
  4. --TRANLOGOPTIONS _NOREADAHEAD ANY
  5. EXTTRAIL /ogg/ggate/data/dirext/lis/ea
  6. ...


  1. ...
  2. TRANLOGOPTIONS BUFSIZE 1048576
  3. TRANLOGOPTIONS DBLOGREADER, DBLOGREADERBUFSIZE 524288
  4. --TRANLOGOPTIONS _NOREADAHEAD ANY
  5. EXTTRAIL /ogg/ggate/data/dirext/lis/ea
  6. ...


  1. ...
  2. TRANLOGOPTIONS BUFSIZE 1048576
  3. TRANLOGOPTIONS DBLOGREADER, DBLOGREADERBUFSIZE 1048576
  4. --TRANLOGOPTIONS _NOREADAHEAD ANY
  5. EXTTRAIL /ogg/ggate/data/dirext/lis/ea
  6. ...

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13885898/viewspace-1670715/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13885898/viewspace-1670715/

你可能感兴趣的:(GoldenGate Extract进程hang问题解决一例)