通过ATSCN 的方式启动REPLICAT 进程的时候报错
GGSCI> START REPLICAT RP_XXXX1, ATCSN 15572172378
GGSCI> VIEW REPORT RP_XXXX1
ERROR OGG-01028 Oracle GoldenGate Delivery for Oracle, rp_xxxx1.prm: Incompatible record (101) in ./dirdat/ra000212, rba 1477095 (getting header).
根据MOS (Doc ID 1507462.1) 完成修复:
[ogg@xxxx ogg]$ ./logdump #ogg自带的trace分析工具 Oracle GoldenGate Log File Dump Utility for Oracle Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved. Logdump 38 >log to mycase.txt #记录操作日志 --- Session log mycase.txt opened 2019/05/30 15:21:35.914.915 --- Logdump 39 >open ./dirdat/ra000212 #上面报错的tracefile Current LogTrail is /ogg/dirdat/ra000212 Logdump 40 >ghdr on Logdump 43 >pos 1477095 #上面报错的位置 Reading forward from RBA 1477095 Logdump 44 >n #next 显示下一条记录 Bad record found at RBA 1477095, format 5.50 Header token) 6a32 4459 | j2DY Logdump 45 >sfh prev #显示上一条记录的Header ___________________________________________________________________ Hdr-Ind : E (x45) Partition : . (x04) UndoFlag : . (x00) BeforeAfter: A (x41) RecLength : 254 (x00fe) IO Time : 2019/05/30 08:52:00.955.777 IOType : 5 (x05) OrigNode : 255 (xff) TransInd : . (x03) FormatType : R (x52) SyskeyLen : 0 (x00) Incomplete : . (x00) AuditRBA : 76604 AuditPos : 190794872 Continued : N (x00) RecCount : 1 (x01) 2019/05/30 08:52:00.955.777 Insert Len 254 RBA 1476996 #这里的RBA 等会儿alter 要用到 Name: JT_WX.P_WECHAT_ACCOUNT After Image: Partition 4 G s 0000 000d 0000 0009 3137 3135 3836 3738 3400 0100 | ........171586784... 2000 0000 1c6f 6743 7347 6a32 4459 5971 7848 7562 | ....ogCsGj2DYYqxHub 6e66 694a 3335 564e 7256 7047 6b00 0200 0f00 0000 | nfiJ35VNrVpGk....... 0b31 3831 3235 3936 3032 3138 0003 0015 0000 3230 | .18125960218......20 3139 2d30 352d 3330 3a30 383a 3532 3a30 3100 0400 | 19-05-30:08:52:01... 0500 0000 0130 0005 0004 ffff 0000 0006 000b 0000 | .....0.............. 0007 3834 3435 3230 3000 0700 1000 0000 0cb9 e3b6 | ..8445200........... Logdump 46 >count #正常显示,表示trace文件正常,没有corrupt,如果文件异常需要采用其他方式恢复。 ** Count begins at RBA 1476996 LogTrail /ogg/dirdat/ra000212 has 4287 records Total Data Bytes 433364 Avg Bytes/Record 101 Insert 1216 FieldComp 3071 After Images 4287 Average of 4282 Transactions Bytes/Trans ..... 149 Records/Trans ... 1 Files/Trans ..... 1
Logdump 47 >quit
修复操作:
./ggsci
GGSCI> ALTER REPLICAT RP_XXXX1, EXTRBA 1476996
GGSCI> START REPLICAT RP_XXXX1, ATCSN 15572172378 --完成恢复