How to Resolve Lagged and Unstoppable Extract

The EXTRACT seemed hung, but its status was still “RUNNING”. Restarting the process is my first thought, but we can’t stop it normally. At last, we force stop EXTRACT by killing the process. Here is the case:

GGSCI (product1) 5> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

EXTRACT     RUNNING     E_FIAPP1    00:51:52      19:13:54
EXTRACT     RUNNING     P_FIAPP1    00:00:00      00:00:00

As you can see, the column “Time Since Chkpt” is far behind current time. Apparently, EXTRACT stops working. Something’s wrong.

Check EXTRACT Log (Report).

GGSCI (product1) 6> view report E_FIAPP1

2018-01-02 13:36:10  ERROR   OGG-01028  Timeout in waiting for threads to respond to message:9.

Is it waiting for something temporarily? No, it has been 19 hours long. If we don’t intervene immediately, it could be hung forever. Therefore, we should try to restart EXTRACT group and see the response.


GGSCI (product1) 7> stop E_FIAPP1

Sending STOP request to EXTRACT E_FIAPP1 ...

ERROR: sending message to EXTRACT E_FIAPP1 (Timeout waiting for message).

It can’t be stopped. So we need to find another way around.


You can use KILL EXTRACT to kill an Extract process running in regular or PASSIVE mode. Use this command only if a process cannot be stopped gracefully with the STOP EXTRACT command. By the way, the Manager process will not attempt to restart a killed Extract process.

GGSCI (dbs1) 8> kill extract E_FIAPP1

Sending KILL request to MANAGER ...
Killed process (27604) for EXTRACT E_FIAPP1

It should work. Actually, it’s the same as killing the process on OS-level.

[oracle@product1 ogg]$ ps -ef | grep E_FIAPP1
oracle    79138  37711 86 Jan02 ?        20:19:20 /oggdata/ogg/extract PARAMFILE /oggdata/ogg/dirprm/e_fiapp1.prm REPORTFILE /oggdata/ogg/dirrpt/E_FIAPP1.rpt PROCESSID E_FIAPP1 USESUBDIRS
[oracle@product1 ogg]$ kill -9 79138


[oracle@product1 ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 17185003 OGGCORE_12.
Linux, x64, 64bit (optimized), Oracle 12c on Sep 25 2013 02:33:54
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.

GGSCI (product1) 1> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

EXTRACT     ABENDED     E_FIAPP1    00:51:52      19:23:10
EXTRACT     RUNNING     P_FIAPP1    00:00:00      00:00:05

GGSCI (product1) 2> start E_FIAPP1

Sending START request to MANAGER ...

GGSCI (product1) 3> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

EXTRACT     RUNNING     E_FIAPP1    20:15:12      00:00:04
EXTRACT     RUNNING     P_FIAPP1    00:00:00      00:00:00

Now the extract is moving on.

Other Commands

The following commands may achieve the same result. For example:

SEND EXTRACT extract_group_name FORCESTOP;

You can test them by yourself

Leave a Reply

Your email address will not be published. Required fields are marked *