建立所需目录
su
mkdir –p /data/ogg
mkdir –p /data/pakge
chown oracle: oinstall /data/ogg
chown –R oracle: oinstall /data/pakge
上传ogg 安装包,版本V983320-01.zip
切换用户,更改环境变量
su – oracle
Vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
umask 022
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/19.4.0/dbhome_1
export ORACLE_SID=BIGDATACDB
export ORACLE_UNQNAME=BIGDATACDB
export GG_HOME=/data/ogg
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export NLS_DATE_FORMAT="yyyy-mm-dd hh24:mi:ss"
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$GG_HOME
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
port PATH=${PATH}:$ORACLE_BASE/common/oracle/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
▽xport ORACLE_PATH=${PATH}:$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib:$GG_HOME
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export CLASSPATH=$ORACLE_HOME/JRE
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export THREADS_FLAG=native
export TEMP=/tmp
export TMPDIR=/tmp
export PS1=$LOGNAME@`hostname`:'$PWD$ '
source ~/.bash_profile
解压安装包
cd /data/pakge
unzip V983320-01.zip
修改响应参数
cd /data/pakge/fbo_ggs_Linux_x64_shiphome/Disk1/response
vi oggcore.rsp
INSTALL_OPTION=ORA19c
SOFTWARE_LOCATION=/data/ogg
开始安装
/data/pakge/fbo_ggs_Linux_x64_shiphome/Disk1/runInstaller -silent -nowait -responseFile /data/pakge/fbo_ggs_Linux_x64_shiphome/Disk1/response/oggcore.rsp