在没有图形界面支持的情况下,安装Oracle goldengate步骤如下:
环境:
Ogg版本:Oracle GoldenGate 12.3.0.1.4 for Oracle on Linux x86-64
压缩包: V975837-01.zip
1、上传压缩包到指定目录
这里使用的目录为:/u01/software
2、解压缩软件
[root@xteasdb software]# unzip V975837-01.zip -d /u01/software
注:-d 指定了解压缩后的存放路径。
3、配置应答文件
应答文件的存放路径为软件解压缩后的/u01/software/fbo_ggs_Linux_x64_shiphome/Disk1/response目录:
[oracle@xteasdb response]$ cd /u01/software/fbo_ggs_Linux_x64_shiphome/Disk1/
[oracle@xteasdb Disk1]$ ll
total 8
drwxr-xr-x. 4 root root 200 Apr 16 2018 install
drwxrwxr-x. 2 root root 25 Jan 3 13:04 response
-rwxr-xr-x. 1 root root 918 Apr 16 2018 runInstaller
drwxr-xr-x. 11 root root 4096 Apr 16 2018 stage
注:runInstaller 为安装文件。
[oracle@xteasdb Disk1]$ cd response/
[oracle@xteasdb response]$ ll
total 8
-rwxrwxr-x. 1 root root 4304 Jan 3 13:04 oggcore.rsp
注:oggcore.rsp为应答文件。
应答文件配置如下:
[oracle@xteasdb 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=ORA11g
#-------------------------------------------------------------------------------
# Specify a location to install Oracle GoldenGate
#-------------------------------------------------------------------------------
SOFTWARE_LOCATION=/u01/app/ogg
#-------------------------------------------------------------------------------
# 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=
################################################################################
## ##
## Specify details to Create inventory for Oracle installs ##
## Required only for the first Oracle product install on a system. ##
## ##
################################################################################
#-------------------------------------------------------------------------------
# Specify the location which holds the install inventory files.
# This is an optional parameter if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
INVENTORY_LOCATION=
#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.
# This parameter is not applicable if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=
4、启动静默安装
先进入runInstaller程序路径:
[oracle@xteasdb ogg]$ cd /u01/software/fbo_ggs_Linux_x64_shiphome/Disk1/
[oracle@xteasdb Disk1]$ pwd
/u01/software/fbo_ggs_Linux_x64_shiphome/Disk1
[oracle@xteasdb Disk1]$ ./runInstaller -silent -responseFile /u01/software/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp
5、添加环境变量
vi ~/.bash_profile
export GGATE_HOME=/u01/app/ogg
export LD_LIBRARY_PATH=$GGATE_HOME:$ORACLE_HOME/lib
export PATH=$GGATE_HOME:$PATH
6、进入goldengate创建子目录
[oracle@xteasdb ~]$ cd /u01/app/ogg/
[oracle@xteasdb 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 11g on Apr 15 2018 21:16:09
Operating system character set identified as UTF-8.
Copyright (C) 1995, 2018, Oracle and/or its affiliates. All rights reserved.
GGSCI (xteasdb) 1> create subdirs
Creating subdirectories under current directory /u01/app/ogg
Parameter file /u01/app/ogg/dirprm: created.
Report file /u01/app/ogg/dirrpt: created.
Checkpoint file /u01/app/ogg/dirchk: created.
Process status files /u01/app/ogg/dirpcs: created.
SQL script files /u01/app/ogg/dirsql: created.
Database definitions files /u01/app/ogg/dirdef: created.
Extract data files /u01/app/ogg/dirdat: created.
Temporary files /u01/app/ogg/dirtmp: created.
Credential store files /u01/app/ogg/dircrd: created.
Masterkey wallet files /u01/app/ogg/dirwlt: created.
Dump files /u01/app/ogg/dirdmp: created.