This is just an example on how to find the record that ABENDED Oracle GoldenGate in the trace file.
Replicat process ABENDED
On ggser.log file:
2012-03-23 09:41:21 WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, R1WV90SP.prm: OCI Error ORA-00001: unique constraint (SPOE_WV90.SYPK000000000000000000004388) violated (status = 1), SQL <INSERT INTO “SPOE_WV90″.”SYT_SYSYSVERSION” (“IDAPP”,”VERSIONMAJOR”,”VERSIONMINOR”,”DATAWAREHOUSE”,”COPYRIGHTNOTICE”) VALUES (:a0,:a1,:a2,:a3,:a4)>.
2012-03-23 09:41:21 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, R1WV90SP.prm: Aborted grouped transaction on ‘SPOE_WV90.SYT_SYSYSVERSION’, Database error 1 (OCI Error ORA-00001: unique constraint (SPOE_WV90.SYPK000000000000000000004388) violated (status = 1), SQL <INSERT INTO “SPOE_WV90″.”SYT_SYSYSVERSION” (“IDAPP”,”VERSIONMAJOR”,”VERSIONMINOR”,”DATAWAREHOUSE”,”COPYRIGHTNOTICE”) VALUES (:a0,:a1,:a2,:a3,:a4)>).
2012-03-23 09:41:21 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, R1WV90SP.prm: Repositioning to rba 695714 in seqno 0.
2012-03-23 09:41:24 WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, R1WV90SP.prm: SQL error 1 mapping WV90.SYT_SYSYSVERSION to SPOE_WV90.SYT_SYSYSVERSION OCI Error ORA-00001: unique constraint (SPOE_WV90.SYPK000000000000000000004388) violated (status = 1), SQL <INSERT INTO “SPOE_WV90″.”SYT_SYSYSVERSION” (“IDAPP”,”VERSIONMAJOR”,”VERSIONMINOR”,”DATAWAREHOUSE”,”COPYRIGHTNOTICE”) VALUES (:a0,:a1,:a2,:a3,:a4)>.
Check the Disregard file:
Oracle GoldenGate Delivery for Oracle process started, group R1WV90SP discard file opened: 2012-03-23 13:51:29
Current time: 2012-03-23 13:51:33
Discarded record from action ABEND on error 1
OCI Error ORA-00001: unique constraint (SPOE_WV90.SYPK000000000000000000004388) violated (status = 1), SQL <INSERT INTO “SPOE_WV90″.”SYT_SYSYSVERSION” (“IDAPP”,”VERSIONMAJOR”,”VERSIONM
INOR”,”DATAWAREHOUSE”,”COPYRIGHTNOTICE”) VALUES (:a0,:a1,:a2,:a3,:a4)>
Aborting transaction on /gg/ORATQA70rep/dirdat/P1WV91SP/p1 beginning at seqno 0 rba 695714
error at seqno 0 rba 6268071
Problem replicating WV90.SYT_SYSYSVERSION to SPOE_WV90.SYT_SYSYSVERSION
Mapping problem with insert record (target format)…
*
IDAPP = AppFrameDBManager
VERSIONMAJOR = 2
VERSIONMINOR = 1
DATAWAREHOUSE = 0
COPYRIGHTNOTICE = Copyright 1991-2011 Flimatech Computer Enterprises Ltd.
*
Continuing to discard records up to the last discarded record from action ABEND
Next Record:
Operation discarded from seqno 0 rba 695714
Aborted insert from WV90.SYT_SYSECGROUP to SPOE_WV90.SYT_SYSECGROUP (target format)…
*
IDRECMAIN = F379F8222AA841BC95FFBA9BD41D0EB6
IDREC = 375EEE31534E4F629CBBCDCB96CA2F47
SECGROUPNAME = TIGHT
CREATEENTITY = NULL
UPDATESECURITYTYP = NULL
UPDATELOCK = NULL
IGNORELOCK = NULL
NOTE = NULL
SYSLOCKMEUI = NULL
SYSLOCKCHILDRENUI = NULL
SYSLOCKME = NULL
SYSLOCKCHILDREN = NULL
SYSLOCKDATE = 2011-09-28 21:29:05
SYSMODDATE = 2011-09-28 21:29:05
SYSMODUSER = aherring
SYSCREATEDATE = 2011-09-28 21:29:05
SYSCREATEUSER = aherring
SYSTAG = NULL
*
Get the Trace file with the record problem:
GGSCI (ls1985p.flimatech.com) 2> info R1WV90SP, detail
REPLICAT R1WV90SP Last Started 2012-03-23 14:03 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:03 ago)
Log Read Checkpoint File /gg/ORATQA70rep/dirdat/P1WV91SP/p1000000
2012-03-23 09:34:36.000301 RBA 6268447
Extract Source Begin End
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-23 09:05 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 2012-03-22 10:21 2012-03-23 09:34
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 * Initialized * 2012-03-22 10:21
/gg/ORATQA70rep/dirdat/P1WV91SP/p1000000 * Initialized * First Record
Current directory /gg/ggbin/gg111.1.1.1.2_11g
Report file /gg/ggbin/gg111.1.1.1.2_11g/dirrpt/R1WV90SP.rpt
Parameter file /gg/ggbin/dirprm/R1WV90SP.prm
Checkpoint file /gg/ggbin/gg111.1.1.1.2_11g/dirchk/R1WV90SP.cpr
Checkpoint table GG_USER.CHECKPOINT
Process file /gg/ggbin/gg111.1.1.1.2_11g/dirpcs/R1WV90SP.pcr
Stdout file /gg/ggbin/gg111.1.1.1.2_11g/dirout/R1WV90SP.out
Error log /gg/ggbin/gg111.1.1.1.2_11g/ggserr.log
Finding the record on LogDump:
./logdump
Logdump 70 >open /gg/ORATQA70rep/dirdat/P1WV91SP/p1000000
Current LogTrail is /gg/ORATQA70rep/dirdat/P1WV91SP/p1000000
Logdump 71 >reclen 1000
Reclen set to 1000
Logdump 72 >pos 6268071 # Put in the RBA position
Reading forward from RBA 6268071
Logdump 73 >fileheader detail
Logdump 74 >ghdr on
Logdump 75 >detail on
Logdump 76 >usertoken detail
Logdump 77 >n
___________________________________________________________________
Hdr-Ind : E (x45) Partition : . (x04)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 128 (x0080) IO Time : 2012/03/23 09:34:36.000.301
IOType : 5 (x05) OrigNode : 255 (xff)
TransInd : . (x02) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 1000 AuditPos : 169558676
Continued : N (x00) RecCount : 1 (x01)
2012/03/23 09:34:36.000.301 Insert Len 128 RBA 6268071
Name: WV90.SYT_SYSYSVERSION
After Image: Partition 4 GU e
0000 0015 0000 0011 4170 7046 7261 6d65 4442 4d61 | ……..AppFrameDBMa
6e61 6765 7200 0100 0a00 0000 0000 0000 0000 0200 | nager……………
0200 0a00 0000 0000 0000 0000 0100 0300 0a00 0000 | ………………..
0000 0000 0000 0000 0400 3900 0000 3543 6f70 7972 | ……….9…5Copyr
6967 6874 2031 3939 312d 3230 3131 2050 656c 6f74 | ight 1991-2011 Flimattech
6f6e 2043 6f6d 7075 7465 7220 456e 7465 7270 7269 | Computer Enterpri
7365 7320 4c74 642e | ses Ltd.
Column 0 (x0000), Len 21 (x0015)
Column 1 (x0001), Len 10 (x000a)
Column 2 (x0002), Len 10 (x000a)
Column 3 (x0003), Len 10 (x000a)
Column 4 (x0004), Len 57 (x0039)
User tokens: 144 bytes
TKNUSERNAME : SPELLE99
TKNDBNAME : ORATQA70
TKNTRANSCSN : 12413571212722
TKNTRANSID : 6.24.4025
TKNRSN : 12413571212718
TKNCTS : 2012-03-23 09:34:38.593132
Logdump 78 >

