Oracle 静默安装oracle client

Posted 春困秋乏夏打盹

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle 静默安装oracle client相关的知识,希望对你有一定的参考价值。

静默安装oracle clint比较简单,修改instantclient.crsp文件的几个位置即可

[[email protected] ~]# vi /etc/oralnstloc

inventory_loc=/u01/app/oralnventory/
inst_group=oinstall
[[email protected] ~]# chmod 664 /etc/oralnstloc
2 修改rsp文件
[[email protected] response]$ pwd
/u01/oracle/client/response
[[email protected] response]$ ls
clientadmin.rsp clientcustom.rsp clientruntime.rsp instantClient.rsp
[[email protected] response]$ vi instantClient.rsp
UNIX_GROUP_NAME=oinstall
ORACLE_HOME=/u01/app/oracle/product/10.2.0/client
ORACLE_HOME_NAME=OraClient10ghome1
SELECTED_LANGUAGES=en
INSTALL_TYPE="Administrator"

----11.2.0.client
[[email protected] client]$ ./runInstaller -silent -noconfig -responseFile /u01/oracleware/client/response/client_install.rsp
ORACLE_HOSTNAME=oracle12c
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/u01/app/oracle/product/11.2.0/client_1
ORACLE_BASE=/u01/app/oracle
oracle.install.client.installType=Administrator
------11.2.0.client
[[email protected] client]$ ./runInstaller -silent-responseFile /u01/oracle/client/response/instantClient.rsp
[[email protected] ~]# vi /etc/oralnstloc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
[[email protected] ~]# mv /etc/oralnstloc /etc/oralnst.loc

[[email protected] client]$ more /etc/oralnst.loc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall

[[email protected] response]$ vi clientadmin.rsp
./runInstaller -silent -noconfig -responseFile /u01/app/software/client/response/clientadmin.rsp
---UNIX_GROUP_NAME="oinstall"?ORACLE_HOME="/u01/app/oracle/product/10.2.0/client_1"?ORACLE_HOME_NAME="OraClient10g"

./runInstaller -silent -noconfig -responseFile /u01/oracle/client/response/clientruntime.rsp UNIX_GROUP_NAME="oinstall"?ORACLE_HOME="/u01/app/oracle/product/10.2.0/client_1"?ORACLE_HOME_NAME="OraClient10g"
[[email protected] client]$ ./runInstaller -silent -noconfig -responseFile /u01/oracle/client/response/clientadmin.rsp
./runInstaller: line 13: dirname: command not found
WARNING:The following configuration scripts
/u01/app/oracle/product/10.2.0/client_1/root.sh


dev.gnum.com
----------------
[email protected]:~$ cd /u01/app/oracle/oraInventory/logs/
[email protected]:/u01/app/oracle/oraInventory/logs$ ll
total 568
drwxr-x--- 2 oracle oinstall 4096 Nov 4 08:51 ./
drwxr-xr-x 6 oracle oinstall 4096 Nov 4 08:53 ../
-rw-r--r-- 1 oracle oinstall 6511 Jun 18 2012 installActions2012-06-18_03-54-00AM.log
-rw-r----- 1 oracle oinstall 152710 Jun 20 2012 installActions2012-06-18_04-02-23AM.log
-rw-r----- 1 oracle oinstall 387892 Nov 4 08:54 installActions2014-11-04_08-44-50AM.log
-rw-r----- 1 oracle oinstall 2310 Jun 18 2012 oraInstall2012-06-18_04-02-23AM.err
-rw-r----- 1 oracle oinstall 0 Jun 18 2012 oraInstall2012-06-18_04-02-23AM.out
-rw-r----- 1 oracle oinstall 935 Nov 4 08:45 oraInstall2014-11-04_08-44-50AM.err
-rw-r----- 1 oracle oinstall 7180 Nov 4 08:54 oraInstall2014-11-04_08-44-50AM.out
-rw-r----- 1 oracle oinstall 728 Nov 4 08:54 silentInstall2014-11-04_08-44-50AM.log
[email protected]:/u01/app/oracle/oraInventory/logs$ more silentInstall2014-11-04_08-44-50AM.log
silentInstall2014-11-04_08-44-50AM.log
Error in invoking target ‘install‘ of makefile ‘/u01/app/oracle/product/10.2.0/client_1/sqlplus/lib/ins_sqlplus.mk‘
. See ‘/u01/app/oracle/oraInventory/logs/installActions2014-11-04_08-44-50AM.log‘ for details.
WARNING:The following configuration scripts
/u01/app/oracle/product/10.2.0/client_1/root.sh
need to be executed as root for configuring the system. If you skip the execution of the configuration tools, the c
onfiguration will not be complete and the product wont function properly. In order to get the product to function p
roperly, you will be required to execute the scripts and the configuration tools after exiting the OUI.

The installation of Oracle Client was successful.
[email protected]:/u01/app/oracle/oraInventory/logs$ su -
Password:
[email protected]:~# cd /u01/app/oracle/product/10.2.0/client_1
[email protected]:/u01/app/oracle/product/10.2.0/client_1# ./root.sh

 


































































以上是关于Oracle 静默安装oracle client的主要内容,如果未能解决你的问题,请参考以下文章

Linux7.8下静默安装oracle11.2

oracle静默安装中遇到的那些坑

Linux下静默安装Oracle

RedHat 7 静默安装Oracle 12c

Oracle静默安装

Oracle安装(11g)静默安装