首先在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@19coggmsoftware]$ cp V983658-01.zip software/[oracle@19coggmsoftware]$ unzip V983658-01.zip [oracle@19coggmsoftware]$ cd fbo_ggs_Linux_x64_shiphome/[oracle@19coggmfbo_ggs_Linux_x64_shiphome]$ lsDisk1[oracle@19coggmfbo_ggs_Linux_x64_shiphome]$ pwd/tmp/software/fbo_ggs_Linux_x64_shiphome[oracle@19coggmfbo_ggs_Linux_x64_shiphome]$ cd Disk1/[oracle@19coggmDisk1]$ cd response/[oracle@19coggmresponse]$ lsoggcore.rsp[oracle@19coggm response]$ vim oggcore.rsp###################################################################### Copyright(c)Oracle Corporation 2019. All rights reserved. #### #### Specify valuesfor the variables listed below to customize #### yourinstallation. #### #### Each variable isassociated with a comment. The comment #### can help topopulate the variables with the appropriate #### values. #### #### IMPORTANT NOTE:This file should be secured to have read #### permission onlyby the oracle user or an administrator who #### own thisinstallation to protect any sensitive input values. #### #######################################################################-------------------------------------------------------------------------------# Do not change thefollowing system generated value.#-------------------------------------------------------------------------------oracle.install.responseFileVersion=/oracle/install/rspfmt_ogginstall_response_schema_v19_1_0################################################################################## #### Oracle GoldenGateinstallation option and details #### ###################################################################################-------------------------------------------------------------------------------# Specify theinstallation option.# Specify ORA19c forinstalling Oracle GoldenGate for Oracle Database 19c or# ORA18c for installing OracleGoldenGate for Oracle Database 18c or# ORA12c for installing OracleGoldenGate for Oracle Database 12c or# ORA11g for installing OracleGoldenGate for Oracle Database 11g#-------------------------------------------------------------------------------INSTALL_OPTION=ORA19c #-------------------------------------------------------------------------------# Specify a locationto install Oracle GoldenGate#-------------------------------------------------------------------------------SOFTWARE_LOCATION=/opt/oracle/ogg/19.1.0.0.4#-------------------------------------------------------------------------------# Specify true tostart the manager after installation.#-------------------------------------------------------------------------------START_MANAGER=#-------------------------------------------------------------------------------# Specify a freeport within the valid range for the manager process.# Required only ifSTART_MANAGER is true.#-------------------------------------------------------------------------------MANAGER_PORT=#-------------------------------------------------------------------------------# Specify thelocation of the Oracle Database.# Required only ifSTART_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.logSuccessfully 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]$ cd $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]$ GGSCIGGSCI (19oggm as ogg@ORCLCDB/PDB1) 1> create subdirsCreatingsubdirectories under current directory /opt/oracle/ogg/19.1.0.0.4Parameter 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就装置好了,前面能够依据须要创立同步配置。