In this DocumentSolution
Applies to:Oracle GoldenGate - Version: 4.0.0 - Release: 4.0.0
Information in this document applies to any platform.
SolutionIssue:
I have encountered an 'Incompatible record' in an Extract data pump. I altered the pump to RBA 0 to get around the previous error and reprocess the trail data, but then I got an "Error 509 Extract read, unexpected LOB record in /ggs/dirdat/rw003028, rba 0."
Solution Overview:
You positioned the data pump to read from the start of the trail, but that start of the trail is in the middle of a LOB.
Solution Details:
Move the data pump to read from the beginning of the next record. By using Logdump, you can look at the trail that Extract was reading and determine where the end of that LOB fragment ends. You can then position the data pump to the RBA of the next good record.
Here is an example of how to do this:
Suppose the trail starts with part 3 of a 4-part LOB. In Logdump, you see that the "continued" flag of the first record is set to "Y". At the bottom of the record, you see details on the fragment number, in the case of our example 'Column 3, LOB fragment 3 of 4'.
The next record has the "continued" flag set to "N" which means the end of the LOB. The RBA of the next record is where you need to restart the data pump. So, in this case you would alter the pump to RBA 2478.
The following illustrates this sequence.
Logdump > ghdr on (lets you see the header details of the trail record)
Logdump 153 >n (display the next record)
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 2020 (x07e4) IO Time : 2005/07/26 09:56:17.476.072
IOType : 116 (x74) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 23 AuditPos : 59965368
Continued : Y (x01) RecCount : 4 (x04)
2005/07/26 09:56:17.476.072 LargeObject Len 2020 RBA 0
Name: WYAO.TEST_B
After Image: Partition 4
0000 0003 0000 0004 0000 0002 0000 0FA0 0000 07D0 | ....................
4B44 5543 4B44 5543 4B44 5543 4B44 5543 4B44 5543 | KDUCKDUCKDUCKDUCKDUC
.
4B44 5543 4B44 5543 4B44 5543 4B44 5543 4B44 5543 | KDUCKDUCKDUCKDUCKDUC
Column 3, LOB fragment 3 of 4
Size 2000 (x07d0)
Offset 4000 (x0fa0)
Logdump >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 2020 (x07e4) IO Time : 2005/07/26 09:56:17.476.072
IOType : 116 (x74) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 23 AuditPos : 59965368
Continued : N (x00) RecCount : 5 (x05)
2005/07/26 09:56:17.476.072 LargeObject Len 2020 RBA 2082
Name: WYAO.TEST_B
After Image: Partition 4
0000 0003 0000 0004 0000 0003 0000 1770 0000 07D0 | ...............p....
5445 5354 3444 5543 4B44 5543 4B44 5543 4B44 5543 | TEST4DUCKDUCKDUCKDUC
..
4B44 5543 4B44 5543 4B44 5543 4B44 5543 4B44 5543 | KDUCKDUCKDUCKDUCKDUC
Column 3, LOB fragment 4 of 4
Size 2000 (x07d0)
Offset 6000 (x1770)
Logdump >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 6069 (x17b5) IO Time : 2005/07/26 09:56:17.476.072
IOType : 15 (x0f) OrigNode : 255 (xff)
TransInd : . (x01) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 23 AuditPos : 59969792
Continued : N (x00) RecCount : 1 (x01)
2005/07/26 09:56:17.476.072 FieldComp Len 6069 RBA 2478
Name: WYAO.TEST_B
After Image: Partition 4
0000 0009 0000 0005 3930 3930 3200 0100 1300 0000 | ........90902.......
0F6D 6973 7369 6E67 736E 6170 7368 6F74 0002 1774 | .missingsnapshot...t
0000 1770 5445 5354 3346 4953 4846 4953 4846 4953 | ...pTEST3FISHFISHFIS
..