OGG静默安装

创建目录、上传包、解压

mkdir -p /inspur/app/ogg
##解压到/inspur/app/ogg下

加入组

chown -R oracle:oinstall /inspur/app/ogg

配置环境变量

vim /home/oracle/.bash_profile

export GG_HOME=/inspur/app/ogg
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$GG_HOME
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
alias ggsci='cd $GG_HOME;ggsci'
##刷新权限
source /home/oracle/.bash_profile

修改响应文件

vim /inspur/app/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp

INSTALL_OPTION=ORA12c   ##你的数据库版本
SOFTWARE_LOCATION=/inspur/app/ogg    ##你的GG_HOME
START_MANAGER=false   ##是否打开mgr进程
DATABASE_LOCATION=/inspur/app/oracle/12c   ##你的ORACLE_HOME

创建一个日志输出文件

cd /inspur/app/ogg
mkdir oraInventory

vim oraInst.loc
inventory_loc=/inspur/app/ogg/oraInventory
inst_group=oinstall

安装

/runInstaller -silent -nowait -responseFile /inspur/app/ogg/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp  -invPtrLoc /inspur/app/ogg/oraInventory/oraInst.loc
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 35864 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3670 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2022-11-17_11-36-34AM. Please wait ...[oracle@zfb-jhdsj-sjkserver2 Disk1]$ MoTTY X11 proxy: Unsupported authorisation protocol
[WARNING] [INS-75003] The specified directory /inspur/app/ogg/ is not empty.
   CAUSE: The directory specified /inspur/app/ogg/ contains files.
   ACTION: Clean up the specified directory or enter a new directory location.
You can find the log of this install session at:
 /inspur/app/ogg/oraInventory/logs/installActions2022-11-17_11-36-34AM.log
WARNING:OUI-10030:You have specified a non-empty directory to install this product. It is recommended to specify either an empty or a non-existent directory. You may, however, choose to ignore this message if the directory contains Operating System generated files or subdirectories like lost+found.
Do you want to proceed with installation in this Oracle Home?
The installation of Oracle GoldenGate Core was successful.
Please check '/inspur/app/ogg/oraInventory/logs/silentInstall2022-11-17_11-36-34AM.log' for more details.
Successfully Setup Software.
#安装完成

初始化

登陆
[oracle@zfb-jhdsj-sjkserver2 fbo_ggs_Linux_x64_shiphome]$ 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 (zfb-jhdsj-sjkserver2) 1> create subdirs

Creating subdirectories under current directory /inspur/app/ogg

Parameter file                 /inspur/app/ogg/dirprm: created.
Report file                    /inspur/app/ogg/dirrpt: created.
Checkpoint file                /inspur/app/ogg/dirchk: created.
Process status files           /inspur/app/ogg/dirpcs: created.
SQL script files               /inspur/app/ogg/dirsql: created.
Database definitions files     /inspur/app/ogg/dirdef: created.
Extract data files             /inspur/app/ogg/dirdat: created.
Temporary files                /inspur/app/ogg/dirtmp: created.
Credential store files         /inspur/app/ogg/dircrd: created.
Masterkey wallet files         /inspur/app/ogg/dirwlt: created.
Dump files                     /inspur/app/ogg/dirdmp: created.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值