Oracle 静默安装oracle client

静默安装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

 

转载于:https://www.cnblogs.com/yhq1314/p/9946541.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值