1.下载地址monitor

https://www.oracle.com/middleware/technologies/goldengate-downloads.html
2.卸载原系统所有java

  1. yum remove java*

3.下载新的 1.8jdk

下载地址 注意区分操作系统x86和x64
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

  1. yum remove java*
  2. yum install jdk

4.安装

注意卸载java安装新的jdk后新开一个会话安装

  1. DISPLAY=:0.0; export DISPLAY
  2. java -jar -Xmx1024m fmw_12.2.1.2.0_ogg.jar

5.图形化界面安装略

image.png

6.执行创建脚本

  1. mkdir /opt/ogg_agent
  2. cd /app/ogg_monitor_agent/oggmon/ogg_agent/
  3. [oracle@orcl ogg_agent]$ ./createMonitorAgentInstance.sh
  4. Please enter absolute path of Oracle GoldenGate home directory : /opt/ogg
  5. Please enter absolute path of OGG Agent instance : /opt/ogg_agent
  6. Please enter unique name to replace timestamp in startMonitorAgent script (startMonitorAgentInstance_20210126200542.sh) : 01

7.添加java 环境变量

  1. vi .bash_profile
  2. export JAVA_HOME=/usr/java/jdk1.8.0_281-amd64
  3. export JRE_HOME=${JAVA_HOME}/jre
  4. export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
  5. export PATH=${JAVA_HOME}/bin:$PATH
  6. . .bash_profile

8.复制Config.properties配置文件

  1. cd /app/ogg_monitor_agent/oggmon/ogg_agent/cfg_templates
  2. cp Config.properties /opt/ogg_agent/cfg

8.创建钱包

  1. /opt/ogg_agent/bin
  2. [oracle@orcl bin]$ ./pw_agent_util.sh -jagentonly
  3. Please create a password for Java Agent:
  4. Please confirm password for Java Agent:
  5. Jan 26, 2021 8:46:01 PM oracle.security.jps.JpsStartup start
  6. INFO: Jps initializing.
  7. Jan 26, 2021 8:46:04 PM oracle.security.jps.JpsStartup start
  8. INFO: Jps started.
  9. Wallet is created successfully.

9.编辑jagent配置文件

  1. cd /opt/ogg_agent/cfg
  2. vi Config.properties
  3. agent.type.enabled=OEM
  4. jagent.host=192.168.5.150
  5. jagent.jmx.port=5555
  6. jagent.rmi.port=5559
  7. jagent.username=oracle
  8. jagent.ssl=false
  9. jagent.backward.compatibility=false

10.修改GLOBALS

  1. ggsci
  2. EDIT PARAMS ./GLOBALS
  3. ENABLEMONITORING

11.

  1. ggsci
  2. create datastore