goldengate软件安装之 install goldengate 12c for oracle 11g on solaris sparic 64

1. download goldengate software
goldengate软件可以从“Oracle Software Delivery Cloud”来下载,这里可以找到所有获许可证的Oracle产品的下载资料。Goldengate被oracle归类为其fusion middleware产品中的一员。
这里,我需要安装的产品版本为: “Oracle GoldenGate on Oracle v12.1.2 Media Pack for Oracle Solaris on SPARC (64-bit)”

2.设置环境变量
确保数据库server上设置了ORACLE_HOME和ORACLE_SID环境变量,后面配置goldengate进程时需要使用到这些变量。当然,如果不在环境变量里配置的话,我们也可以在配置goldengate时使用参数SETENV来设置;
比如:
SETENV (ORACLE_HOME = “/app/oracle/product/11.2.0/dbhome_1”)
SETENV (ORACLE_SID = “test101”)

设置PATH和LD_LIBRARY_PATH环境变量:
将goldengate的安装目录加入到PATH变量里,同时将该安装目录也加入到LD_LIBRARY_PATH变量中。
这里有一点需要注意,在编辑LD_LIBRARY_PATH环境变量之前,需要确保oracle数据库库库文件目录已经存在于该环境变量中,如果没有则需要将该目录加上,如:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib

3.goldengate软件的安装
将下载的软件zip安装包拷贝到数据库服务器上,使用unzip命令解压。
使用Oracle Universal Installer(OUI)安装goldengate:
从12c版本开始,goldengate支持用OUI工具安装软件。在此之前的版本,我们只需要解压安装文件后在GGSCI命令行接口中运行CREATE SUBDIRS即可实现goldengate的安装。
从goldengate的官方文档《Oracle GoldenGate for Windows and UNIX》来看,以前的这种安装方式应该还是被支持的,但我在写此文是并没有弄清楚如何操作,因为新软件解压包中并不直接提供GGSCI工具。
好了,这里继续介绍goldengate的OUI方式安装。
有了OUI,由于其支持图像化交互操作,所以我们直接按照提示输入需要的参数即可完成安装。
在UNIX环境下,由于一般系统没有默认配置对图形化工具的支持,所以我们可以象安装oracle数据库一样,使用slient方式安装,这里唯一要做的就是事先准备好response文件。
goldengate安装文件的response目录下提供了response文件的模板oggcore.rsp,我们可以根据文件里的提示来为相应参数提供需要的值,列举如下:

################################################################################
##                                                                            ##
## 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
--这里我的数据库环境是11.2.0.4,所以我选择了ORA11g

#-------------------------------------------------------------------------------
# Specify a location to install Oracle GoldenGate
#-------------------------------------------------------------------------------
SOFTWARE_LOCATION=/app/oracle/goldengate
--这里是goldengate软件的安装目录,在安装之前,请确保你提前创建了该目录。
#-------------------------------------------------------------------------------
# Specify true to start the manager after installation.
#-------------------------------------------------------------------------------
START_MANAGER=false

#-------------------------------------------------------------------------------
# Specify a free port within the valid range for the manager process.
# Required only if START_MANAGER is true.
#-------------------------------------------------------------------------------
MANAGER_PORT=7809

#-------------------------------------------------------------------------------
# Specify the location of the Oracle Database.
# Required only if START_MANAGER is true.
#-------------------------------------------------------------------------------
DATABASE_LOCATION=/app/oracle/product/11.2.0/dbhome_1

################################################################################
## 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=/opt/appl/users/oracle/oraInventory
--同/var/opt/oracle/oraInst.loc文件中inventory_loc参数的值,可以不予设置

#-------------------------------------------------------------------------------
# Unix group to be set for the inventory directory.
# This parameter is not applicable if installing on
# Windows based Operating System.
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME=oinstall
--同 /var/opt/oracle/ oraInst.loc文件中 inst_group参数的值,可以不予设置

在准备好goldengate response文件后,就可以安装goldengate软件了:
./runInstaller -silent -responseFile /app/oracle/goldengate/fbo_ggs_Solaris_sparc_shiphome/Disk1/response/oggcore.rsp

4.创建goldengate子目录
cd  /app/oracle/goldengate
ggsci
GGSCI 1> CREATE SUBDIRS
到这里,goldengate的软件安装就完成了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27243841/viewspace-1067485/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27243841/viewspace-1067485/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值