内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

Oracle11gR2安裝RAC錯誤之--HOSTS文件錯誤

Oracle 11gR2 安裝RAC錯誤之--HOSTS文件錯誤

創(chuàng)新互聯(lián)服務項目包括海陽網(wǎng)站建設、海陽網(wǎng)站制作、海陽網(wǎng)頁制作以及海陽網(wǎng)絡營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術優(yōu)勢、行業(yè)經(jīng)驗、深度合作伙伴關系等,向廣大中小型企業(yè)、政府機構等提供互聯(lián)網(wǎng)行業(yè)的解決方案,海陽網(wǎng)站推廣取得了明顯的社會效益與經(jīng)濟效益。目前,我們服務的客戶以成都為中心已經(jīng)輻射到海陽省份的部分城市,未來相信會繼續(xù)擴大服務區(qū)域并繼續(xù)獲得客戶的支持與信任!

系統(tǒng)環(huán)境:

操作系統(tǒng):RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle:  Oracle 11.2.0.1.0


如圖所示:RAC 系統(tǒng)架構

Oracle 11gR2 安裝RAC錯誤之--HOSTS文件錯誤

  對于Oracle 11G構建RAC首先需要構建GI(Grid Infrastructure)的架構

錯誤現(xiàn)象:

節(jié)點2運行root.sh腳本錯誤:

[root@hk2 ~]# /u01/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2014-07-07 17:04:37: Parsing the host name
2014-07-07 17:04:37: Checking for super user privileges
2014-07-07 17:04:37: User has super user privileges
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node hk1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mDNSd' on 'hk2'
CRS-2676: Start of 'ora.mdnsd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'hk2'
CRS-2676: Start of 'ora.gipcd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'hk2'
CRS-2676: Start of 'ora.gpnpd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'hk2'
CRS-2676: Start of 'ora.cssdmonitor' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'hk2'
CRS-2672: Attempting to start 'ora.diskmon' on 'hk2'
CRS-2676: Start of 'ora.diskmon' on 'hk2' succeeded
CRS-2676: Start of 'ora.cssd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'hk2'
CRS-2676: Start of 'ora.ctssd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'hk2'
CRS-2676: Start of 'ora.drivers.acfs' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'hk2'
CRS-2676: Start of 'ora.asm' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'hk2'
CRS-2676: Start of 'ora.crsd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'hk2'
CRS-2676: Start of 'ora.evmd' on 'hk2' succeeded
Timed out waiting for the CRS stack to start.

查看日志:

[root@hk2 crsd]# ls

core.12152  core.15934  core.16128  crsd.log  crsdOUT.log  crsd.trc

[root@hk2 crsd]# tail crsdOUT.log 

Unable to resolve address for localhost:2016

ONS runtime exiting

Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36

2014-07-07 17:55:31  

Changing directory to /u01/11.2.0/grid/log/hk2/crsd

2014-07-07 17:55:31  

CRSD REBOOT

Unable to resolve address for localhost:2016

ONS runtime exiting

Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36

[root@hk2 crsd]# more crsdOUT.log 

2014-07-07 17:08:23  

Changing directory to /u01/11.2.0/grid/log/hk2/crsd

2014-07-07 17:08:23  

CRSD REBOOT

Unable to resolve address for localhost:2016

ONS runtime exiting

Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36

......

錯誤提示,無法解析localhost主機!

查看/etc/hosts文件:

[root@hk2 crsd]# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.56.101  hk1
192.168.56.103  hk2
10.10.10.101  hk1-priv
10.10.10.103  hk2-priv
192.168.56.104 hk1-vip
192.168.56.105 hk2-vip
192.168.56.106 hk-scan

缺少對localhost的解析!

解決方法:

1、編輯/etc/hosts文件

[root@hk1 bin]# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1  localhost
192.168.56.101  hk1
192.168.56.103  hk2
10.10.10.101  hk1-priv
10.10.10.103  hk2-priv
192.168.56.104 hk1-vip
192.168.56.105 hk2-vip
192.168.56.106 hk-scan

2、刪除CRS的配置,重新運行root.sh

[root@hk2 install]# perl rootcrs.pl -deconfig -force

2014-07-07 18:09:51: Parsing the host name
2014-07-07 18:09:51: Checking for super user privileges
2014-07-07 18:09:51: User has super user privileges
Using configuration parameter file: ./crsconfig_params
PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.eons is registered
Cannot communicate with crsd
ACFS-9200: Supported
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hk2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'hk2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hk2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hk2'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'hk2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'hk2'
CRS-2673: Attempting to stop 'ora.evmd' on 'hk2'
CRS-2673: Attempting to stop 'ora.asm' on 'hk2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'hk2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'hk2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'hk2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'hk2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'hk2' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'hk2' succeeded
CRS-2677: Stop of 'ora.asm' on 'hk2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hk2'
CRS-2677: Stop of 'ora.cssd' on 'hk2' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'hk2'
CRS-2673: Attempting to stop 'ora.gipcd' on 'hk2'
CRS-2677: Stop of 'ora.gipcd' on 'hk2' succeeded
CRS-2677: Stop of 'ora.diskmon' on 'hk2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hk2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
error: package cvuqdisk is not installed
Successfully deconfigured Oracle clusterware stack on this node

重新運行root.sh:

[root@hk2 install]# /u01/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: y
   Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2014-07-07 18:11:35: Parsing the host name
2014-07-07 18:11:35: Checking for super user privileges
2014-07-07 18:11:35: User has super user privileges
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE 
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node hk1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'hk2'
CRS-2676: Start of 'ora.mdnsd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'hk2'
CRS-2676: Start of 'ora.gipcd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'hk2'
CRS-2676: Start of 'ora.gpnpd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'hk2'
CRS-2676: Start of 'ora.cssdmonitor' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'hk2'
CRS-2672: Attempting to start 'ora.diskmon' on 'hk2'
CRS-2676: Start of 'ora.diskmon' on 'hk2' succeeded
CRS-2676: Start of 'ora.cssd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'hk2'
CRS-2676: Start of 'ora.ctssd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'hk2'
CRS-2676: Start of 'ora.drivers.acfs' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'hk2'
CRS-2676: Start of 'ora.asm' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'hk2'
CRS-2676: Start of 'ora.crsd' on 'hk2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'hk2'
CRS-2676: Start of 'ora.evmd' on 'hk2' succeeded
hk2     2014/07/07 18:13:53     /u01/11.2.0/grid/cdata/hk2/backup_20140707_181353.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 4095 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.

@腳本運行成功!

3、驗證

[root@hk2 bin]# ./crs_stat -t

Name           Type           Target    State     Host        
------------------------------------------------------------
ora.eons       ora.eons.type  ONLINE    ONLINE    hk1         
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora.hk1.gsd    application    OFFLINE   OFFLINE               
ora.hk1.ons    application    ONLINE    ONLINE    hk1         
ora.hk1.vip    ora....t1.type ONLINE    ONLINE    hk1         
ora.hk2.gsd    application    OFFLINE   OFFLINE               
ora.hk2.ons    application    ONLINE    ONLINE    hk2         
ora.hk2.vip    ora....t1.type ONLINE    ONLINE    hk2         
ora....network ora....rk.type ONLINE    ONLINE    hk1         
ora.ons        ora.ons.type   ONLINE    ONLINE    hk1

@至此,問題解決!

當前文章:Oracle11gR2安裝RAC錯誤之--HOSTS文件錯誤
文章分享:http://www.rwnh.cn/article34/jcjgse.html

成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設計、網(wǎng)頁設計公司營銷型網(wǎng)站建設、企業(yè)建站、服務器托管網(wǎng)站設計公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉載內(nèi)容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站建設
贵溪市| 汝南县| 张家界市| 辛集市| 昌吉市| 永康市| 库尔勒市| 金寨县| 佛学| 安龙县| 朝阳县| 临猗县| 拜泉县| 锡林浩特市| 台中市| 陕西省| 石阡县| 江源县| 禄丰县| 塘沽区| 桐柏县| 九龙城区| 五家渠市| 历史| 嵊州市| 广饶县| 北宁市| 鞍山市| 施甸县| 沂南县| 芒康县| 德令哈市| 博客| 瓮安县| 临沂市| 周口市| 台前县| 柘荣县| 格尔木市| 易门县| 舒城县|