1. 程式人生 > >快速強制kill goldengate異常進程

快速強制kill goldengate異常進程

mos leave ann running temp ger 但是 ica 詳細

goldengate在遇到大的事務或者異常時,使用stop 無法正常關閉進程,遇到這個問題的時候很是頭疼,於是help一下,發現兩個大殺器,從此再也不用擔心stop不掉進程了,如果是遇到大的事務還是建議stop後等待事務提交或者回滾正常關閉,但是遇到一些異常時,可以使用如下kill掉進程:

GGSCI>KILL REPLICAT group_name
GGSCI>KILL EXTRACT finance

正常停掉進程:
GGSCI>stop REPLICAT group_name
GGSCI>stop EXTRACT finance

下面是兩個命令的詳細說明

GGSCI> help kill replicat

Use KILL REPLICAT to kill a Replicat process. Killing a process leaves the
most recent checkpoint in place, and the current transaction is rolled back
by the database, guaranteeing that no data is lost when the process is
restarted. The Manager process will not attempt to restart a killed Replicat

process. Use this command only if Replicat cannot be stopped gracefully with
the STOP REPLICAT command.

Syntax

KILL REPLICAT group_name

group_name

The name of a Replicat group or a wildcard () to specify multiple groups.
For example, T
kills all Replicat processes whose group names begin with T.

Example

KILL REPLICAT finance

GGSCI > help kill extract

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. The Manager process will not attempt to restart a killed
Extract process.

Syntax

KILL EXTRACT group_name

group_name

The name of an Extract group or a wildcard () to specify multiple groups.
For example, T
kills all Extract processes whose group names start with T.

Example

KILL EXTRACT finance

快速強制kill goldengate異常進程