Oracle 19C 静默安装 GoldenGate

首先在Linux系统上安装好Oracle 19c

打开Oracle 下载网站

https://edelivery.oracle.com/osdc/faces/SoftwareDelivery

搜索Oracle GoldenGate,并下载V983658-01.zip 软件包

Oracle 19c 静默安装 Oracle GoldenGate 19.1.0.0,解压下载的软件包并修改相关的配置

复制代码
[oracle@19coggm
software]$ cp V983658-01.zip software/
[oracle@19coggm
software]$  unzip V983658-01.zip 
[oracle@19coggm
software]$ cd fbo_ggs_Linux_x64_shiphome/
[oracle@19coggm
fbo_ggs_Linux_x64_shiphome]$ ls
Disk1
[oracle@19coggm
fbo_ggs_Linux_x64_shiphome]$ pwd
/tmp/software/fbo_ggs_Linux_x64_shiphome
[oracle@19coggm
fbo_ggs_Linux_x64_shiphome]$ cd Disk1/
[oracle@19coggm
Disk1]$ cd response/
[oracle@19coggm
response]$ ls
oggcore.rsp
[oracle@19coggm response]$ vim oggcore.rsp

####################################################################
## Copyright(c)
Oracle Corporation 2019. All rights reserved.     ##
##                                                               ##
## Specify values
for the variables listed below to customize    ##
## your
installation.                                             ##
##                                                               ##
## Each variable is
associated with a comment. The comment       ##
## can help to
populate the variables with the appropriate        ##
## values.                                                       ##
##                                                               ##
## IMPORTANT NOTE:
This file should be secured to have read      ##
## permission only
by the oracle user or an administrator who    ##
## own this
installation to protect any sensitive input values.   ##
##                                                               ##
####################################################################
#-------------------------------------------------------------------------------
# Do not change the
following system generated value.
#-------------------------------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v19_1_0
################################################################################
##                                                                           ##
## Oracle GoldenGate
installation option and details                          ##
##                                                                           ##
################################################################################
#-------------------------------------------------------------------------------
# Specify the
installation option.
# Specify ORA19c for
installing Oracle GoldenGate for Oracle Database 19c or
#         ORA18c for installing Oracle
GoldenGate for Oracle Database 18c or
#         ORA12c for installing Oracle
GoldenGate for Oracle Database 12c or
#         ORA11g for installing Oracle
GoldenGate for Oracle Database 11g
#-------------------------------------------------------------------------------
INSTALL_OPTION=ORA19c                                                   
#-------------------------------------------------------------------------------
# Specify a location
to install Oracle GoldenGate
#-------------------------------------------------------------------------------
SOFTWARE_LOCATION=/opt/oracle/ogg/19.1.0.0.4
#-------------------------------------------------------------------------------
# Specify true to
start the manager after installation.
#-------------------------------------------------------------------------------
START_MANAGER=
#-------------------------------------------------------------------------------
# Specify a free
port within the valid range for the manager process.
# Required only if
START_MANAGER is true.
#-------------------------------------------------------------------------------
MANAGER_PORT=
#-------------------------------------------------------------------------------
# Specify the
location of the Oracle Database.
# Required only if
START_MANAGER is true.
#-------------------------------------------------------------------------------
DATABASE_LOCATION=/opt/oracle/product/19c/dbhome_1

说明:

代表安装路径事先创建好

复制代码
SOFTWARE_LOCATION=/opt/oracle/ogg/19.1.0.0.4

输入相应的安装版本,这里是19c所以输入ORA19c

复制代码
INSTALL_OPTION=ORA19c

输入安装19c的 $ORACLE_HOME路径

复制代码
DATABASE_LOCATION=/opt/oracle/product/19c/dbhome_1

根据配置文件开始安装软件

复制代码
[oracle@19coggm Disk1]$  ./runInstaller -silent -nowait -responseFile /tmp/software/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp
正在启动 Oracle Universal Installer...
检查临时空间: 必须大于 120 MB。实际为35572 MB    通过
检查交换空间: 必须大于 150 MB。实际为3046 MB    通过
准备从以下地址启动 Oracle Universal Installer
/tmp/OraInstall2021-07-05_04-50-54PM. 请稍候...[oracle@19coggm Disk1]$ 可以在以下位置找到本次安装会话的日志:
/opt/oracle/oraInventory/logs/installActions2021-07-05_04-50-54PM.log
Successfully Setup Software.
Oracle GoldenGate Core的安装已成功。
请查看'/opt/oracle/oraInventory/logs/silentInstall2021-07-05_04-50-54PM.log' 以获取详细资料

安装完成后,切换到$OGG_HOME目录清理里面所有文件及文件夹

复制代码
[oracle@19oggm
19.1.0.0.4]{mathJaxContainer[0]}OGG_HOME  
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirrpt;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirchk;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirpcs;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirsql;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirdef;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirdat;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirtmp;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dircrd;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirwlt;
rm -rf /opt/oracle/ogg/19.1.0.0.4/dirdmp;

然后执行GGSCI命令创建create subdirs,不然启动start mgr会报错

复制代码
[oracle@19oggm 19.1.0.0.4]$ GGSCI
GGSCI (19oggm as ogg@ORCLCDB/PDB1) 1> create subdirs
Creating
subdirectories under current directory /opt/oracle/ogg/19.1.0.0.4
Parameter file                /opt/oracle/ogg/19.1.0.0.4/dirprm: created.
Report file                   /opt/oracle/ogg/19.1.0.0.4/dirrpt: created.
Checkpoint file               /opt/oracle/ogg/19.1.0.0.4/dirchk: created.
Process status files          /opt/oracle/ogg/19.1.0.0.4/dirpcs: created.
SQL script files              /opt/oracle/ogg/19.1.0.0.4/dirsql: created.
Database definitions files    /opt/oracle/ogg/19.1.0.0.4/dirdef: created.
Extract data files            /opt/oracle/ogg/19.1.0.0.4/dirdat: created.
Temporary files               /opt/oracle/ogg/19.1.0.0.4/dirtmp: created. 
Credential store files        /opt/oracle/ogg/19.1.0.0.4/dircrd: created.
Masterkey wallet files        /opt/oracle/ogg/19.1.0.0.4/dirwlt: created.
Dump files                    /opt/oracle/ogg/19.1.0.0.4/dirdmp: created.

这样Oracle GoldenGate 19.1.0.0.4 for Oracle就安装好了,后面可以根据需要创建同步配置。

相关推荐
ClouGence3 天前
Oracle 数据同步为什么会出现数据不一致?长事务是常被忽略的原因
数据库·后端·oracle
ClouGence9 天前
Oracle CDC 架构优化:从主库直连到 DataGuard 备库同步
数据库·后端·oracle
曹牧10 天前
Oracle EXPLAIN PLAN
数据库·oracle
贤时间10 天前
codex 助力oracle ebs 开发
数据库·oracle
秉承初心10 天前
PostgreSQL 数据性能瓶颈突破实战
数据库·postgresql·oracle
Curvatureflight10 天前
MySQL 深分页越来越慢?从 LIMIT OFFSET 改成游标分页
数据库·oracle
XZ-07000110 天前
MySQL事务
数据库·mysql·oracle
tiancaijiben10 天前
阿里云函数计算FC如何实现网站的定时任务与自动化
数据库·oracle·dba
xfhuangfu10 天前
Oracle 19c 多租户体系架构介绍
数据库·oracle·架构
杨云龙UP10 天前
Spotlight 接入 Oracle 数据库监控操作指南 2026-06-16
数据库·oracle·性能监控·预警·阈值·spotlight·瓶颈分析