【OGG】Oracle GoldenGate12c静默安装

goldengate12c版本开始也开始采用oui方式进行安装,但是有很多情况下操作系统没有图形化,这种情况下可以采用静方式安装,具体步骤如下:

1.上传ogg 12.1.2.1.0介质

2.解压介质

unzip V46695-01.zip

3.配置自动应答文件

安装需要配置一个自动应答文件,位置在刚才解压出来的介质目录中,具体如下:

[oracle@rac1 software]$ cd fbo_ggs_Linux_x64_shiphome/disk1/response/

[oracle@rac1 response]$ ls

oggcore.rsp

这个oggcore.rsp就是静安装的配置模板,照着这个模板修改即可。

[oracle@rac1 response]$ cat oggcore.rsp

####################################################################

## copyright(c) Oracle Corporation 2014. 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=ORA11g

根据系统是12c还是11g选择ORA12c或者ORA11g

# Specify a location to install Oracle GoldenGate

SOFTWARE_LOCATION=/goldengate

写上goldengate的安装目录

# Specify true to start the manager after installation.

START_MANAGER=false

是否在配置完成后自动启动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_managertrue添加,选择mgr启动端口号

# Specify the location of the Oracle Database.

DATABASE_LOCATION=

start_managertrue添加,写上$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

UNIX_GROUP_NAME=

指定一个组,windows系统时不需要写

4.启动静安装

./runInstaller -silent -responseFile /software/fbo_ggs_Linux_x64_shiphome/disk1/response/oggcore.rsp

之后开始安装

这时候会提示一个安装日志,

You can find the log of this install session at:

/oracle/app/oraInventory/logs/installActions2016-07-08_11-26-16AM.log

可以使用 tail -100f /oracle/app/oraInventory/logs/installActions2016-07-08_11-26-16AM.log来查看安装情况

安装完成后,安装命令执行页面输出以下内容

The installation of Oracle GoldenGate Core was successful.

Please check '/oracle/app/oraInventory/logs/silentInstall2016-07-08_11-26-16AM.log' for more details.

Successfully Setup Software.

5.进入到goldengate目录创建子目录

GGSCI (rac1) 2> create subdirs

Creating subdirectories under current directory /goldengate

Parameter files /goldengate/dirprm: already exists

Report files /goldengate/dirrpt: created

Checkpoint files /goldengate/dirchk: created

Process status files /goldengate/dirpcs: created

sql script files /goldengate/dirsql: created

Database deFinitions files /goldengate/dirdef: created

Extract data files /goldengate/dirdat: created

Temporary files /goldengate/dirtmp: created

Credential store files /goldengate/dircrd: created

Masterkey wallet files /goldengate/dirwlt: created

Dump files /goldengate/dirdmp: created

至此goldengate12c安装完成

相关文章

Java Oracle 结果集是Java语言中处理数据库查询结果的一种方...
Java AES和Oracle AES是现代加密技术中最常使用的两种AES加密...
Java是一种广泛应用的编程语言,具备可靠性、安全性、跨平台...
随着移动互联网的发展,抽奖活动成为了营销活动中不可或缺的...
Java和Oracle都是在计算机领域应用非常广泛的技术,他们经常...
Java 是一门非常流行的编程语言,它可以运行于各种操作系统上...