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就安装好了,后面可以根据需要创建同步配置。

相关推荐
jnrjian4 天前
ORA-01017 查找机器名 用户名 以及library cache lock 参数含义
数据库·oracle
TTc_4 天前
oracle中的union和union all有什么区别?
数据库·oracle
山峰哥4 天前
吃透 SQL 优化:告别慢查询,解锁数据库高性能
服务器·数据库·sql·oracle·性能优化·编辑器
南 阳4 天前
Python从入门到精通day37
数据库·python·oracle
轩情吖5 天前
MySQL库的操作
android·数据库·mysql·oracle·字符集·数据库操作·编码集
脱发的老袁5 天前
【数据库】Oracle手动清理归档日志
数据库·oracle
jnrjian5 天前
Oracle 共享池 库缓存下的 Library Cache Lock
数据库·缓存·oracle
新缸中之脑5 天前
在Reddit上探索未满足的需求
数据库·oracle
light blue bird5 天前
产线多并发客户端指令操作场景组件
jvm·oracle·.net·winform
坐吃山猪5 天前
Neo4j04_数据库事务
数据库·oracle·neo4j