静默安装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可以进行抽取进程和应用进程的配置

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

相关推荐
数字扫地僧2 小时前
如何使用MySQL实现多租户架构:设计与实现全解析
数据库·mysql·架构
zhengyquan2 小时前
华为HCCDA云技术认证--分布式云架构
分布式·华为·架构·华为云·云计算·华为认证
潜洋2 小时前
Spring Boot 教程之六:Spring Boot - 架构
java·spring boot·后端·架构
车联网安全杂货铺2 小时前
新能源整车厂车联网安全:架构、流程与融合
安全·网络安全·架构·车载系统·系统安全
莳花微语3 小时前
oracle如何配置第二个监听优化数据传输
数据库·oracle·php
张彦峰ZYF3 小时前
解读InnoDB数据库索引页与数据行的紧密关联
数据库·sql·mysql·postgresql·oracle
嚯——哈哈6 小时前
筑起数字堡垒:解析AWS高防盾(Shield)的全面防护能力
服务器·微服务·云计算·aws
玖玖玖 柒染7 小时前
windows下sqlplus连接到linux oracle不成功
linux·windows·oracle
Python私教13 小时前
model中能定义字段声明不存储到数据库吗
数据库·oracle
javaDocker18 小时前
业务架构、数据架构、应用架构和技术架构
架构