rhel6.4自动安装oracle11g客户端
1、安装过程
点击(此处)折叠或打开
创新互联公司秉承实现全网价值营销的理念,以专业定制企业官网,成都网站设计、做网站,微信小程序,网页设计制作,手机网站制作,成都全网营销帮助传统企业实现“互联网+”转型升级专业定制企业官网,公司注重人才、技术和管理,汇聚了一批优秀的互联网技术人才,对客户都以感恩的心态奉献自己的专业和所长。
-
[root@localhost ~]# cd /tmp/client/
-
[root@localhost client]# ll
-
total 640676
-
-rw-r--r--. 1 root root 5554 Dec 13 16:24 auto_install_oracle_client.sh #主脚本
-
-rw-r--r--. 1 root root 12062 Dec 13 16:24 client_install.rsp #静默安装配置文件
-
-rw-r--r--. 1 root root 656026876 Dec 13 16:22 p13390677_112040_Linux-x86-64_4of7.zip #安装包
-
[root@localhost client]# chmod u+x auto_install_oracle_client.sh #赋权
-
[root@localhost client]# ./auto_install_oracle_client.sh #在文件所在路径使用root用户执行
-
tmp is.................................................... [ok] #检查/tmp目录,需要大于120 MB
-
swap is.................................................... [ok] #检查swap空间,需要大于150 MB
-
finding sqlplus #通过find查找sqlplus,此处需要等待
-
env is.................................................... [ok] #环境ok
-
pkg is.................................................... [ok] #安装包ok
-
rsp is.................................................... [ok] #静默安装配置文件ok
-
please input which user to install oracle client:oracle #可以是已经存在的用户,也可以是新用户
-
please input ip addr:192.168.1.222 #输入该系统ip地址
-
unziping p13390677_112040_Linux-x86-64_4of7.zip #正在解压安装包,此处需要等待
-
starting install,may be take a minutes,you can see log:/tmp/install_client.log #需要等待
-
starting orainstRoot.sh,you can see /tmp/orainstRoot.sh.log
-
The execution of the script is complete.
-
#######################################################################
-
#########please use root to run /tmp/del_client.sh to deinstall####### #卸载脚本
-
#########dba oinstall oracle need your check################### #若需要,用户和组需手动删除
-
#######################################################################
2、验证过程
-
[root@localhost client]# su - oracle
-
[oracle@localhost ~]$ cd $ORACLE_HOME/network/admin/
-
[oracle@localhost admin]$ vi tnsnames.ora
-
[oracle@localhost admin]$ cat tnsnames.ora
-
ORCL =
-
(DESCRIPTION =
-
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.42)(PORT = 1521))
-
(CONNECT_DATA =
-
(SERVER = DEDICATED)
-
(SERVICE_NAME = orcl)
-
)
-
)
-
[oracle@localhost admin]$ sqlplus scott/tiger@orcl
-
SQL>
3、卸载过程(需根据实际需求手动删除用户组和用户)
-
[root@localhost client]# /tmp/del_client.sh
-
[root@localhost client]# su - oracle
-
[oracle@localhost ~]$ sqlplus
-
-bash: sqlplus: command not found
auto_install_oracle_client.sh的内容:
client_install.rsp 的内容:
-
[root@localhost client]# cat client_install.rsp |grep -v ^# |grep -v ^$
-
oracle.install.responseFileVersion=/oracle/install/rspfmt_clientinstall_response_schema_v11_2_0
-
ORACLE_HOSTNAME=
-
UNIX_GROUP_NAME=oinstall
-
INVENTORY_LOCATION=/u01/app/oraInventory
-
SELECTED_LANGUAGES=en
-
ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/client_1
-
ORACLE_BASE=/u01/app/oracle
-
oracle.install.client.installType=Administrator
-
oracle.install.client.upgrading=false
-
oracle.install.client.customComponents="oracle.sqlj:11.2.0.4.0","oracle.rdbms.util:11.2.0.4.0","oracle.javavm.client:11.2.0.4.0","oracle.sqlplus:11.2.0.4.0","oracle.dbjava.jdbc:11.2.0.4.0","oracle.ldap.client:11.2.0.4.0","oracle.rdbms.oci:11.2.0.4.0","oracle.precomp:11.2.0.4.0","oracle.xdk:11.2.0.4.0","oracle.network.aso:11.2.0.4.0","oracle.assistants.oemlt:11.2.0.4.0","oracle.oraolap.mgmt:11.2.0.4.0","oracle.network.client:11.2.0.4.0","oracle.network.cman:11.2.0.4.0","oracle.network.listener:11.2.0.4.0","oracle.ordim.client:11.2.0.4.0","oracle.odbc:11.2.0.4.0","oracle.has.client:11.2.0.4.0","oracle.dbdev:11.2.0.4.0","oracle.rdbms.scheduler:11.2.0.4.0"
-
oracle.install.client.schedulerAgentHostName=
-
oracle.install.client.schedulerAgentPortNumber=
-
oracle.installer.autoupdates.option=SKIP_UPDATES
-
oracle.installer.autoupdates.downloadUpdatesLoc=
-
AUTOUPDATES_MYORACLESUPPORT_USERNAME=
-
AUTOUPDATES_MYORACLESUPPORT_PASSWORD=
-
PROXY_HOST=
-
PROXY_PORT=
-
PROXY_USER=
-
PROXY_PWD=
-
PROXY_REALM=
分享文章:rhel6.4自动安装oracle11g客户端
文章位置:
http://dzwzjz.com/article/geispd.html