暂无图片
暂无图片
1
暂无图片
暂无图片
暂无图片

Oracle GoldenGate12c静默安装

原创 点点 2020-06-23
2442
goldengate自12c版本开始也开始采用oui方式进行安装,但是有很多情况下操作系统没有图形化,这种情况下可以采用静默方式安装,具体步骤如下:
1.上传ogg介质
2.解压介质
unzip 123014_fbo_ggs_Linux_x64_shiphome.zip 
3.配置自动应答文件
静默安装需要配置一个自动应答文件,位置在刚才解压出来的介质目录中,具体如下:
[oracle@12c ogg]$ cd fbo_ggs_Linux_x64_shiphome/Disk1/response
[oracle@12c response]$ ls
oggcore.rsp
这个oggcore.rsp就是静默安装的配置模板,照着这个模板修改即可。
[oracle@rac1 response]$ cat oggcore.rsp
 
####################################################################
## Copyright(c) Oracle Corporation 2017. 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_v12_1_2
(不要修改这个值)

################################################################################
##                                                                            ##
## Oracle GoldenGate installation option and details                          ##
##                                                                            ##
################################################################################

#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ORA12c for installing Oracle GoldenGate for Oracle Database 12c and
#         ORA11g for installing Oracle GoldenGate for Oracle Database 11g 
#-------------------------------------------------------------------------------
INSTALL_OPTION=
(根据自己的数据库版本是12c还是11g选择ORA12c或者ORA11g)

#-------------------------------------------------------------------------------
# Specify a location to install Oracle GoldenGate
#-------------------------------------------------------------------------------
SOFTWARE_LOCATION=
(写上goldengate的安装目录)
#-------------------------------------------------------------------------------
# Specify true to start the manager after installation. 
#-------------------------------------------------------------------------------
START_MANAGER=
(是否在配置完成后自动启动mgr进程,是就选true,否就选false)
#-------------------------------------------------------------------------------
# Specify a free port within the valid range for the manager process.
# Required only if START_MANAGER is true.
#-------------------------------------------------------------------------------
MANAGER_PORT=
(在start_manager为true时添加,选择mgr启动端口号)
#-------------------------------------------------------------------------------
# Specify the location of the Oracle Database.
# Required only if START_MANAGER is true.
#-------------------------------------------------------------------------------
DATABASE_LOCATION=
(在start_manager为true时添加,写上$ORACLE_HOME的值)

################################################################################
##                                                                            ##
## Specify details to Create inventory for Oracle installs                    ##
## Required only for the first Oracle product install on a system.            ##
##                                                                            ##
################################################################################
(如果在安装goldengate前没有安装过其他Oracle产品再填写以下两个参数)
#-------------------------------------------------------------------------------
# Specify the location which holds the install inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=
(指定inventory目录的位置,在使用windows操作系统时是一个可选参数)
#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.  
# This parameter is not applicable if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=
(指定一个组,windows系统时不需要写)
[oracle@12c response]$
 
4.启动静默安装
./runInstaller -silent -responseFile /u01/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp
之后开始安装
这时候会提示一个安装日志,
You can find the log of this install session at:
 /u01/app/oraInventory/logs/installActions2020-06-23_09-25-11AM.log
 可以使用 tail -100f /u01/app/oraInventory/logs/installActions2020-06-23_09-25-11AM.log来查看安装情况
安装完成后,安装命令执行页面会输出以下内容:
The installation of Oracle GoldenGate Core was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2020-06-23_09-25-11AM.log' for more details.
Successfully Setup Software.
 
5.进入到goldengate目录创建子目录
[oracle@12c ogg]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle
Version 12.3.0.1.4 OGGCORE_12.3.0.1.0_PLATFORMS_180415.0359_FBO
Linux, x64, 64bit (optimized), Oracle 12c on Apr 16 2018 00:53:30
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2018, Oracle and/or its affiliates. All rights reserved.



GGSCI (12c) 1> create subdirs

Creating subdirectories under current directory /u01/ogg

Parameter file                 /u01/ogg/dirprm: created.
Report file                    /u01/ogg/dirrpt: created.
Checkpoint file                /u01/ogg/dirchk: created.
Process status files           /u01/ogg/dirpcs: created.
SQL script files               /u01/ogg/dirsql: created.
Database definitions files     /u01/ogg/dirdef: created.
Extract data files             /u01/ogg/dirdat: created.
Temporary files                /u01/ogg/dirtmp: created.
Credential store files         /u01/ogg/dircrd: created.
Masterkey wallet files         /u01/ogg/dirwlt: created.
Dump files                     /u01/ogg/dirdmp: created.
 
至此goldengate12c静默安装完成



「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论