1.下载地址monitor
https://www.oracle.com/middleware/technologies/goldengate-downloads.html
2.卸载原系统所有java
yum remove java*
3.下载新的 1.8jdk
下载地址 注意区分操作系统x86和x64
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
yum remove java*
yum install jdk
4.安装
注意卸载java安装新的jdk后新开一个会话安装
DISPLAY=:0.0; export DISPLAY
java -jar -Xmx1024m fmw_12.2.1.2.0_ogg.jar
5.图形化界面安装略
6.执行创建脚本
mkdir /opt/ogg_agent
cd /app/ogg_monitor_agent/oggmon/ogg_agent/
[oracle@orcl ogg_agent]$ ./createMonitorAgentInstance.sh
Please enter absolute path of Oracle GoldenGate home directory : /opt/ogg
Please enter absolute path of OGG Agent instance : /opt/ogg_agent
Please enter unique name to replace timestamp in startMonitorAgent script (startMonitorAgentInstance_20210126200542.sh) : 01
7.添加java 环境变量
vi .bash_profile
export JAVA_HOME=/usr/java/jdk1.8.0_281-amd64
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
. .bash_profile
8.复制Config.properties配置文件
cd /app/ogg_monitor_agent/oggmon/ogg_agent/cfg_templates
cp Config.properties /opt/ogg_agent/cfg
8.创建钱包
/opt/ogg_agent/bin
[oracle@orcl bin]$ ./pw_agent_util.sh -jagentonly
Please create a password for Java Agent:
Please confirm password for Java Agent:
Jan 26, 2021 8:46:01 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
Jan 26, 2021 8:46:04 PM oracle.security.jps.JpsStartup start
INFO: Jps started.
Wallet is created successfully.
9.编辑jagent配置文件
cd /opt/ogg_agent/cfg
vi Config.properties
agent.type.enabled=OEM
jagent.host=192.168.5.150
jagent.jmx.port=5555
jagent.rmi.port=5559
jagent.username=oracle
jagent.ssl=false
jagent.backward.compatibility=false
10.修改GLOBALS
ggsci
EDIT PARAMS ./GLOBALS
ENABLEMONITORING
11.
ggsci
create datastore