GGSCI (myorasrc.domain.com) 1> info all
Program
Status Group
Lag at Chkpt Time Since Chkpt
MANAGER
RUNNING
GGSCI
(myorasrc.domain.com) 8> add extract EXTMYDEV, INTEGRATED TRANLOG, BEGIN NOW
EXTRACT
(Integrated) added.
GGSCI
(myorasrc.domain.com) 9> add EXTTRAIL /goldengate/dirdat/devdb/cr, extract
EXTMYDEV, MEGABYTES 100
EXTTRAIL added.
GGSCI
(myorasrc.domain.com) 10> add extract PMPMYDEV, EXTTRAILSOURCE
/goldengate/dirdat/devdb/cr
EXTRACT added.
GGSCI
(myorasrc.domain.com) 11> ADD RMTTRAIL /goldengate/dirdat/devdb/CR, extract
PMPMYDEV, MEGABYTES 100
RMTTRAIL added.
GGSCI
(myorasrc.domain.com) 13> info all
Program
Status Group
Lag at Chkpt Time Since Chkpt
MANAGER
RUNNING
It shouldn’t be in
STARTING state, it should be STOPPED (Like Extract above)
GGSCI
(myorasrc.domain.com) 15> info EXTMYDEV detail
EXTRACT
EXTMYDEV Initialized 2019-01-24 10:46 Status
STOPPED
Target
Extract Trails:
Trail
Name
Seqno
RBA Max MB Trail Type
/goldengate/dirdat/devdb/cr
0
0 100 EXTTRAIL
Integrated Extract
outbound server first scn: Unavailable.Need DBLOGIN.
Integrated Extract
outbound server filtering start scn: Unavailable.Need DBLOGIN.
Extract
Source
Begin
End
Not
Available
* Initialized * 2019-01-24 10:46
Current
directory /goldengate
Report
file
/goldengate/dirrpt/EXTMYDEV.rpt (does not yet exist)
GG extract looks
good, lets check PUMP
GGSCI
(myorasrc.domain.com) 13> info PMPMYDEV detail
EXTRACT
PMPMYDEV Last Started 2019-01-24 12:18 Status RUNNING
Target
Extract Trails:
Trail
Name
Seqno RBA Max
MB Trail Type
/goldengate/dirdat/devdb/CR 122 911
100 RMTTRAIL --> Wrong should be “0”
Extract
Source
Begin
End
/goldengate/dirdat/devdb/cr000000000 * Initialized * First
Record
Current
directory /goldengate
Report file
/goldengate/dirrpt/PMPMYDEV.rpt
GGSCI
(myorasrc.domain.com) 14> info EXTMYDEV showch
EXTRACT
EXTMYDEV Last Started 2019-01-24 11:06 Status RUNNING
Current Checkpoint
Detail:
Read Checkpoint #1
Oracle
Integrated Redo Log
Startup
Checkpoint (starting position in the data source):
Recovery
Checkpoint (position of oldest unprocessed transaction in the data source):
Current
Checkpoint (position of last record read in the data source):
Write Checkpoint #1
GGS Log Trail
Current
Checkpoint (current write position):
Header:
File Information:
Configuration:
Status:
$ ls
-lrrth /goldengate/dirdat/devdb/cr*
-rw-r----- 1 oracle
dba 1.5K Jan 24 11:06 /goldengate/dirdat/devdb/cr000000000
Trail files on
source side starting with number ‘ZERO’ which is Correct as expected
CAUSE :
Issue is due to the TRAIL files NOT deleted on the replciat (TARGET) side so
when you start the PUMP on source side it will start writing to same Trail file
on target side which follows the same target trail seq number
Target side:
oratgtdev.doamin.com:NOTSET:/goldengate/dirdat/devdb
$ ls -lrth
DELETE Trail files
on replicat side and recreate PUMP
GGSCI
(myorasrc.domain.com) 16> stop PMPMYDEV
Sending STOP
request to EXTRACT PMPMYDEV ...
GGSCI
(myorasrc.domain.com) 17> delete PMPMYDEV
GGSCI (myorasrc.domain.com)
10> add extract PMPMYDEV, EXTTRAILSOURCE /goldengate/dirdat/devdb/cr
EXTRACT added.
GGSCI
(myorasrc.domain.com) 11> ADD RMTTRAIL /goldengate/dirdat/devdb/CR, extract
PMPMYDEV, MEGABYTES 100
RMTTRAIL added.
GGSCI
(myorasrc.domain.com) 16> info PMPMYDEV detail
EXTRACT
PMPMYDEV Initialized 2019-01-24 10:46 Status
STARTING
Target
Extract Trails:
Trail
Name
Seqno RBA Max
MB Trail Type
/goldengate/dirdat/devdb/CR 0 0
100 RMTTRAIL
Extract
Source
Begin
End
/goldengate/dirdat/devdb/cr000000000 * Initialized * First
Record
Current
directory /goldengate
Report
file
/goldengate/dirrpt/PMPMYDEV.rpt (does not yet exist)
Now I see Seq# and
RBA reset to ‘ZERO’ values
Trail File Sequence Number Does Not Reset To 0 While
Delete And Recreation Of Goldengate Extract. (Doc ID 2316739.1)