Goldengate monitor v11.1

JAVA 版本大于1.6以上即可

[[email protected] ~]# rpm -ivh jre-8u65-linux-x64.rpm

Preparing...                ########################################### [100%]

1:jre1.8.0_65            ########################################### [100%]

Unpacking JAR files...

plugin.jar...

javaws.jar...

deploy.jar...

rt.jar...

jsse.jar...

charsets.jar...

localedata.jar...

jfxrt.jar...

添加java环境变量到oracle用户:(因我用oracle用户安装的ogg)

export PATH

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1

export ORACLE_SID=PHUB

export PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

export DISPLAY=:0.0

umask=022

alias sqlplus=‘rlwrap sqlplus‘

alias rman=‘rlwrap rman‘

alias ggsci=‘rlwrap ggsci‘

export PATH=/u01/ogg:$PATH

export LD_LIBRARY_PATH=/u01/ogg:$LD_LIBRARY_PATH

export GGATE=/u01/ogg

export JAVA_HOME=/usr/java/jre1.8.0_65

PATH=$PATH:$HOME/bin:$JAVA_HOME/jre/bin

源端:

GGSCI (cwogg) 6> view params ./GLOBALS

GGSCHEMA ogg

ENABLEMONITORAGENT

目标端

GGSCI (ogg1) 3> view params ./GLOBALS

GGSCHEMA ogg

CHECKPOINTTABLE ogg.CKPT_TABLE

ENABLEMONITORAGENT

# cd /u01/ogg

编辑Config.properties,修改如下几项:

源库:

vim /u01/ogg/cfg/Config.properties

jagent.host=172.16.30.227

monitor.host=172.16.30.228

monitor.jmx.username=jmxuser

目标库:

vim /u01/ogg/cfg/Config.properties

jagent.host=172.16.30.226

monitor.host=172.16.30.228

monitor.jmx.username=jmxuser

配置ogg wallet

源端配置

[[email protected] ogg]$ ./pw_agent_util.sh -create

Please create a password for Java Agent:

Please confirm password for Java Agent:

Please enter Monitor Server JMX password:

Please confirm Monitor Server JMX password:

Wallet is created successfully.密码123123,此处密码和安装时候设定JMX密码一致。

目标端配置:

[[email protected] ogg]$ ./pw_agent_util.sh -create

Please create a password for Java Agent:

Please confirm password for Java Agent:

Please enter Monitor Server JMX password:

Please confirm Monitor Server JMX password:

Wallet is created successfully.

启动目标端JAGETN:

GGSCI (ogg1) 2> start JAGENT

GGCMD JAGENT started

GGSCI (ogg1) 3> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING

JAGENT      RUNNING

REPLICAT    RUNNING     REP1        00:00:00      00:00:02

GGSCI (ogg1) 4> view report JAGENT

***********************************************************************

Oracle GoldenGate Command Tool for Oracle

Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230

Linux, x64, 64bit (optimized) on Apr 23 2012 04:41:46

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

Starting at 2015-10-28 10:15:23

***********************************************************************

Operating System Version:

Linux

Version #1 SMP Wed Feb 22 17:37:40 EST 2012, Release 2.6.32-300.10.1.el5uek

Node: ogg1

Machine: x86_64

soft limit   hard limit

Address Space Size   :    unlimited    unlimited

Heap Size            :    unlimited    unlimited

File Size            :    unlimited    unlimited

CPU Time             :    unlimited    unlimited

Process id: 13462

Parameters...

COMMAND java -jar -Xms64m -Xmx512m dirjar/jagent.jar

Program is ‘java‘, arguments are ‘-jar -Xms64m -Xmx512m dirjar/jagent.jar‘

***********************************************************************

**                     Run Time Messages                             **

***********************************************************************

2015-10-28 10:15:23  INFO    OGG-00978  GGCMD JAGENT is running.

2015-10-28 10:15:23  INFO    OGG-01927  Child process started, process ID 13466, command line ‘java -jar -Xms64m -Xmx512m dirjar/jage

nt.jar‘

源端启动JAGENT:

GGSCI (cwogg) 2> start JAGENT

GGCMD JAGENT started

GGSCI (cwogg) 3> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING

JAGENT      RUNNING

EXTRACT     RUNNING     EXT1        00:00:00      00:00:05

GGSCI (cwogg) 4> view report JAGENT

***********************************************************************

Oracle GoldenGate Command Tool for Oracle

Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230

Linux, x64, 64bit (optimized) on Apr 23 2012 04:41:46

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

Starting at 2015-10-28 10:16:58

***********************************************************************

Operating System Version:

Linux

Version #1 SMP Wed Feb 22 17:37:40 EST 2012, Release 2.6.32-300.10.1.el5uek

Node: cwogg

Machine: x86_64

soft limit   hard limit

Address Space Size   :    unlimited    unlimited

Heap Size            :    unlimited    unlimited

File Size            :    unlimited    unlimited

CPU Time             :    unlimited    unlimited

Process id: 26094

Parameters...

COMMAND java -jar -Xms64m -Xmx512m dirjar/jagent.jar

Program is ‘java‘, arguments are ‘-jar -Xms64m -Xmx512m dirjar/jagent.jar‘

***********************************************************************

**                     Run Time Messages                             **

***********************************************************************

2015-10-28 10:16:58  INFO    OGG-00978  GGCMD JAGENT is running.

2015-10-28 10:16:58  INFO    OGG-01927  Child process started, process ID 26114, command line ‘java -jar -Xms64m -Xmx512m

dirjar/jagent.jar‘.

完成后发现界面上一直不显示:

jagent.log报错如下:

2015-10-28 11:21:22 [main] INFO  JAgentWSMain - About to call initialize on the WebService

2015-10-28 11:21:22 [main] INFO  AgentInfoImpl - Using IP address 172.16.30.226 to connect to the Manager Web Service

2015-10-28 11:21:22 [main] INFO  AgentInfoImpl - Reading Manager port 7500 from mgr.prm file.

2015-10-28 11:21:23 [main] INFO  ManagerFacadeImpl - Metadata initialized

2015-10-28 11:21:23 [main] INFO  JAgentDigestMD5JmxFactory - Starting JMX connector server on port 5555

2015-10-28 11:21:23 [main] INFO  JAgentWSMain - JAgent finished initialization.

2015-10-28 11:21:23 [ManagerConnectionKeeper] INFO  ManagerWSApi - Created WSAPI

2015-10-28 11:21:28 [getInstanceList] ERROR ManagerWSAdapter - com.goldengate.monitor.model.AgentCommunicationException: Failed to get Registry.

2015-10-28 11:21:28 [getInstanceList] ERROR ManagerFacadeImpl - Instance List returned from JNI call is null

2015-10-28 11:21:28 [getInstanceList] ERROR MBeansContainerImpl - Unexpected behavior, no agent object found! JAgent will exit!

2015-10-28 11:21:28 [getInstanceList] INFO  MBeansContainerImpl - Jagent Mode: Monitor-Integrated

2015-10-28 11:21:28 [main] WARN  JAgentWSMain - No Agent Mbean found, exit with error code 1

2015-10-28 11:21:28 [main] INFO  JAgentWSMain - JAgentWSMain is about to terminate its operation

2015-10-28 11:21:28 [agentRegistration] WARN  MBeansContainerImpl - AgentMBean is null

对于11.2.1版本的Jagent需要在部署监控代理的服务器上的OGG下创建本地datastore,否则在启动Jagent后即使在ggsci里提示jagent启动成功,并且状态是running的,但是在服务器端的WEB界面里看不到该HOST加入到了监控中,并且在ogg安装目录下的jagent.log中会报类似以上错误:

导致这个问题的原因就是代理端没有建立本地datastore,在代理端创建datastore

GGSCI (ogg1) 2> create datastore

Datastore created

GGSCI (ogg1) 3> stop jagent

JAgent process is required by other GGS processes.

Are you sure you want to stop it (y/n)? y

Sending STOP request to GGCMD JAGENT ...

Request processed.

JAgent stopped.

GGSCI (ogg1) 7> start JAGENT

GGCMD JAGENT started

GGSCI (ogg1) 8> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING

JAGENT      RUNNING

REPLICAT    RUNNING     REP1        00:00:00      00:00:10

web监控页面上就能显示了:

时间: 2024-11-09 02:44:23

Goldengate monitor v11.1的相关文章

最新的goldengate monitor 12.1.3已经发布

Oracle GoldenGate管理包针对OGG提供企业级的监控和管理,包含有如下模块: Oracle Enterprise Manager Plug-in. 利用OEM框架查看.管理和预警OGG Oracle GoldenGate Monitor. 一个独立查看.管理.预警OGG的产品,同时提供点对点的拓扑查看,可定制待查看的OGG点的拓扑视图. Oracle GoldenGate Director. 一个独立产品,可配置.管理.监控.预警部署有OGG的实例. Oracle GoldenGa

关于 Oracle GoldenGate Core Product Patch Sets 的列表

Master Note for Oracle GoldenGate Core Product Patch Sets (文档 ID 1645495.1) 适用于: Oracle GoldenGate - Version 11.2.1.0.0 to 12.1.2.0.2 [Release 11.2 to 12.1] Information in this document applies to any platform. 目的: Master note for reference notes reg

Oracle GoldenGate Veridata 12.3已经发布

通过GoldenGate Veridata 12.3,现在只需要一键点击即可修复数据复制后不一致的数据. 通过比较数据,Veridata可修复两个数据库之间的数据.Veridata修复的范围包括GoldenGate, Oracle Data Integrator, Oracle Streams, Logical Data Guard, Oracle Advanced Replication, SQL脚本.批处理作业,SQL *Loader等工具同步的数据,其实Veridata修复的数据与这些同步

【翻译自mos文章】Oracle GoldenGate 对IBM大型机 z/OS 2.1 和DB2 v11的支持

GoldenGate 对IBM大型机 z/OS 2.1 和DB2 v11的支持 来源于: GoldenGate Support for z/OS 2.1 and DB2 v11 (文档 ID 1941364.1) 适用于: Oracle GoldenGate - Version 12.1.2.1.2 and later Information in this document applies to any platform. 目标: 需要知道是否有一个GoldenGate版本能支持 IBM大型机

GoldenGate V11.1数据复制限制

以下对goldengate数据复制的限制情况进行说明. 不支持文件等非结构化数据复制 GoldenGate依赖对于数据库日志的解析获取数据变化,因此只能支持数据库中的数据变化复制,无法支持文件等非结构化数据的复制. Oracle数据类型限制 GoldenGate支持Oralce常见数据类型的复制. GoldenGate不支持的数据类型 1)         ANYDATA 2)         ANYDATASET 3)         ANYTYPE 4)         BFILE 5)  

Oracle GoldenGate版本升级时的注意点

本文是原创文章,转载请注明出处http://blog.csdn.net/msdnchina/article/details/42046205 最近在进行Oracle GoldenGate的版本升级,参考的文档为: How To Upgrade Goldengate From 11.2.1.x to 11.2.1.y for Oracle Database (文档 ID 1601971.1) 该文档中说的很清楚: 2. Stop the OGG processes on the existing

Zero Downtime Upgrade of Oracle 10g to Oracle 11g Using GoldenGate — 1

Source Database DB Name:        zwc Schemas:         HR,OE,PM Version:          10.2.0.4 RAC:                No OS Version:     Red Hat Enterprise Linux Server release 5.9 x86_64 OGG Version:   Oracle GoldenGate V11.2.1.0.6 for Oracle 10g on Linux x8

Install Goldengate On Oracle Rac 11.2.0.4

安装环境: source: OS:redhat 6.3 DB:11.2.0.4 rac OGG:11.2.1.0.1 target: OS:redhat 6.3 DB:11.2.0.4 OGG:11.2.1.0.1 rac到单机的一个传输配置,这里测试ogg没有放入到共享存储中.建议生产环境将ogg放入共享存储,以免单点故障. Prepare(Source And Target DB): useradd ogg -g oinstall Add Environment Varible vi /ho

GoldenGate支持MySQL的最低版本5.1.5

GoldenGate的官方文档明确表示,GoldenGate需要将MySQL的日志格式(binlog_format)设置为ROW,其他两种格式(MIXED or STATEMENT)是不支持. ########################################################################官方描述如下: binlog_format: This parameter sets the format of the logs. It must be set