Oracle 11R2 Grid Infrastructure執行root.sh指令碼rootcrs.pl execution failed的處理
Oracle 11.2.0.4在Redhat Linux 6.1上執行/u01/app/product/11.2.0/crs/root.sh指令碼時報以下錯誤資訊:
/u01/app/product/11.2.0/crs/bin/srvctl start nodeapps -n beiku1 ... failed FirstNode configuration failed at /u01/app/product/11.2.0/crs/crs/install/crsconfig_lib.pm line 9379. /u01/app/product/11.2.0/crs/perl/bin/perl -I/u01/app/product/11.2.0/crs/perl/lib -I/u01/app/product/11.2.0/crs/crs/install /u01/app/product/11.2.0/crs/crs/install/rootcrs.pl execution failed
從上面的錯誤資訊可以看到在執行srvctl start nodeapps -n bieku1時失敗,嘗試手動執行這個命令
[grid@beiku1 bin]$ ./srvctl start nodeapps -n beiku1 PRCR-1013 : Failed to start resource ora.ons PRCR-1064 : Failed to start resource ora.ons on node beiku1 CRS-5016: Process "/u01/app/product/11.2.0/crs/opmn/bin/onsctli" spawned by agent "/u01/app/product/11.2.0/crs/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)" in "/u01/app/product/11.2.0/crs/log/beiku1/agent/crsd/oraagent_grid/oraagent_grid.log" CRS-2674: Start of 'ora.ons' on 'beiku1' failed
錯誤資訊是Start of 'ora.ons' on 'beiku1' failed,那麼來檢查$ORACLE_HOME/cfgtoollogs/crsconfig/rootcrs_$HOSTNAME.log日誌檔案
[grid@beiku1 crs]$ cd $ORACLE_HOME/cfgtoollogs/crsconfig/ [grid@beiku1 crsconfig]$ ls -lrt total 332 -rwxrwxr-x 1 grid oinstall 81336 Aug 26 15:36 srvmcfg0.log -rwxrwxr-x 1 grid oinstall 18719 Aug 26 15:36 srvmcfg1.log -rwxrwxr-x 1 grid oinstall 23213 Aug 26 15:36 srvmcfg2.log -rwxrwxr-x 1 grid oinstall 24700 Aug 26 15:36 srvmcfg3.log -rwxrwxr-x 1 grid oinstall 10705 Aug 26 15:36 srvmcfg4.log -rwxrwxr-x 1 grid oinstall 25594 Aug 26 15:37 srvmcfg5.log -rwxrwxr-x 1 grid oinstall 132771 Aug 26 15:37 rootcrs_beiku1.log
[grid@beiku1 crsconfig]$ cat rootcrs_beiku1.log 2015-08-26 15:36:52: J2EE (OC4J) Container Resource Add Wallet ... passed ... 2015-08-26 15:36:52: Running as user grid: /u01/app/product/11.2.0/crs/bin/qosctl -autogenerate 2015-08-26 15:36:52: s_run_as_user2: Running /bin/su grid -c ' /u01/app/product/11.2.0/crs/bin/qosctl -autogenerate ' 2015-08-26 15:36:54: Removing file /tmp/fileoriV8Q 2015-08-26 15:36:54: Successfully removed file: /tmp/fileoriV8Q 2015-08-26 15:36:54: /bin/su successfully executed 2015-08-26 15:36:54: qosctl output: User qosadmin added successfully. User oc4jadmin added successfully. 2015-08-26 15:36:54: Running as user grid: /u01/app/product/11.2.0/crs/bin/crsctl query wallet -type APPQOSADMIN -user oc4jadmin 2015-08-26 15:36:54: s_run_as_user2: Running /bin/su grid -c ' /u01/app/product/11.2.0/crs/bin/crsctl query wallet -type APPQOSADMIN -user oc4jadmin ' 2015-08-26 15:36:55: Removing file /tmp/fileHsIIY7 2015-08-26 15:36:55: Successfully removed file: /tmp/fileHsIIY7 2015-08-26 15:36:55: /bin/su successfully executed 2015-08-26 15:36:55: Running as user grid: /u01/app/product/11.2.0/crs/bin/crsctl query wallet -type APPQOSADMIN -user qosadmin 2015-08-26 15:36:55: s_run_as_user2: Running /bin/su grid -c ' /u01/app/product/11.2.0/crs/bin/crsctl query wallet -type APPQOSADMIN -user qosadmin ' 2015-08-26 15:36:55: Removing file /tmp/fileQXtLZo 2015-08-26 15:36:55: Successfully removed file: /tmp/fileQXtLZo 2015-08-26 15:36:55: /bin/su successfully executed 2015-08-26 15:36:55: Invoking "/u01/app/product/11.2.0/crs/bin/srvctl add cvu" 2015-08-26 15:36:55: trace file=/u01/app/product/11.2.0/crs/cfgtoollogs/crsconfig/srvmcfg5.log 2015-08-26 15:36:55: Running as user grid: /u01/app/product/11.2.0/crs/bin/srvctl add cvu 2015-08-26 15:36:55: Invoking "/u01/app/product/11.2.0/crs/bin/srvctl add cvu" as user "grid" 2015-08-26 15:36:55: Executing /bin/su grid -c "/u01/app/product/11.2.0/crs/bin/srvctl add cvu" 2015-08-26 15:36:55: Executing cmd: /bin/su grid -c "/u01/app/product/11.2.0/crs/bin/srvctl add cvu" 2015-08-26 15:36:57: add cvu ... success 2015-08-26 15:36:57: starting nodeapps... 2015-08-26 15:36:57: DHCP_flag=0 2015-08-26 15:36:57: nodes_to_start=beiku1 2015-08-26 15:37:18: exit value of start nodeapps/vip is 1 2015-08-26 15:37:18: output for start nodeapps is PRCR-1013 : Failed to start resource ora.ons PRCR-1064 : Failed to start resource ora.ons on node beiku1 CRS-5016: Process "/u01/app/product/11.2.0/crs/opmn/bin/onsctli" spawned by agent "/u01/app/product/11.2.0/crs/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)" in "/u01/app/product/11.2.0/crs/log/beiku1/agent/crsd/oraagent_grid/oraagent_grid.log" CRS-2674: Start of 'ora.ons' on 'beiku1' failed 2015-08-26 15:37:18: output of startnodeapp after removing already started mesgs is PRCR-1013 : Failed to start resource ora.ons PRCR-1064 : Failed to start resource ora.ons on node beiku1 CRS-5016: Process "/u01/app/product/11.2.0/crs/opmn/bin/onsctli" spawned by agent "/u01/app/product/11.2.0/crs/bin/oraagent.bin" for action "start" failed: details at "(:CLSN00010:)" in "/u01/app/product/11.2.0/crs/log/beiku1/agent/crsd/oraagent_grid/oraagent_grid.log" CRS-2674: Start of 'ora.ons' on 'beiku1' failed 2015-08-26 15:37:18: /u01/app/product/11.2.0/crs/bin/srvctl start nodeapps -n beiku1 ... failed
檢查I $GRID_HOME/opmn/logs/ons.log.*檔案,看是否有以下錯誤:
1.
[grid@beiku1 oraagent_grid]$ cd $ORACLE_HOME/opmn/logs/ [grid@beiku1 logs]$ ls -lrt total 8 -rw-r--r-- 1 grid oinstall 576 Aug 26 15:48 ons.log.beiku1 -rw-r--r-- 1 grid oinstall 267 Aug 26 15:48 ons.out [grid@beiku1 logs]$ cat ons.log.beiku1 [2015-08-26T15:37:02+08:00] [internal] getaddrinfo(::0, 6200, 1) failed (Hostname and service name not provided or found): Connection timed out
如果存在上面的錯誤資訊,那麼原因就是/etc/hosts檔案中localhost對應的IP地址不是127.0.0.1。解決方法如就是確保DNS和/etc/hosts檔案正確設定了localhost,DNS或/etc/hosts檔案依賴於(/etc/nsswitch.conf, or /etc/netsvc.conf depend on platform),這些配置檔案中的命名解決方案的設定,可以參考MOS中的ID 942166.1 or ID 969254.1文件來進行處理。
2.
[grid@beiku1 oraagent_grid]$ cd $ORACLE_HOME/opmn/logs/ [grid@beiku1 logs]$ ls -lrt total 8 -rw-r--r-- 1 grid oinstall 576 Aug 26 15:48 ons.log.beiku1 -rw-r--r-- 1 grid oinstall 267 Aug 26 15:48 ons.out [grid@beiku1 logs]$ cat ons.log.beiku1 [2015-08-26T15:37:02+08:00] [ons] [NOTIFICATION:1] [104] [ons-internal] ONS server initiated [2015-08-26T15:37:02+08:00] [ons] [ERROR:1] [17] [ons-listener] any: BIND (Address already in use) [2015-08-26T15:39:42+08:00] [ons] [NOTIFICATION:1] [104] [ons-internal] ONS server initiated [2015-08-26T15:39:42+08:00] [ons] [ERROR:1] [17] [ons-listener] any: BIND (Address already in use) [2015-08-26T15:48:40+08:00] [ons] [NOTIFICATION:1] [104] [ons-internal] ONS server initiated [2015-08-26T15:48:40+08:00] [ons] [ERROR:1] [17] [ons-listener] any: BIND (Address already in use)
原因是有其它的程式佔用的ONS服務的埠
[grid@beiku1 logs]$ grep port $ORACLE_HOME/opmn/conf/ons.config localport=6100 # line added by Agent remoteport=6200 # line added by Agent [root@beiku1 /]# lsof | grep 6200 | grep LISTEN ons 16413 grid 6u IPv6 162533 TCP *:6200 (LISTEN)
可以看到程式ID16413的ons程式佔用了6200埠,解決方法是確保這個埠不被其它進行所佔用,如果是在執行 rootupgrade.sh指令碼進行升級之前被佔用,那麼可能的原因是舊版本的ons程式還在執行。
3.
[grid@beiku1 oraagent_grid]$ cd $ORACLE_HOME/opmn/logs/ [grid@beiku1 logs]$ ls -lrt total 8 -rw-r--r-- 1 grid oinstall 576 Aug 26 15:48 ons.log.beiku1 -rw-r--r-- 1 grid oinstall 267 Aug 26 15:48 ons.out [grid@beiku1 logs]$ cat ons.log.beiku1 [2015-08-26T15:48:40+08:00] [ons] [NOTIFICATION:1] [104] [ons-internal] ONS server initiated [2015-08-26T15:48:40+08:00] [ons] [ERROR:1] [17] [ons-listener] 0000:0000:0000:0000:0000:0000:0000:0001,6100: BIND (Cannot assign requested address)
這種情況可能是IPV6被部分配置了,11gR2 Grid Infrastructure不支援IPv6。解決方法就是在$GRID_HOME/opmn/conf/ons.config and ons.config.檔案中設定下面的引數:
interface=ipv4
這裡出現的錯誤是第2種,程式ID16413的ons程式佔用了6200埠,解決方法是確保這個埠不被其它進行所佔用
[root@beiku1 /]# lsof | grep 6200 | grep LISTEN ons 16413 grid 6u IPv6 162533 TCP *:6200 (LISTEN) [root@beiku1 /]# kill -9 16413
再重新執行root.sh指令碼
[root@beiku1 /]# ./u01/app/product/11.2.0/crs/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/product/11.2.0/crs Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite. The contents of "oraenv" have not changed. No need to overwrite. The contents of "coraenv" have not changed. No need to overwrite. 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 script. Now product-specific root actions will be performed. Using configuration parameter file: /u01/app/product/11.2.0/crs/crs/install/crsconfig_params User ignored Prerequisites during installation Installing Trace File Analyzer PRKO-2190 : VIP exists for node beiku1, VIP name beiku1-vip Preparing packages for installation... cvuqdisk-1.0.9-1 Configure Oracle Grid Infrastructure for a Cluster ... succeeded
在kill掉佔用6200埠的程式之後,root.sh指令碼可以成功執行。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-1783356/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【轉】How to recover from root.sh on 11.2 Grid Infrastructure FailedASTStructAI
- Oracle:GRID 下 root.sh 指令碼Oracle指令碼
- 11.2.0.1 Grid Infrastructure Installation Failed at .... While Running root.shASTStructAIWhile
- Oracle RAC重新執行root.sh指令碼Oracle指令碼
- 【Oracle】11gR2的安裝Grid執行root.sh出現ohasd failed解決方案OracleAI
- Oracle Clusterware and Oracle Grid InfrastructureOracleASTStruct
- Oracle /app/grid/grid11g/crs/install/roothas.pl execution failedOracleAPPAI
- 安裝oracle11g遇到的執行root.sh指令碼問題Oracle指令碼
- oracle 11gR2 RAC for linux x86_64 grid執行root.sh 失敗問題處理OracleLinux
- Oracle Grid Infrastructure for a Standalone ServerOracleASTStructServer
- 10G RAC重新執行root.sh指令碼指令碼
- Oracle grid infrastructure 解除安裝OracleASTStruct
- 執行root.sh 時報錯Failed to upgrade Oracle Cluster Registry configurationAIOracle
- 11g R2執行root.sh 不成功的處理及解除安裝 11g grid
- root.sh執行失敗的解決方法及後續處理
- 安裝grid時執行root.sh時的提示內容
- RAC grid 11.2.0.1執行root.sh需執行此命令(啟動crs)
- root使用者執行root.sh失敗怎麼處理
- RHEL 7 安裝oracle rac 11.2.0.4執行root.sh報錯ohasd failed to startOracleAI
- 安裝rac clusterware如何在root.sh失敗後快速重執行root.sh指令碼指令碼
- Oracle Grid Infrastructure Patch Set Update 11.2.0.4.3OracleASTStruct
- ORACLE問題處理十個指令碼Oracle指令碼
- 安裝RAC 執行root.sh指令碼報錯,解決辦法指令碼
- Program Execution 程式的執行
- Oracle用指令碼執行備份Oracle指令碼
- 關於oracle安裝時的root.sh指令碼解析Oracle指令碼
- Oracle RAC 安裝 執行 root.sh時報Failed to upgrade Oracle Cluster Registry configuration問題的解決OracleAI
- Apply PSU for Grid Infrastructure Standalone and DB with Oracle RestartAPPASTStructOracleREST
- Oracle 12c Grid Infrastructure for a Standalone Server on Oracle Linux 7OracleASTStructServerLinux
- Master Note for RAC Oracle Clusterware and Oracle Grid Infrastructure 1096952.ASTOracleStruct
- Infrastructure 知識: dnf對module的處理ASTStruct
- clone grid INfrastructure Home and clusterwareASTStruct
- Windos bat批處理指令碼,判斷是終端命令列執行,還是雙擊執行BAT指令碼命令列
- oracle 11gR2 rac for aix 第二個節點執行root.sh不成功問題處理OracleAI
- 安裝 11gR2 Grid Infrastructure(CRS)失敗的處理過程 (文件 ID 1946678.1)ASTStruct
- 計劃任務執行批處理指令碼,執行記錄顯示“上次執行結果(0x1)”指令碼
- 12c rac在安裝grid軟體執行root.sh指令碼的時候出現PRCT-1431,CLSRSC-180指令碼
- oracle rootcrs.pl 用法Oracle