静默安装OGG21.3微服务版本FOR ORACLE版本
silent install ogg21.3 for oracle
某度找来找去都没有找到一份可靠的静默安装OGG21.3微服务版本的案例,特别难受,为此将自己静默安装的步骤一步步贴出来分享给大家,请指点,谢谢。
至于为什么要搞一个静默安装的步骤,主要是因为在生产环境中,服务器没有安装图形界面,配置来配置去,遇到各种问题,又遇到网络策略的问题,还得求人开通策略,当你需要的时候,别人不一定有时间配合你,特别麻烦。
准备安装包
213000_fbo_ggs_Linux_x64_Oracle_services_shiphome.zip
创建安装目录
mkdir /data/ogg213/ogg_ma -p
mkdir /data/ogg213/ogg_sm -p
mkdir /data/ogg213/ogg_deploy -p
chown oracle:oinstall /data/ogg213/ -R
chmod 775 -R /data/ogg213/INVENTORY_LOCATIONmkdir /data/ogg_inventory
chown oracle:oinstall /data/ogg_inventory
chmod 775 /data/ogg_inventory说明:
/data/ogg213/ogg_ma is OGG_HOME
/data/ogg213/ogg_sm is Service Manager Home
/data/ogg213/ogg_deploy is Deployment Home
安装OGG软件
$ ./runInstaller -silent -nowait -responseFile /soft/fbo_ggs_Linux_x64_Oracle_services_shiphome/Disk1/response/oggcore.rsp
Starting Oracle Universal Installer...Checking Temp space: must be greater than 120 MB. Actual 7756 MB Passed
Checking swap space: must be greater than 150 MB. Actual 3599 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2024-03-17_10-39-33PM. Please wait ...[oracle@oradb1 Disk1]$ You can find the log of this install session at:/oradb/app/oraInventory/logs/installActions2024-03-17_10-39-33PM.log
Successfully Setup Software.
The installation of Oracle GoldenGate Services was successful.
Please check '/oradb/app/oraInventory/logs/silentInstall2024-03-17_10-39-33PM.log' for more details.
配置OGG服务
cd /data/ogg213/ogg_ma/bin
[oracle@oradb1 bin]$ ./oggca.sh -silent -responseFile /soft/oggca.rsp In order to register Service Manager as a system service/daemon, as a "root" user, execute the following script:(1). /data/ogg213/ogg_sm/bin/registerServiceManager.shTo execute the configuration scripts:1.Open a terminal window2.Login as "root"3.Run the scriptSuccessfully Setup Software.
根据提示信息root用户下执行脚本
[root@oradb1 response]# /data/ogg213/ogg_sm/bin/registerServiceManager.sh
Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
----------------------------------------------------Oracle GoldenGate Install As Service Script
----------------------------------------------------
OGG_HOME=/data/ogg213/ogg_ma
OGG_CONF_HOME=/data/ogg213/ogg_sm/etc/conf
OGG_VAR_HOME=/data/ogg213/ogg_sm/var
OGG_USER=oracle
Running OracleGoldenGateInstall.sh...
Created symlink from /etc/systemd/system/multi-user.target.wants/OracleGoldenGate.service to /etc/systemd/system/OracleGoldenGate.service.
[root@oradb1 response]#
执行完脚本之后可以通过systemctl 管理OGG服务
[root@oradb1 response]# systemctl status OracleGoldenGate.service
● OracleGoldenGate.service - Oracle GoldenGate Service ManagerLoaded: loaded (/etc/systemd/system/OracleGoldenGate.service; enabled; vendor preset: disabled)Active: active (running) since Sun 2024-03-17 23:17:03 CST; 1min 14s agoMain PID: 18118 (ServiceManager)Tasks: 14CGroup: /system.slice/OracleGoldenGate.service└─18118 /data/ogg213/ogg_ma/bin/ServiceManager --inventory '/data/ogg213/ogg_sm/etc/conf'Mar 17 23:17:03 oradb1 systemd[1]: Started Oracle GoldenGate Service Manager.
Mar 17 23:17:03 oradb1 ServiceManager[18118]: 2024-03-17T23:17:03.283+0800 INFO | Configuring user authorization enabled.
Mar 17 23:17:03 oradb1 ServiceManager[18118]: 2024-03-17T23:17:03.333+0800 INFO | Configuring user authorization secure store path as '/data/ogg213/ogg_sm/var/li...ureStore'.
Mar 17 23:17:03 oradb1 ServiceManager[18118]: 2024-03-17T23:17:03.333+0800 WARN | Configuring user session simple store path as '/data/ogg213/ogg_sm/var/run/session.dat'.
Mar 17 23:17:03 oradb1 OracleGoldenGate.sh[18118]: Oracle GoldenGate Service Manager for Oracle
Mar 17 23:17:03 oradb1 OracleGoldenGate.sh[18118]: Version 21.3.0.0.0 OGGCORE_21.3.0.0.0_PLATFORMS_210728.1047
Mar 17 23:17:03 oradb1 OracleGoldenGate.sh[18118]: Copyright (C) 1995, 2021, Oracle and/or its affiliates. All rights reserved.
Mar 17 23:17:03 oradb1 OracleGoldenGate.sh[18118]: Oracle Linux 7, x64, 64bit (optimized) on Jul 28 2021 12:33:40
Mar 17 23:17:03 oradb1 OracleGoldenGate.sh[18118]: Operating system character set identified as UTF-8.
Hint: Some lines were ellipsized, use -l to show in full.
查看相关的进程信息
[root@oradb1 response]# ps -ef |grep Ser
oracle 18118 1 0 23:17 ? 00:00:00 /data/ogg213/ogg_ma/bin/ServiceManager --inventory '/data/ogg213/ogg_sm/etc/conf'
root 19362 4007 0 23:20 pts/2 00:00:00 grep --color=auto Ser
[root@oradb1 response]# ps -ef |grep ogg_ma
oracle 15862 1 0 23:10 ? 00:00:00 /data/ogg213/ogg_ma/bin/adminsrvr --config /data/ogg213/ogg_sm/var/temp/Deploy213-adminsrvr-config.dat --force --quiet
oracle 15864 1 0 23:10 ? 00:00:00 /data/ogg213/ogg_ma/bin/distsrvr --config /data/ogg213/ogg_sm/var/temp/Deploy213-distsrvr-config.dat --force --quiet
oracle 15872 1 0 23:10 ? 00:00:01 /data/ogg213/ogg_ma/bin/recvsrvr --config /data/ogg213/ogg_sm/var/temp/Deploy213-recvsrvr-config.dat --force --quiet
oracle 15906 1 0 23:10 ? 00:00:03 /data/ogg213/ogg_ma/bin/pmsrvr --config /data/ogg213/ogg_sm/var/temp/Deploy213-pmsrvr-config.dat --force --quiet
oracle 18118 1 0 23:17 ? 00:00:00 /data/ogg213/ogg_ma/bin/ServiceManager --inventory '/data/ogg213/ogg_sm/etc/conf'
root 19369 4007 0 23:20 pts/2 00:00:00 grep --color=auto ogg_ma
[root@oradb1 response]#
[root@oradb1 response]# netstat -tulnp|grep 7809
tcp 0 0 0.0.0.0:7809 0.0.0.0:* LISTEN 18118/ServiceManage
tcp6 0 0 :::7809 :::* LISTEN 18118/ServiceManage
打开登录页面
通过此处可以查看到各个服务的状态。
通过访问:http://ip:8001可以进行抽取进程和应用进程的配置
至此已经完成软件的安装,后续会进行抽取进程和应用进程的部署,再更新,请期待,如有疑问请多指点,谢谢