首页 > 代码库 > silent install oracle 11.2.0.1 x86_64 for linux

silent install oracle 11.2.0.1 x86_64 for linux

su - root
#groupadd oinstall
#useradd -g oinstall oracle
#passwd oracle
#mkdir -p /u01/app/oracle
#chown -R oracle:oinstall /u01/app/oracle

$su -
#rm -f /etc/oraInst.loc
#touch oraInst.loc
cat >> oraInst.loc << EOF
inventory_loc=${ORACLE_BASE}/oraInventory
inst_group=oinstall
EOF

su - oracle
vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2/client
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LC_ALL="en_US"
export LANG="en_US"
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK" #SIMPLIFIED CHINESE_CHINA.ZHS16GBK

export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"

unzip linux.x64_11gR2_client.zip


cd client/response

vi client_install.rsp
ORACLE_HOSTNAME=hostname
UNIX_GROUP_NAME=‘oinstall‘
INVENTORY_LOCATION=‘/u01/app/Inventory‘
ORACLE_BASE=‘/u01/app/oracle‘
ORACLE_HOME=‘/u01/app/oracle/product/11.2/client‘
oracle.install.client.installType=Custom

./runInstaller -silent -noconfig -ignoreSyspreReqs -responseFile /home/postgres/client/response/client_install.rsp

注意:
1、/etc/hosts中正确配置ip地址;
2、Inventory最好位于ORACLE_BASE之外;
3、如果报环境不能满足最低要求,试试用CRT等工具不直接登录oracle用户,而是登录其他用户,然后切换到oracle用户;