码迷,mamicode.com
首页 > 数据库 > 详细

Oracle 静默安装oracle client

时间:2018-11-12 15:47:00      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:required   wing   cli   etc   target   out   --   cti   pass   

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

[root@localhost ~]# vi /etc/oralnstloc

inventory_loc=/u01/app/oralnventory/
inst_group=oinstall
[root@localhost ~]# chmod 664 /etc/oralnstloc
2 修改rsp文件
[oracle@localhost response]$ pwd
/u01/oracle/client/response
[oracle@localhost response]$ ls
clientadmin.rsp clientcustom.rsp clientruntime.rsp instantClient.rsp
[oracle@localhost 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
[oracle@oracle12c 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
[oracle@localhost client]$ ./runInstaller -silent-responseFile /u01/oracle/client/response/instantClient.rsp
[root@localhost ~]# vi /etc/oralnstloc
inventory_loc=/u01/app/oracle/oraInventory
inst_group=oinstall
[root@localhost ~]# mv /etc/oralnstloc /etc/oralnst.loc

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

[oracle@localhost 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"
[oracle@localhost 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
----------------
oracle@ip-10-134-31-19:~$ cd /u01/app/oracle/oraInventory/logs/
oracle@ip-10-134-31-19:/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
oracle@ip-10-134-31-19:/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.
oracle@ip-10-134-31-19:/u01/app/oracle/oraInventory/logs$ su -
Password:
root@ip-10-134-31-19:~# cd /u01/app/oracle/product/10.2.0/client_1
root@ip-10-134-31-19:/u01/app/oracle/product/10.2.0/client_1# ./root.sh

 

Oracle 静默安装oracle client

标签:required   wing   cli   etc   target   out   --   cti   pass   

原文地址:https://www.cnblogs.com/yhq1314/p/9946541.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!