静默安装OGG21.3微服务版本FOR ORACLE版本

静默安装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_LOCATION

mkdir /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.sh

To execute the configuration scripts:
  1.Open a terminal window
  2.Login as "root"
  3.Run the script


Successfully 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 Manager
   Loaded: loaded (/etc/systemd/system/OracleGoldenGate.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2024-03-17 23:17:03 CST; 1min 14s ago
 Main PID: 18118 (ServiceManager)
    Tasks: 14
   CGroup: /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可以进行抽取进程和应用进程的配置

至此已经完成软件的安装,后续会进行抽取进程和应用进程的部署,再更新,请期待,如有疑问请多指点,谢谢

相关推荐
念白44310 分钟前
智能病历xml提取
数据库·sql·oracle
qingy_204614 分钟前
【JavaWeb】JavaWeb入门之XML详解
数据库·oracle
喵叔哟30 分钟前
【.NET 8 实战--孢子记账--从单体到微服务】--简易权限--访问权限中间件
微服务·中间件·.net
丶21361 小时前
【WEB】深入理解 CORS(跨域资源共享):原理、配置与常见问题
前端·架构·web
菜菜-plus2 小时前
分布式,微服务,SpringCloudAlibaba,nacos,gateway,openFeign
java·分布式·微服务·nacos·gateway·springcloud·openfeign
CodingBrother2 小时前
软考之面向服务架构SOA-通信方法
架构
爪哇学长3 小时前
解锁数据世界:从基础到精通的数据库探索之旅
数据库·mysql·oracle
dingdingfish3 小时前
关于 Oracle Database Express Edition 的功能和安装
oracle·express·database·vagrant·edition
码哥字节3 小时前
重生之从零设计 MySQL 架构
数据库·mysql·架构
喵叔哟5 小时前
【.NET 8 实战--孢子记账--从单体到微服务】--简易权限--角色可访问接口管理
数据库·微服务·.net