ogg目标端报错OGG-01705; checkpoint checkpoint greater than the size of the file

故障现象;

目标端 replicat 进程,由于所在主机操作系统故障导致宕机,导致abend。并报错如下;

2018-02-14 10:01:52  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  REPLICAT CAICPROD started.
2018-02-14 10:01:55  ERROR   OGG-01705  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  Input checkpoint c 92166617 for input trail file './dirdat/nc011276' is greater than the size of the file (92075909).  Please consult Oracle Knowledge Management Doc ID 1138409.1. for instructions.
2018-02-14 10:01:55  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  PROCESS ABENDING.
2018-02-14 10:04:19  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info all.

2018-02-14 10:04:27  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info CAICPROD.


原因为; 由于宕机导致cache中的数据无法写入到 trail文件中。从而导致checkpoint的值 比trail文件中的值大,也就是说checkpoint记录的值更新于trail文件中的。


解决办法;

如果ogg版本11.2,并且配置了 checkpoint table 的情况下,使用replicat进程的新参数;FILTERDUPTRANSACTIONS 解决。

1).OGG版本低于11.2.1.0.1:
无法使用此参数,因为低于此版本的checkpointtable中并不包含所需信息。处理方式需要参照后面的datapump进程的处理方式.

2).OGG版本介于11.2.1.0.1到11.2.1.0.7的:
升级到11.2.1.0.7以上版本并使用filterduptransactions参数启动Replicat进程:
start replicat  <rep name> filterduptransactions

3).OGG版本高于11.2.1.0.7的:
直接使用该参数启动rep进程:
start replicat  <rep name> filterduptransactions
可参考mos文档;OGG Replicat Checkpoint RBA Is Larger than Local Trail Size- Ogg v11.2 (文档 ID 1536741.1)


如果非11.2版本,则需要手工找到 replicat 开始的rba地址。方法如下;

参考;OGG Extract / Replicat Checkpoint RBA Is Larger than Local Trail Size (文档 ID 1138409.1)


2018-02-14 10:01:51  INFO    OGG-01815  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  Virtual Memory Facilities for: COM
    anon alloc: mmap(MAP_ANON)  anon free: munmap
    file alloc: mmap(MAP_SHARED)  file free: munmap
    target directories:
    /oraogg/ggs/dirtmp.
2018-02-14 10:01:52  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  REPLICAT CAICPROD started.
2018-02-14 10:01:55  ERROR   OGG-01705  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  Input checkpoint c 92166617 for input trail file './dirdat/nc011276' is greater than the size of the file (92075909).  Please consult Oracle Knowledge Management Doc ID 1138409.1. for instructions.
2018-02-14 10:01:55  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, caicprod.prm:  PROCESS ABENDING.
2018-02-14 10:04:19  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info all.
2018-02-14 10:04:27  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): info CAICPROD.


GGSCI (drcadb02) 4> info CAICPROD

REPLICAT   CAICPROD  Last Started 2018-02-14 10:01   Status ABENDED
Checkpoint Lag       00:00:05 (updated 70:48:48 ago)
Log Read Checkpoint  File ./dirdat/nc011276
                     2018-02-11 11:15:33.295366  RBA 92166617

A=92166617




drcadb02:/oraogg/ggs$ cd ./dirdat
drcadb02:/oraogg/ggs/dirdat$ ls -l nc011276
-rw-r-----    1 oracle   oinstall   92075909 Feb 12 21:54 nc011276




drcadb02:/oraogg/ggs$ ./logdump

Oracle GoldenGate Log File Dump Utility for Oracle
Version 11.2.1.0.20 18227972 OGGCORE_11.2.1.0.0OGGBP_PLATFORMS_140304.2209

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.


 
Logdump 439 >open /oraogg/ggs/dirdat/nc011276
Current LogTrail is /oraogg/ggs/dirdat/nc011276
Logdump 440 >ghdr on
Logdump 441 >n

2018/02/11 11:08:33.039.123 FileHeader           Len  1364 RBA 0
Name: *FileHeader*
 3000 01c6 3000 0008 4747 0d0a 544c 0a0d 3100 0002 | 0...0...GG..TL..1...  
 0003 3200 0004 2000 0000 3300 0008 02f2 8b1a 885c | ..2... ...3........\  
 f713 3400 0021 001f 7572 693a 6361 6462 7465 7374 | ..4..!..uri:cadbtest  
 3032 3a3a 6f72 616f 6767 3a44 5045 4341 5f42 4a35 | 02::oraogg:DPECA_BJ5  
 0000 2535 0000 2100 1f75 7269 3a63 6164 6274 6573 | ..%5..!..uri:cadbtes  
 7430 323a 3a6f 7261 6f67 673a 4558 5443 415f 424a | t02::oraogg:EXTCA_BJ  
 3600 0013 0011 2e2f 6469 7264 6174 2f6e 6330 3131 | 6....../dirdat/nc011  


Logdump 442 >n
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)  
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
RecLength  :   497  (x01f1)   IO Time    : 2018/02/11 11:07:14.272.036   
IOType     :     5  (x05)     OrigNode   :   255  (xff)
TransInd   :     .  (x01)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :       4072       AuditPos   : 784132544
Continued  :     N  (x00)     RecCount   :     1  (x01)

2018/02/11 11:07:14.272.036 Insert               Len   497 RBA 1372
Name: CAICCPI.T_CPI_APQ_ITEMKIND
After  Image:                                             Partition 4   G  m   
 0000 0015 0000 0011 3130 3033 3231 3332 3333 3530 | ........100321323350  
 3235 3435 3600 0100 1a00 0000 1651 4249 3035 3232 | 25456........QBI0522  
 3031 3833 3231 3333 3530 3235 3435 3600 0200 0700 | 018321335025456.....  
 0000 0331 4142 0003 0018 0000 0014 b5da c8fd d5df | ...1AB..............  
 d4f0 c8ce cfd5 b2bb bcc6 c3e2 c5e2 0004 000a 0000 | ....................  
 0000 0000 0000 0000 0005 000a ffff 0000 0000 0000 | ....................  
 0000 0006 000a ffff 0000 0000 0000 0000 0007 000a | ....................  
   
Logdump 443 >


B=1372




Logdump 443 >n
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)  
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
RecLength  :   486  (x01e6)   IO Time    : 2018/02/11 11:07:14.272.036   
IOType     :     5  (x05)     OrigNode   :   255  (xff)
TransInd   :     .  (x01)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :       4072       AuditPos   : 784132544
Continued  :     N  (x00)     RecCount   :     1  (x01)

2018/02/11 11:07:14.272.036 Insert               Len   486 RBA 1974
Name: CAICCPI.T_CPI_APQ_ITEMKIND
After  Image:                                             Partition 4   G  m   
 0000 0015 0000 0011 3130 3033 3231 3332 3333 3530 | ........100321323350  
 3235 3435 3600 0100 1a00 0000 1651 4249 3035 3232 | 25456........QBI0522  
 3031 3833 3231 3333 3530 3235 3435 3600 0200 0600 | 018321335025456.....  
 0000 0232 4200 0300 1000 0000 0cb5 dac8 fdd5 dfd4 | ...2B...............  
 f0c8 cecf d500 0400 0a00 0000 0000 0000 0166 8400 | .................f..  
 0500 0aff ff00 0000 0000 0000 0000 0600 0aff ff00 | ....................  
 0000 0000 0000 0000 0700 0aff ff00 0000 0000 0000 | ....................  
   
Logdump 444 >


./logdump
Logdump 444 >
Logdump 444 >open /oraogg/ggs/dirdat/nc011276
Current LogTrail is /oraogg/ggs/dirdat/nc011276
Logdump 445 >ghdr on
Logdump 446 >
Logdump 446 >filter include AuditRBA 4072
Logdump 447 >filter include filename CAICCPI.T_CPI_APQ_ITEMKIND
Logdump 448 >filter match all
Logdump 449 >n
Scanned     10000 records, RBA    5829989, 2018/02/11 11:07:45.446.535
Scanned     20000 records, RBA   12364411, 2018/02/11 11:08:17.288.653
Scanned     30000 records, RBA   18234514, 2018/02/11 11:08:48.344.633
Scanned     40000 records, RBA   23290942, 2018/02/11 11:09:14.315.733
Scanned     50000 records, RBA   28793534, 2018/02/11 11:09:46.374.363
Scanned     60000 records, RBA   34022574, 2018/02/11 11:10:13.352.322
Scanned     70000 records, RBA   39925961, 2018/02/11 11:10:46.399.288
Scanned     80000 records, RBA   45433700, 2018/02/11 11:11:19.450.877
Scanned     90000 records, RBA   50817666, 2018/02/11 11:11:56.342.068
Scanned    100000 records, RBA   56086540, 2018/02/11 11:12:33.404.729
Scanned    110000 records, RBA   62035038, 2018/02/11 11:13:04.355.495
Scanned    120000 records, RBA   67646120, 2018/02/11 11:13:42.305.675
Scanned    130000 records, RBA   73478756, 2018/02/11 11:14:15.996.907
Scanned    140000 records, RBA   79329190, 2018/02/11 11:14:30.440.489
Scanned    150000 records, RBA   85063737, 2018/02/11 11:14:59.295.190
Scanned    160000 records, RBA   90324832, 2018/02/11 11:15:28.778.118

Filtering suppressed 162826 records
Logdump 450 >



Input checkpoint position 92166617 for input trail file './dirdat/nc011276' is greater than the size of the file (92075909).
drcadb02:/oraogg/ggs/dirdat$ ls -l nc011276
-rw-r-----    1 oracle   oinstall   92075909 Feb 12 21:54 nc011276



A=92166617
B=1372
C=5829989

A+B-C=92166617+1372-5829989=86338000



Logdump 450 >open /oraogg/ggs/dirdat/nc011276
Current LogTrail is /oraogg/ggs/dirdat/nc011276
Logdump 451 >ghdr on
Logdump 452 >pos 86338000
Bad record found at RBA 86338000, format 5.50 Header token)        <<<<<  Bad record 放弃。
 7375 7265                                         | sure  
 






=======================================
GGSCI (drcadb02) 4> info CAICPROD

REPLICAT   CAICPROD  Last Started 2018-02-14 10:01   Status ABENDED
Checkpoint Lag       00:00:05 (updated 70:48:48 ago)
Log Read Checkpoint  File ./dirdat/nc011276
                     2018-02-11 11:15:33.295366  RBA 92166617

A=92166617




Input checkpoint position 92166617 for input trail file './dirdat/nc011276' is greater than the size of the file (92075909).
drcadb02:/oraogg/ggs/dirdat$ ls -l nc011276
-rw-r-----    1 oracle   oinstall   92075909 Feb 12 21:54 nc011276

B=92075909



Logdump 453 >open /oraogg/ggs/dirdat/nc011276
Current LogTrail is /oraogg/ggs/dirdat/nc011276
Logdump 454 >ghdr on
Logdump 455 >n

2018/02/11 11:08:33.039.123 FileHeader           Len  1364 RBA 0
Name: *FileHeader*
 3000 01c6 3000 0008 4747 0d0a 544c 0a0d 3100 0002 | 0...0...GG..TL..1...  
 0003 3200 0004 2000 0000 3300 0008 02f2 8b1a 885c | ..2... ...3........\  
 f713 3400 0021 001f 7572 693a 6361 6462 7465 7374 | ..4..!..uri:cadbtest  
 3032 3a3a 6f72 616f 6767 3a44 5045 4341 5f42 4a35 | 02::oraogg:DPECA_BJ5  
 0000 2535 0000 2100 1f75 7269 3a63 6164 6274 6573 | ..%5..!..uri:cadbtes  
 7430 323a 3a6f 7261 6f67 673a 4558 5443 415f 424a | t02::oraogg:EXTCA_BJ  
 3600 0013 0011 2e2f 6469 7264 6174 2f6e 6330 3131 | 6....../dirdat/nc011  
 
Logdump 456 >n
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)  
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
RecLength  :   497  (x01f1)   IO Time    : 2018/02/11 11:07:14.272.036   
IOType     :     5  (x05)     OrigNode   :   255  (xff)
TransInd   :     .  (x01)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :       4072       AuditPos   : 784132544
Continued  :     N  (x00)     RecCount   :     1  (x01)

2018/02/11 11:07:14.272.036 Insert               Len   497 RBA 1372
Name: CAICCPI.T_CPI_APQ_ITEMKIND
After  Image:                                             Partition 4   G  m   
 0000 0015 0000 0011 3130 3033 3231 3332 3333 3530 | ........100321323350  
 3235 3435 3600 0100 1a00 0000 1651 4249 3035 3232 | 25456........QBI0522  
 3031 3833 3231 3333 3530 3235 3435 3600 0200 0700 | 018321335025456.....  
 0000 0331 4142 0003 0018 0000 0014 b5da c8fd d5df | ...1AB..............  
 d4f0 c8ce cfd5 b2bb bcc6 c3e2 c5e2 0004 000a 0000 | ....................  
 0000 0000 0000 0000 0005 000a ffff 0000 0000 0000 | ....................  
 0000 0006 000a ffff 0000 0000 0000 0000 0007 000a | ....................  
   
Logdump 457 >


C=1372



A=92166617
B=92075909
C=1372

a-b+c=92166617-92075909+1372=92080



drcadb02:/oraogg/ggs$ ./logdump

Oracle GoldenGate Log File Dump Utility for Oracle
Version 11.2.1.0.20 18227972 OGGCORE_11.2.1.0.0OGGBP_PLATFORMS_140304.2209

Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.


 
Logdump 457 >open /oraogg/ggs/dirdat/nc011276
Current LogTrail is /oraogg/ggs/dirdat/nc011276
Logdump 458 >detail data
Logdump 459 >fileheader detail
Logdump 460 >ghdr on
 
Logdump 462 >pos 92082
Reading forward from RBA 92082
Logdump 463 >n
Bad record found at RBA 92082, format 5.50 Header token)          <<<<<  Bad record 放弃。
 0000 0001                                         | ....  
Logdump 464 >exit
drcadb02:/oraogg/ggs$




======================= 3 ======================

GGSCI (drcadb02) 4> info CAICPROD

REPLICAT   CAICPROD  Last Started 2018-02-14 10:01   Status ABENDED
Checkpoint Lag       00:00:05 (updated 70:48:48 ago)
Log Read Checkpoint  File ./dirdat/nc011276
                     2018-02-11 11:15:33.295366  RBA 92166617

A=92166617



drcadb02:/oraogg/ggs/dirdat$ ls -l nc011276
-rw-r-----    1 oracle   oinstall   92075909 Feb 12 21:54 nc011276
drcadb02:/oraogg/ggs$ ls -l ./dirdat/nc011277
-rw-r-----    1 oracle   oinstall   99998763 Feb 12 21:55 ./dirdat/nc011277



Logdump 468 >open /oraogg/ggs/dirdat/nc011276
Current LogTrail is /oraogg/ggs/dirdat/nc011276
Logdump 469 >ghdr on
Logdump 470 >count
LogTrail /oraogg/ggs/dirdat/nc011276 has 162826 records
Total Data Bytes          74592080
  Avg Bytes/Record             458
Delete                       17544
Insert                      105570
FieldComp                    29673
GGSPKUpdate                    558
SequenceValue                  278
LargeObject                   9202
Others                           1
Before Images                17544
After Images                145281

Average of 22982 Transactions
    Bytes/Trans .....        340
    Records/Trans ...          7
    Files/Trans .....          2
 
Logdump 471 >

Logdump 471 >skip 162825    >>> has 162826 records  -1
Logdump 472 >n
___________________________________________________________________
Hdr-Ind    :     E  (x45)     Partition  :     .  (x04)  
UndoFlag   :     .  (x00)     BeforeAfter:     A  (x41)  
RecLength  :   126  (x007e)   IO Time    : 2018/02/11 11:15:33.265.188   
IOType     :    15  (x0f)     OrigNode   :   255  (xff)
TransInd   :     .  (x02)     FormatType :     R  (x52)
SyskeyLen  :     0  (x00)     Incomplete :     .  (x00)
AuditRBA   :       3574       AuditPos   : 461454592
Continued  :     N  (x00)     RecCount   :     1  (x01)

2018/02/11 11:15:33.265.188 FieldComp            Len   126 RBA 92075686
Name: CAICPROD.PRPJFTIME
After  Image:                                             Partition 4   G  e   
 0000 0019 0000 0015 3230 3532 3032 3031 3834 3330 | ........205202018430  
 3130 3330 3031 3436 3600 0100 1900 0000 1536 3035 | 103001466........605  
 3230 3230 3138 3433 3031 3033 3030 3132 3133 0002 | 202018430103001213..  
 0005 0000 0001 5400 0300 0500 0000 0131 0005 0015 | ......T........1....  
 0000 3230 3138 2d30 322d 3131 3a31 313a 3136 3a35 | ..2018-02-11:11:16:5  
 3000 0600 1500 0032 3031 382d 3032 2d31 313a 3131 | 0......2018-02-11:11  
 3a31 363a 3531                                    | :16:51  
   

Logdump 473 >n   <<< 输入n后,没有显示出 下一个操作的内容。 这个方法也不行。
Logdump 474 >


以上3个方法,必须以找到 rba地址,并使用logdmp验证为 good record ,才算有效。













  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
"error:--resume checkpoint does not exist"表示在程序运行过程中出现了错误,提示指定的checkpoint(检查点)不存在。 checkpoint是一种保存程序运行状态的机制,在许多应用中可用于保存模型参数、中间结果等。当程序需要恢复之前的运行状态时,可以使用checkpoint来实现。然而,如果指定的checkpoint不存在,程序就无法正确地恢复之前的状态,会出现错误。 出现这个错误的原因可能有以下几种: 1. 指定的checkpoint路径不正确:可能是路径被拼写错误或者路径不存在。需要仔细检查输入的路径是否正确,并确认路径下是否存在指定的checkpoint文件。 2. checkpoint文件被删除或移动:如果在程序运行期间手动删除或移动了checkpoint文件,那么程序就无法找到指定的checkpoint。此时,可以尝试找回或重新生成checkpoint文件。 3. 程序中指定的checkpoint名称与实际的名称不一致:可能是程序中指定的checkpoint名称与实际生成的名称不符合。需要确保指定的checkpoint名称正确。 针对这个错误,可以采取以下一些解决措施: 1. 检查路径和文件名:仔细检查checkpoint路径和文件名是否正确,并确保路径下存在指定的checkpoint文件。 2. 恢复或重新生成checkpoint文件:如果checkpoint文件被删除或移动,可以尝试找回原有的checkpoint文件或重新生成checkpoint文件。 3. 确认指定的checkpoint名称是否正确:确保程序中指定的checkpoint名称与实际生成的名称一致。 总之,出现"error:--resume checkpoint does not exist"错误说明在程序运行过程中找不到指定的checkpoint文件。通过仔细检查路径、文件名和名称的正确性,并采取相应的恢复或重新生成措施,可以解决这个问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值