Description of the problem: ogg can't stop the extraction process when it stops
GGSCI (ex02db02.iris.cl.sh.cos) 6> stop extu6 Sending STOP request to EXTRACT EXTU6 ... There are open, long-running transactions. Before you stop Extract, make the archives containing data for those transactions available for when Extract restarts. To force Extract to stop, use the SEND EXTRACT EXTU6, FORCESTOP command. Oldest redo log files necessary to restart Extract are: Redo Thread 1, Redo Log Sequence Number 2010, SCN 0.2340216775 (2340216775), RBA 2150464016 Redo Thread 2, Redo Log Sequence Number 3767, SCN 0.2578644069 (2578644069), RBA 3712786960. GGSCI (ex02db02.iris.cl.sh.cos) 7>
Analyze the reason why the extraction process cannot stop:
GGSCI (ex02db02.iris.cl.sh.cos) 7> info extu6, showch --- View the specific information of the extraction process extu6 EXTRACT EXTU6 Last Started 2016-03-30 12:22 Status RUNNING Checkpoint Lag 00:00:01 (updated 00:00:06 ago) Log Read Checkpoint Oracle Redo Logs 2016-04-09 07:13:53 Thread 1, Seqno 2164, RBA 1977981456 ------ Log 1, current node SCN 0.2578649132 (2578649132) Log Read Checkpoint Oracle Redo Logs 2016-04-09 07:13:52 Thread 2, Seqno 3767, RBA 3712910848 ------ log 2, current node SCN 0.2578648996 (2578648996) Current Checkpoint Detail: Read Checkpoint #1 Oracle Threaded Redo Log Startup Checkpoint (starting position in the data source): Thread #: 1 Sequence #: 1438 RBA: 210499600 Timestamp: 2016-03-30 12:22:03.000000 SCN: 0.1566106138 (1566106138) Redo File: Not Available Recovery Checkpoint (position of oldest unprocessed transaction in the data source): Thread #: 1 Sequence #: 2010 RBA: 2150464016 Timestamp: 2016-04-07 10:40:45.000000 SCN: 0.2340216775 (2340216775) Redo File: Not Available Current Checkpoint (position of last record read in the data source): -----When the extraction process was stopped, it was found that Redo Thread 1, Redo Log Sequence Number 2010, SCN 0.2340216775 (2340216775), RBA 2150464016 pointed to an older log point. And the current log point is 2016-04-09 07:13:53 Thread 1, Seqno 2164, RBA 1977981456, SCN 0.2578649132 (2578649132) ------ log 1, the current node Thread #: 1 Sequence #: 2164 RBA: 1977981456 Timestamp: 2016-04-09 07:13:53.000000 SCN: 0.2578649132 (2578649132) Redo File: +RECO_EX01/oraods/onlinelog/group_3.260.906566199 BR Previous Recovery Checkpoint: Thread #: 1 Sequence #: 0 RBA: 0 Timestamp: 2016-03-30 12:22:40.228062 SCN: Not available Redo File: BR Begin Recovery Checkpoint: Thread #: 1 Sequence #: 2158 RBA: 601906176 Timestamp: 2016-04-09 04:28:28.000000 SCN: 0.2568814282 (2568814282) Redo File: BR End Recovery Checkpoint: Thread #: 1 Sequence #: 2158 RBA: 601906176 Timestamp: 2016-04-09 04:28:28.000000 SCN: 0.2568814282 (2568814282) Redo File: Read Checkpoint #2 Oracle Threaded Redo Log Startup Checkpoint (starting position in the data source): Thread #: 2 Sequence #: 2538 RBA: 2046847504 Timestamp: 2016-03-30 12:21:23.000000 SCN: 0.1566051805 (1566051805) Redo File: Not Available Recovery Checkpoint (position of oldest unprocessed transaction in the data source): Thread #: 2 Sequence #: 3767 RBA: 3712910352 Timestamp: 2016-04-09 07:13:52.000000 SCN: 0.2578648996 (2578648996) Redo File: +RECO_EX01/oraods/onlinelog/group_7.423.906566119 Current Checkpoint (position of last record read in the data source): ---It can be seen that log group 2, there is no problem, it points to the current log group. Thread #: 2 Sequence #: 3767 RBA: 3712910848 Timestamp: 2016-04-09 07:13:52.000000 SCN: 0.2578648996 (2578648996) Redo File: +RECO_EX01/oraods/onlinelog/group_7.423.906566119 BR Previous Recovery Checkpoint: Thread #: 2 Sequence #: 0 RBA: 0 Timestamp: 2016-03-30 12:22:40.228062 SCN: Not available Redo File: BR Begin Recovery Checkpoint: Thread #: 2 Sequence #: 3753 RBA: 3358690304 Timestamp: 2016-04-09 04:28:27.000000 SCN: 0.2568813956 (2568813956) Redo File: BR End Recovery Checkpoint: Thread #: 2 Sequence #: 3753 RBA: 3358690304 Timestamp: 2016-04-09 04:28:27.000000 SCN: 0.2568813956 (2568813956) Redo File: Write Checkpoint #1 GGS Log Trail Current Checkpoint (current write position): Sequence #: 212216 RBA: 11597034 Timestamp: 2016-04-09 07:13:54.176777 Extract Trail: /home/gggate/goldengate/dirdat/e6 Trail Type: EXTTRAIL Header: Version = 2 Record Source = A Type = 11 # Input Checkpoints = 2 # Output Checkpoints = 1 File Information: Block Size = 2048 Max Blocks = 100 Record Length = 4096 Current Offset = 0 Configuration: Data Source = 3 Transaction Integrity = 1 Task Type = 0 Status: Start Time = 2016-03-30 12:22:40 Last Update Time = 2016-04-09 07:13:54 Stop Status = A Last Result = 0 GGSCI (ex02db02.iris.cl.sh.cos) 8>
Processing method: Modify the extraction process to the current log group, and then stop the extraction process.
View help via ggsci>help alter extract -----
ALTER EXTRACT extu6, IOEXTSEQNO 2164, IOEXTRBA 0,thread 1