Oracle 19C 静默安装 GoldenGate

2023-09-06 17:25:53 浏览数 (2)

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

打开Oracle 下载网站

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

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

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

代码语言:javascript复制
[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

说明:

代表安装路径事先创建好

代码语言:javascript复制
SOFTWARE_LOCATION=/opt/oracle/ogg/19.1.0.0.4

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

代码语言:javascript复制
INSTALL_OPTION=ORA19c

输入安装19c的 $ORACLE_HOME路径

代码语言:javascript复制
DATABASE_LOCATION=/opt/oracle/product/19c/dbhome_1

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

代码语言:javascript复制
[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目录清理里面所有文件及文件夹

代码语言:javascript复制
[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会报错

代码语言:javascript复制
[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就安装好了,后面可以根据需要创建同步配置。

0 人点赞