1、异常现象
[oracle@localhost ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.0.0 Build 078
Linux, x64, 64bit (optimized), Oracle 10 on Jul 28 2010 13:21:11

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

GGSCI (localhost.localdomain) 1> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXT-ECP 00:00:00 unknown
EXTRACT RUNNING EXT-EDS 00:00:00 unknown
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown
2、尝试关闭异常进程重启
GGSCI (localhost.localdomain) 2> stop *

Sending STOP request to EXTRACT EXT-ECP ...

ERROR: sending message to EXTRACT EXT-ECP (Timeout waiting for message).

Sending STOP request to EXTRACT EXT-EDS ...

ERROR: sending message to EXTRACT EXT-EDS (Timeout waiting for message).

Sending STOP request to EXTRACT EXT-XZ ...

ERROR: sending message to EXTRACT EXT-XZ (Timeout waiting for message).

Sending STOP request to EXTRACT P-EDS ...

ERROR: sending message to EXTRACT P-EDS (Timeout waiting for message).

Sending STOP request to EXTRACT P-XZ ...

ERROR: sending message to EXTRACT P-XZ (Timeout waiting for message).

Sending STOP request to REPLICAT REP-BOS ...

ERROR: sending message to REPLICAT REP-BOS (Timeout waiting for message).

GGSCI (localhost.localdomain) 3> stop mgr!

Sending STOP request to MANAGER ...
Request processed.
Manager stopped.

GGSCI (localhost.localdomain) 4> info all

Program Status Group Lag Time Since Chkpt

MANAGER STOPPED
EXTRACT RUNNING EXT-ECP 00:00:00 unknown
EXTRACT RUNNING EXT-EDS 00:00:00 unknown
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown

GGSCI (localhost.localdomain) 5> kill EXT-ECP

ERROR: Manager not currently running.

GGSCI (localhost.localdomain) 6> kill EXT-EDS

ERROR: Manager not currently running.

GGSCI (localhost.localdomain) 7> info all

Program Status Group Lag Time Since Chkpt

MANAGER STOPPED
EXTRACT RUNNING EXT-ECP 00:00:00 unknown
EXTRACT RUNNING EXT-EDS 00:00:00 unknown
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown

GGSCI (localhost.localdomain) 8> exit
--使用stop 进程,stop mgr,kill 进程都不能正常关闭这些进程
3、系统系统级别kill相关ogg进程
[oracle@localhost OGG]$ ps -ef|grep /opt/OGG
oracle 7479 1 0 Nov10 ? 00:03:31 /opt/OGG/extract PARAMFILE /opt/OGG/dirprm/ext-ecp.prm REPORTFILE /opt/OGG/dirrpt/EXT-ECP.rpt PROCESSID EXT-ECP USESUBDIRS
oracle 7480 1 0 Nov10 ? 00:02:30 /opt/OGG/extract PARAMFILE /opt/OGG/dirprm/ext-eds.prm REPORTFILE /opt/OGG/dirrpt/EXT-EDS.rpt PROCESSID EXT-EDS USESUBDIRS
oracle 7482 1 0 Nov10 ? 00:03:07 /opt/OGG/extract PARAMFILE /opt/OGG/dirprm/ext-xz.prm REPORTFILE /opt/OGG/dirrpt/EXT-XZ.rpt PROCESSID EXT-XZ USESUBDIRS
oracle 7483 1 0 Nov10 ? 00:00:01 /opt/OGG/extract PARAMFILE /opt/OGG/dirprm/p-eds.prm REPORTFILE /opt/OGG/dirrpt/P-EDS.rpt PROCESSID P-EDS USESUBDIRS
oracle 7485 1 0 Nov10 ? 00:00:03 /opt/OGG/replicat PARAMFILE /opt/OGG/dirprm/rep-bos.prm REPORTFILE /opt/OGG/dirrpt/REP-BOS.rpt PROCESSID REP-BOS USESUBDIRS
oracle 7518 1 0 Nov10 ? 00:00:01 ./server -p 7847 -k -l /opt/OGG/ggserr.log
oracle 7677 1 0 Nov10 ? 00:00:15 /opt/OGG/extract PARAMFILE /opt/OGG/dirprm/p-xz.prm REPORTFILE /opt/OGG/dirrpt/P-XZ.rpt PROCESSID P-XZ USESUBDIRS
oracle 25261 25112 0 12:48 pts/1 00:00:00 grep /opt/OGG
[oracle@localhost OGG]$ kill -9 7479 7480 7482 7483 7485 7518 7677
[oracle@localhost OGG]$ ps -ef|grep /opt/OGG
oracle 25264 25112 0 12:48 pts/1 00:00:00 grep /opt/OGG
4、重启所有ogg进程
[oracle@localhost OGG]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 11.1.1.0.0 Build 078
Linux, x64, 64bit (optimized), Oracle 10 on Jul 28 2010 13:21:11

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

GGSCI (localhost.localdomain) 1> info all

Program Status Group Lag Time Since Chkpt

MANAGER STOPPED
EXTRACT ABENDED EXT-ECP 00:00:00 unknown
EXTRACT ABENDED EXT-EDS 00:00:00 unknown
EXTRACT ABENDED EXT-XZ 00:00:00 unknown
EXTRACT ABENDED P-EDS 00:00:00 unknown
EXTRACT ABENDED P-XZ 00:00:00 unknown
REPLICAT ABENDED REP-BOS 00:00:00 unknown
--进程状态还是异常

GGSCI (localhost.localdomain) 2> start mgr

Manager started.

GGSCI (localhost.localdomain) 3> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXT-ECP 00:00:00 unknown
EXTRACT RUNNING EXT-EDS 00:00:00 unknown
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown
--进程起来了,但是Time Since Chkpt还是不正确

GGSCI (localhost.localdomain) 4> stop ext-ecp

Sending STOP request to EXTRACT EXT-ECP ...
Request processed.

GGSCI (localhost.localdomain) 5> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED EXT-ECP unknown 00:00:02
EXTRACT RUNNING EXT-EDS 00:00:00 unknown
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown
--关闭EXT-ECP测试,状态正常

GGSCI (localhost.localdomain) 6> start ext-ecp

Sending START request to MANAGER ...
EXTRACT EXT-ECP starting

GGSCI (localhost.localdomain) 7> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXT-ECP unknown 00:00:14
EXTRACT RUNNING EXT-EDS 00:00:00 unknown
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown
--Lag异常,等待恢复

GGSCI (localhost.localdomain) 8> stop ext-eds

Sending STOP request to EXTRACT EXT-EDS ...

Recovery is not complete. This normal stop will wait and checkpoint recovery's
work when recovery has finished. To force Extract to stop now,
use the SEND EXTRACT EXT-EDS, FORCESTOP command.
--因为恢复没有完成导致该提示,可以忽略,等待

GGSCI (localhost.localdomain) 9> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXT-ECP unknown 00:00:02
EXTRACT STOPPED EXT-EDS 01:51:12 00:00:01
EXTRACT RUNNING EXT-IM 00:00:00 1059:44:26
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 unknown

GGSCI (localhost.localdomain) 10> start ext-eds

Sending START request to MANAGER ...
EXTRACT EXT-EDS starting

GGSCI (localhost.localdomain) 11> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXT-ECP 99:53:02 00:00:01
EXTRACT RUNNING EXT-EDS 01:51:12 00:00:10
EXTRACT RUNNING EXT-XZ 00:00:00 unknown
EXTRACT RUNNING P-EDS 00:00:00 unknown
EXTRACT RUNNING P-XZ 00:00:00 unknown
REPLICAT RUNNING REP-BOS 00:00:00 00:00:00

GGSCI (localhost.localdomain) 12> stop ext-xz

Sending STOP request to EXTRACT EXT-XZ ...
Request processed.

GGSCI (localhost.localdomain) 13> start ext-xz

Sending START request to MANAGER ...
EXTRACT EXT-XZ starting

GGSCI (localhost.localdomain) 15> stop p-eds

Sending STOP request to EXTRACT P-EDS ...
Request processed.

GGSCI (localhost.localdomain) 16> start p-eds

Sending START request to MANAGER ...
EXTRACT P-EDS starting

GGSCI (localhost.localdomain) 17> stop p-xz

Sending STOP request to EXTRACT P-XZ ...
Request processed.

GGSCI (localhost.localdomain) 18> start p-xz

Sending START request to MANAGER ...
EXTRACT P-XZ starting

GGSCI (localhost.localdomain) 19> info all

Program Status Group Lag Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXT-ECP 00:00:00 00:00:01
EXTRACT RUNNING EXT-EDS 00:00:00 00:00:10
EXTRACT RUNNING EXT-IM 00:00:00 1059:45:28
EXTRACT RUNNING EXT-XZ 00:00:00 00:00:07
EXTRACT RUNNING P-EDS 00:00:00 00:00:04
EXTRACT RUNNING P-XZ 00:00:00 00:00:05
REPLICAT RUNNING REP-BOS 00:00:00 00:00:05
--重启所有异常进程,ogg工作正常

GGSCI (localhost.localdomain) 20>

OGG强制停止进程的更多相关文章

  1. Linux下查找进程id并强制停止进程的脚本

    Linux下的tomcat的停止脚本shutdown.sh经常失败,造成tomcat进程没关闭.所以只能手动查找进程id,然后用kill命令来强制停止.每次都要这样查一下,然后再杀进程.感觉有点麻烦, ...

  2. 如何按名称或PID查找一个进程?如何按端口号查找一个进程?如何查看一个进程的CPU和内存、文件句柄使用情况?如何查看CPU利用率高的TOP10进程清单?如何根据PID强制终止进程?

    如何按名称或PID查找一个进程?如何按端口号查找一个进程?如何查看一个进程的CPU和内存.文件句柄使用情况?如何查看CPU利用率高的TOP10进程清单? 目录 如何按名称或PID查找一个进程?如何按端 ...

  3. linux停止进程

    $ kill -QUIT 主进程号 例如:kill -QUIT 1708 这种方式相对来说会有一个停止的过程,先将子进程停止掉,然后再停掉主进程. 快速停止Nginx: $ kill -TERM 主进 ...

  4. Win7 命令行强制杀死进程

    原理 1.查看当前正在运行的进程 tasklist 如下图所示 2.强制杀死映像名称为imagename的进程,映像名称可通过任务管理器或tasklist命令查看 taskkill /im image ...

  5. Python 强制停止多线程运行

    强制停止多线程运行 by:授客 QQ:1033553122 #!/usr/bin/env python # -*- coding:utf-8 -*-     __author__ = 'shouke' ...

  6. 如何强制停止http请求

    http请求很多时候会受到网络阻塞.重连等原因导致响应很慢,如果此时做了一些操作,但过几秒后又响应了之前的请求,就会造成很多问题,此时我们可以使用abort()方法强制停止http请求: let aj ...

  7. Linux强制杀进程命令行工具

    需求, 有时候我们会有手动启动程序, 但是又在后台, 没有像服务那样有start, 和stop的程序, 这时候需要用强制杀进程方式 涉及工具, awk, sed, xargs, kill 需求一: 已 ...

  8. 解决linux下tomcat停止进程任存在问题

    解决linux下tomcat停止进程任存在问题 在Linux下(之所以强调linux下,是因为在windows下正常),执行tomcat ./shutdown.sh 后,虽然tomcat服务不能正常访 ...

  9. 强制停止及删除(卸载)Windows服务

    1. 安装服务: CMD 打开命令行窗口:C:\> 运行:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe& ...

随机推荐

  1. Laravel5.3 流程粗粒度分析之bootstrap

    从laravel入口文件index里面外面不难定位到Illuminate\Foundation\Http\Kernel的handle方法,同样也不难发现handle方法的核心是 $response = ...

  2. Python中Generators教程

    转载至:https://www.bytelang.com/article/content/NQbmUaRIXyA= 要想创建一个iterator,必须实现一个有__iter__()和__next__( ...

  3. 再谈加密-RSA非对称加密的理解和使用

    html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,bi ...

  4. [ios-必看] iOS 下实现解压缩

    http://blog.csdn.net/lyy_whg/article/details/11971581 http://blog.sina.com.cn/s/blog_833996210100udk ...

  5. ubuntu 服务版安装简易说明

    安装基本环境 1.ubuntu 下载 下载地址:http://releases.ubuntu.com/14.04.4/ 2.安装virtualBox 直接在软件管家中下载即可 3.安装ubuntu 注 ...

  6. CodeForces 747E Comments

    栈,模拟. 手动写一个栈模拟一下过程即可. #include<cstdio> #include<cstring> #include<string> #include ...

  7. Product Management vs. Product Marketing

    Posted by Marty Cagan on August 28, 2007 Tags: product management, product marketing, program manage ...

  8. 使用idea Live Template实现eclipse syso自动提示代码功能

    转载:http://blog.sina.com.cn/s/blog_4c4195e70102wh7e.html 具体步骤: 1.点击File-->Setting-->Live Templa ...

  9. JS 用角度换东南西北

    最近因为业务,正好需要用设备回传的角度值转成用户读得懂的文字形式 function toDirStr(num){ var num=parseInt(num) var N='北'; var E='东'; ...

  10. C语言基础题

    1.闰年问题 例 :输入年.月判断该月的天数. #include<stdio.h> ][] = {,,,,,,,,,,,}; int main() { int p1,p2; int *p; ...