=====================
General
=====================
REPLICAT abends with error
ERROR OGG-02171 Error reading LCR from data source.
Need to skip the bad record in file, and restart REPLICAT
Evidences
=====================
2020-10-28 15:47:29 INFO OGG-02243 Opened trail file /software/ogg/191/dirdat/01/in/es000000000 at 2020-10-28 15:47:29.963515.
2020-10-28 15:47:50 ERROR OGG-02171 Error reading LCR from data source. Status 509, data source type TrailDataSource.
2020-10-28 15:47:50 ERROR OGG-02191 Incompatible record 101 in /software/ogg/191/dirdat/01/in/es000000000, rba 696,172 when getting trail header.
2020-10-28 15:47:50 INFO OGG-02333 Reading /software/ogg/191/dirdat/01/in/es000000000, current RBA 696,172, 0 records, m_file_seqno = 0, m_file_rba = 696,172.
=====================
Solution
=====================
In general, need to skip the bad record in file, and restart REPLICAT.
First, position the position on the failed record.
cd $GG_HOME
oracle@qanfv-1-dbs-1b:/software/ogg/191>% ./logdump
Oracle GoldenGate Log File Dump Utility for Oracle Version 19.1.0.0.1 OGGCORE_19.1.0.0.0_PLATFORMS_190524.2201
Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
Logdump 1 >open
Error: Expected a filename
Logdump 2 >open /software/ogg/191/dirdat/01/in/es000000000
Current LogTrail is /software/ogg/191/dirdat/01/in/es000000000
Logdump 3 >ghdr on
Logdump 4 >detail on
Logdump 5 >pos 696172
Reading forward from RBA 696172
Logdump 6 >scanforheader
___________________________________________________________________
Hdr-Ind : E (x45) Partition : L (x4c)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 962 (x03c2) IO Time : 2020/10/26
0:19:07.005.706
IOType : 135 (x87) OrigNode : 255 (xff)
TransInd : . (x03) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 200132 AuditPos : 122219168
Continued : N (x00) RecCount : 1 (x01)
2020/10/26 10:19:07.005.706 GGSUnifiedPKUpdate Len 962 RBA 696345
Name: OGG.GG_HEARTBEAT_SEED (TDR Index: 2)
After Image: Partition x4c G s
df01 0000 0000 0700 0000 0300 4947 5401 001f 0000 | ............IGT.....
0032 3032 302d 3130 2d32 363a 3130 3a31 383a 3037 | .2020-10-26:10:18:07
2e32 3530 3233 3330 3030 0200 0400 ffff 0000 0300 | .250233000..........
0400 ffff 0000 0400 0400 ffff 0000 0500 0400 ffff | ....................
0000 0600 1f00 ffff 0000 0000 0000 0000 0000 0000 | ....................
0000 0000 0000 0000 0000 0000 0000 0000 0007 001f | ....................
00ff ff00 0000 0000 0000 0000 0000 0000 0000 0000 | ....................
Before Image Len 483 (x000001e3)
BeforeColumnLen 479 (x000001df)
Column 0 (x0000), Len 7 (x0007)
Column 1 (x0001), Len 31 (x001f)
Column 2 (x0002), Len 4 (x0004)
Column 3 (x0003), Len 4 (x0004)
Column 4 (x0004), Len 4 (x0004)
Column 5 (x0005), Len 4 (x0004)
Column 6 (x0006), Len 31 (x001f)
Column 7 (x0007), Len 31 (x001f)
Column 8 (x0008), Len 31 (x001f)
Column 9 (x0009), Len 31 (x001f)
Column 10 (x000a), Len 12 (x000c)
Column 11 (x000b), Len 14 (x000e)
Column 12 (x000c), Len 4 (x0004)
Column 13 (x000d), Len 31 (x001f)
Column 14 (x000e), Len 31 (x001f)
Column 15 (x000f), Len 31 (x001f)
Column 16 (x0010), Len 31 (x001f)
Column 17 (x0011), Len 4 (x0004)
Column 18 (x0012), Len 14 (x000e)
Column 19 (x0013), Len 14 (x000e)
Column 20 (x0014), Len 31 (x001f)
After Image Len 479 (x000001df)
Column 0 (x0000), Len 7 (x0007)
Column 1 (x0001), Len 31 (x001f)
Column 2 (x0002), Len 4 (x0004)
Column 3 (x0003), Len 4 (x0004)
Column 4 (x0004), Len 4 (x0004)
Column 5 (x0005), Len 4 (x0004)
Column 6 (x0006), Len 31 (x001f)
Column 7 (x0007), Len 31 (x001f)
Column 8 (x0008), Len 31 (x001f)
Column 9 (x0009), Len 31 (x001f)
Column 10 (x000a), Len 12 (x000c)
Column 11 (x000b), Len 14 (x000e)
Column 12 (x000c), Len 4 (x0004)
Column 13 (x000d), Len 31 (x001f)
Column 14 (x000e), Len 31 (x001f)
Column 15 (x000f), Len 31 (x001f)
Column 16 (x0010), Len 31 (x001f)
Column 17 (x0011), Len 4 (x0004)
Column 18 (x0012), Len 14 (x000e)
Column 19 (x0013), Len 14 (x000e)
Column 20 (x0014), Len 31 (x001f)
Logdump 7 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x0c)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 271 (x010f) IO Time : 2020/10/26
0:19:15.005.532
IOType : 5 (x05) OrigNode : 255 (xff)
TransInd : . (x00) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 200132 AuditPos : 131688464
Continued : N (x00) RecCount : 1 (x01)
2020/10/26 10:19:15.005.532 Insert Len 271 RBA 697424
Name: LAB_QANFV_ALLQQ.GA_W_COUNTERS_HISTORY (TDR Index: 1)
After Image: Partition
0c G b
0000 1300 0000 0f00 3130 3330 3130 3438 3130 3030 |
.......103010481000
3030 3001 0009 0000 0005 0033 3635 3839 0200 0600 |
00........36589....
0000 0200 3136 0300 0500 0000 0100 3004 0005 0000 | ....16........0.....
0001 0030 0500 0500 0000 0100 3006 0005 0000 0001 | ...0........0.......
0030 0700 0500 0000 0100 3008 000a 0000 0000 0000 | .0........0.........
0000 0000 0009 000a 0000 0000 0000 0000 0000 000a | ....................
0015 0000 0032 3032 302d 3130 2d32 363a 3130 3a31 | .....2020-10-26:10:1
Column 0 (x0000), Len 19 (x0013)
Column 1 (x0001), Len 9 (x0009)
Column 2 (x0002), Len 6 (x0006)
Column 3 (x0003), Len 5 (x0005)
Column 4 (x0004), Len 5 (x0005)
Column 5 (x0005), Len 5 (x0005)
Column 6 (x0006), Len 5 (x0005)
Column 7 (x0007), Len 5 (x0005)
Column 8 (x0008), Len 10 (x000a)
Column 9 (x0009), Len 10 (x000a)
Column 10 (x000a), Len 21 (x0015)
Column 11 (x000b), Len 10 (x000a)
Column 12 (x000c), Len 7 (x0007)
Column 13 (x000d), Len 10 (x000a)
Column 14 (x000e), Len 21 (x0015)
Column 15 (x000f), Len 4 (x0004)
Column 16 (x0010), Len 4 (x0004)
Column 17 (x0011), Len 4 (x0004)
Column 18 (x0012), Len 4 (x0004)
Column 19 (x0013), Len 4 (x0004)
Column 20 (x0014), Len 10 (x000a)
Column 21 (x0015), Len 5 (x0005)
Logdump 8 >
Logdump 8 >exit
./ggsci
GGSCI (qanfv-1-dbs-1b) 2> ALTER REPLICAT REP_S_01, EXTSEQNO 0 ,EXTRBA 696345
2020-10-28 15:58:14 INFO OGG-06594 Replicat REP_S_01 has been altered. Even the start up position might be updated, duplicate suppression remains active in next startup. To override duplicate suppression, start REP_S_01 with NOFILTERDUPTRANSACTIONS option.
REPLICAT altered.
GGSCI (qanfv-1-dbs-1b) 3> START REP_S_01
Sending START request to MANAGER ...
REPLICAT REP_S_01 starting
GGSCI (qanfv-1-dbs-1b) 111> INFO ALL
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING DPM_I_01 00:00:00 00:00:04
EXTRACT RUNNING DPM_P_01 00:00:00 00:00:00
EXTRACT RUNNING DPM_S_01 00:00:05 00:00:08
EXTRACT RUNNING EXT_I_01 00:00:03 00:00:06
EXTRACT RUNNING EXT_P_01 00:00:03 00:00:03
EXTRACT RUNNING EXT_S_01 00:00:02 00:00:08
REPLICAT RUNNING REP_I_01 00:00:00 00:00:01
REPLICAT RUNNING REP_P_01 00:00:00 00:00:01
REPLICAT RUNNING REP_S_01 00:00:00 00:00:01
No comments:
Post a Comment