1、安裝過程
點(diǎn)擊(此處)折疊或打開
創(chuàng)新互聯(lián)公司秉承實(shí)現(xiàn)全網(wǎng)價值營銷的理念,以專業(yè)定制企業(yè)官網(wǎng),成都網(wǎng)站設(shè)計、做網(wǎng)站,微信小程序,網(wǎng)頁設(shè)計制作,手機(jī)網(wǎng)站制作,成都全網(wǎng)營銷幫助傳統(tǒng)企業(yè)實(shí)現(xiàn)“互聯(lián)網(wǎng)+”轉(zhuǎn)型升級專業(yè)定制企業(yè)官網(wǎng),公司注重人才、技術(shù)和管理,匯聚了一批優(yōu)秀的互聯(lián)網(wǎng)技術(shù)人才,對客戶都以感恩的心態(tài)奉獻(xiàn)自己的專業(yè)和所長。
-
[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 #賦權(quán)
-
[root@localhost client]# ./auto_install_oracle_client.sh #在文件所在路徑使用root用戶執(zhí)行
-
tmp is.................................................... [ok] #檢查/tmp目錄,需要大于120 MB
-
swap is.................................................... [ok] #檢查swap空間,需要大于150 MB
-
finding sqlplus #通過find查找sqlplus,此處需要等待
-
env is.................................................... [ok] #環(huán)境ok
-
pkg is.................................................... [ok] #安裝包ok
-
rsp is.................................................... [ok] #靜默安裝配置文件ok
-
please input which user to install oracle client:oracle #可以是已經(jīng)存在的用戶,也可以是新用戶
-
please input ip addr:192.168.1.222 #輸入該系統(tǒng)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、驗(yàn)證過程
-
[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、卸載過程(需根據(jù)實(shí)際需求手動刪除用戶組和用戶)
-
[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的內(nèi)容:
client_install.rsp 的內(nèi)容:
-
[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=
網(wǎng)站標(biāo)題:rhel6.4自動安裝oracle11g客戶端
文章來源:
http://weahome.cn/article/geispd.html