oracle客户端软件在unix下的非图形化安装
How to Install/Deinstall Oracle Database Client Software Silently Without Response File (文档 ID 782923.1)
客户端软件是10.2.0.1
linux 5.8
非图形化界面安装。
1)安装(install)
上传包解压到tmp文件下,oracle用户
cd /tmp/client
$ ./runInstaller -ignoreSysprereqs -silent -force -debug \
FROM_LOCATION="/tmp/client/stage/products.xml" \
ORACLE_HOME="/u01/app/oracle/product/11.2.0/client_1" \
ORACLE_HOME_NAME="Ora10gClient1" \
ORACLE_BASE="/u01/app/oracle" \
TOPLEVEL_COMPONENT='{"oracle.client","10.2.0.1.0"}' \
INSTALL_TYPE="Administrator"
注意路径,官方文档给的不加-ignore参数,这里我的系统是5.8的检查通不过。
2)卸载(deinstall)
./runInstaller -ignoreSysprereqs -silent -debug -deinstall \
DEINSTALL_LIST='{"oracle.client","10.2.0.1.0"}' \
REMOVE_HOMES={"/u01/app/oracle/product/11.2.0/client_1"}
同样注意路径
3)升级
下载包p8202632_10205_Linux-x86-64.zip解压到/tmp下
./runInstaller -silent -force -debug FROM_LOCATION="/tmp/Disk1/stage/products.xml" ORACLE_HOME="/u01/app/oracle/product/11.2.0/client_1" ORACLE_HOME_NAME="Ora10gClient1" TOPLEVEL_COMPONENT='{"oracle.patchset.db","10.2.0.5.0"}'
End of install phases.(Friday, March 11, 2016 7:03:15 AM CST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/u01/app/oracle/product/11.2.0/client_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
The installation of Oracle Database 10g Release 2 Patch Set 4 was successful.
注意安装或者升级时可能要运行粗体里root.sh,因为我要直接升级前面装是否有类似提示没有注意。
同样要注意路径参考mos文档ID 782923.1