VIPCA無法執行
今天一早來,同事說他週末在安裝 rac 出問題了,始終無法使用vipca 建立 vip資源 , 叫我幫忙看看。
他用的是 vmware server 2.0 搭建 虛擬 rac 。
一. 環境如下
OS: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
KERNEL : 2.6.18-164.el5
clusterware: clusterware 10.2.0.1
1. 我首先檢視了他的 $ORA_CRS_HOME/bin 下的 vipca 檔案, 是否消除 LD_ASSUME_KERNEL 。
一看,果然沒有消除。
於是 export LD_ASSUME_KERNEL 的後一行 新增 unset LD_ASSUME_KERNEL ,後儲存 。
2. 再次執行 vipca ,但還是無法執行 報錯,於是到 $ORA_CRS_HOME/cfgtoollogs/vipca/ 下檢視日誌 。
vipca.log
=====================================================================================================
[main] [8:14:50:226] [VipCA.setDefaultTrace:321] trace log file is not null
[main] [8:14:50:226] [VipCA.getNodeList:1210] VIPCA: GetNodeList
[main] [8:14:50:274] [GetActiveNodes.create:213] Going into GetActiveNodes constructor…
[main] [8:14:50:285] [HASContext.getInstance:190] Module init : 16
[main] [8:14:50:285] [HASContext.getInstance:214] Local Module init : 19
[main] [8:14:50:338] [Library.getInstance:95] Created instance of Library.
[main] [8:14:50:339] [Library.load:195] Loading libsrvmhas10.so…
[main] [8:14:50:339] [Library.load:201] oracleHome null
[main] [8:14:50:339] [Library.load:236] Loading library srvmhas10 from path=
/opt/oracle/products/crs/jdk/jre/lib/i386/client:/opt/oracle/products/crs/jdk/jre/lib/i386:/opt/oracle/products/crs/jdk/jre/../lib/i386:/opt/oracle/products/crs/lib:/opt/oracle/products/crs/srvm/lib:
[main] [8:14:50:418] [Library.load:244] Loaded library srvmhas10 from path=
/opt/oracle/products/crs/jdk/jre/lib/i386/client:/opt/oracle/products/crs/jdk/jre/lib/i386:/opt/oracle/products/crs/jdk/jre/../lib/i386:/opt/oracle/products/crs/lib:/opt/oracle/products/crs/srvm/lib:
[main] [8:14:50:420] [has.HASContextNative.Native] prsr_trace: no lsf ctx, line=Native: allocHASContext
[main] [8:14:50:420] [has.HASContextNative.Native]
allocHASContext: Came in
[main] [8:14:50:422] [has.HASContextNative.Native]
….
[main] [8:14:50:613] [OCRTreeHA.listInterfaceNames:1774] OCR does not have any global interfaces set
[main] [8:14:50:613] [OCRTreeHA.listInterfaceNames:1779] Releasing shared CSS lock SRVM.SYSTEM.css.interfaces
[main] [8:14:50:614] [has.ClusterLockNative.Native] prsr_trace: Native: unlock
[main] [8:14:50:615] [Cluster.extractInterfaces:1560] ifType = 4
[main] [8:14:50:615] [Cluster.extractInterfaces:1561] ipType = 0
[main] [8:14:50:615] [VipCA.getInterfaces:599] No public interfaces found in OCR. Getting interfaces from OS
[main] [8:14:50:617] [HASContext.getInstance:190] Module init : 32
[main] [8:14:50:617] [HASContext.getInstance:214] Local Module init : 32
[main] [8:14:50:617] [has.HASContextNative.Native] prsr_trace: Native: allocHASContext
[main] [8:14:50:618] [has.HASContextNative.Native]
allocHASContext: Came in
[main] [8:14:50:618] [has.HASContextNative.Native] prsr_trace: Native: prsr_initCLSR
[main] [8:14:50:620] [has.HASContextNative.Native]
allocHASContext: CLSR context [1]
[main] [8:14:50:620] [has.HASContextNative.Native]
allocHASContext: retval [1]
[main] [8:14:50:620] [HASContext.getInstance:249] HAS Context Allocated: 4 to [url=mailtoracle.ops.mgmt.has.VIP@16fd0b7]oracle.ops.mgmt.has.VIP@16fd0b7[/url]
[main] [8:14:50:620] [VIP.<init>:69] VIP Instance created.
[main] [8:14:50:622] [has.VIPNative.Native] prsr_trace: Native: listNetInterfaces
[main] [8:14:51:691] [has.VIPNative.Native] prsr_trace: prsr_setCLSRError: 3 — Error 0
[main] [8:14:51:692] [has.VIPNative.Native] prsr_trace: prsr_setCLSRError: 3 — Error 0
[main] [8:14:51:692] [has.VIPNative.Native] prsr_trace: prsr_throwException: oracle/ops/mgmt/has/HASContextException[Error 0–Native: listNetInterfaces]
[main] [8:14:51:698] [VipCA.runApplication:2891] oracle.ops.vipca.VipCA.getInterfaces(VipCA.java:614)
oracle.ops.vipca.VipCA.processGUIArgs(VipCA.java:452)
oracle.ops.vipca.VipCA.runApplication(VipCA.java:2841)
oracle.ops.vipca.VipCA.main(VipCA.java:3147)
=========================================end============================================================
看了一會,發現其中 OCR does not have any global interfaces set 這個提示。
於是我懷疑是他的網路設定問題。
3. 用 設定網路,解決問題。
用oifcfg 檢視的他網路
[root@node1 db]# oifcfg getif ;
沒有顯示資訊,證明他的網路根本沒設定好。
在檢視 /etc/hosts
# The public network address for rac node1 and node2 .
192.168.100.101 node1 # –> n1
192.168.100.102 node2 # –> n2
# The private network address for rac n1 and n2 .
10.10.10.11 node1-priv #–> n1
10.10.10.12 node2-priv #–> n2
# The virtral network address for rac n1 and n2 .
192.168.100.41 node1-vip
192.168.100.42 node2-vip
新增網路
[root@node1 db]# oifcfg iflist
eth0 192.168.100.0
eth1 10.10.10.0
eth2 172.24.121.128
[root@node1 db]# oifcfg setif -global eth0/192.168.100.0ublic
[root@node1 db]# oifcfg setif -global eth0/10.10.10.0:cluster_interconnect
[root@node1 db]# oifcfg getif
eth0 192.168.100.0 global public
eth1 10.10.10.0 global cluster_interconnect
再次執行 vipca 成功。
他用的是 vmware server 2.0 搭建 虛擬 rac 。
一. 環境如下
OS: Red Hat Enterprise Linux Server release 5.4 (Tikanga)
KERNEL : 2.6.18-164.el5
clusterware: clusterware 10.2.0.1
1. 我首先檢視了他的 $ORA_CRS_HOME/bin 下的 vipca 檔案, 是否消除 LD_ASSUME_KERNEL 。
一看,果然沒有消除。
於是 export LD_ASSUME_KERNEL 的後一行 新增 unset LD_ASSUME_KERNEL ,後儲存 。
2. 再次執行 vipca ,但還是無法執行 報錯,於是到 $ORA_CRS_HOME/cfgtoollogs/vipca/ 下檢視日誌 。
vipca.log
=====================================================================================================
[main] [8:14:50:226] [VipCA.setDefaultTrace:321] trace log file is not null
[main] [8:14:50:226] [VipCA.getNodeList:1210] VIPCA: GetNodeList
[main] [8:14:50:274] [GetActiveNodes.create:213] Going into GetActiveNodes constructor…
[main] [8:14:50:285] [HASContext.getInstance:190] Module init : 16
[main] [8:14:50:285] [HASContext.getInstance:214] Local Module init : 19
[main] [8:14:50:338] [Library.getInstance:95] Created instance of Library.
[main] [8:14:50:339] [Library.load:195] Loading libsrvmhas10.so…
[main] [8:14:50:339] [Library.load:201] oracleHome null
[main] [8:14:50:339] [Library.load:236] Loading library srvmhas10 from path=
/opt/oracle/products/crs/jdk/jre/lib/i386/client:/opt/oracle/products/crs/jdk/jre/lib/i386:/opt/oracle/products/crs/jdk/jre/../lib/i386:/opt/oracle/products/crs/lib:/opt/oracle/products/crs/srvm/lib:
[main] [8:14:50:418] [Library.load:244] Loaded library srvmhas10 from path=
/opt/oracle/products/crs/jdk/jre/lib/i386/client:/opt/oracle/products/crs/jdk/jre/lib/i386:/opt/oracle/products/crs/jdk/jre/../lib/i386:/opt/oracle/products/crs/lib:/opt/oracle/products/crs/srvm/lib:
[main] [8:14:50:420] [has.HASContextNative.Native] prsr_trace: no lsf ctx, line=Native: allocHASContext
[main] [8:14:50:420] [has.HASContextNative.Native]
allocHASContext: Came in
[main] [8:14:50:422] [has.HASContextNative.Native]
….
[main] [8:14:50:613] [OCRTreeHA.listInterfaceNames:1774] OCR does not have any global interfaces set
[main] [8:14:50:613] [OCRTreeHA.listInterfaceNames:1779] Releasing shared CSS lock SRVM.SYSTEM.css.interfaces
[main] [8:14:50:614] [has.ClusterLockNative.Native] prsr_trace: Native: unlock
[main] [8:14:50:615] [Cluster.extractInterfaces:1560] ifType = 4
[main] [8:14:50:615] [Cluster.extractInterfaces:1561] ipType = 0
[main] [8:14:50:615] [VipCA.getInterfaces:599] No public interfaces found in OCR. Getting interfaces from OS
[main] [8:14:50:617] [HASContext.getInstance:190] Module init : 32
[main] [8:14:50:617] [HASContext.getInstance:214] Local Module init : 32
[main] [8:14:50:617] [has.HASContextNative.Native] prsr_trace: Native: allocHASContext
[main] [8:14:50:618] [has.HASContextNative.Native]
allocHASContext: Came in
[main] [8:14:50:618] [has.HASContextNative.Native] prsr_trace: Native: prsr_initCLSR
[main] [8:14:50:620] [has.HASContextNative.Native]
allocHASContext: CLSR context [1]
[main] [8:14:50:620] [has.HASContextNative.Native]
allocHASContext: retval [1]
[main] [8:14:50:620] [HASContext.getInstance:249] HAS Context Allocated: 4 to [url=mailtoracle.ops.mgmt.has.VIP@16fd0b7]oracle.ops.mgmt.has.VIP@16fd0b7[/url]
[main] [8:14:50:620] [VIP.<init>:69] VIP Instance created.
[main] [8:14:50:622] [has.VIPNative.Native] prsr_trace: Native: listNetInterfaces
[main] [8:14:51:691] [has.VIPNative.Native] prsr_trace: prsr_setCLSRError: 3 — Error 0
[main] [8:14:51:692] [has.VIPNative.Native] prsr_trace: prsr_setCLSRError: 3 — Error 0
[main] [8:14:51:692] [has.VIPNative.Native] prsr_trace: prsr_throwException: oracle/ops/mgmt/has/HASContextException[Error 0–Native: listNetInterfaces]
[main] [8:14:51:698] [VipCA.runApplication:2891] oracle.ops.vipca.VipCA.getInterfaces(VipCA.java:614)
oracle.ops.vipca.VipCA.processGUIArgs(VipCA.java:452)
oracle.ops.vipca.VipCA.runApplication(VipCA.java:2841)
oracle.ops.vipca.VipCA.main(VipCA.java:3147)
=========================================end============================================================
看了一會,發現其中 OCR does not have any global interfaces set 這個提示。
於是我懷疑是他的網路設定問題。
3. 用 設定網路,解決問題。
用oifcfg 檢視的他網路
[root@node1 db]# oifcfg getif ;
沒有顯示資訊,證明他的網路根本沒設定好。
在檢視 /etc/hosts
# The public network address for rac node1 and node2 .
192.168.100.101 node1 # –> n1
192.168.100.102 node2 # –> n2
# The private network address for rac n1 and n2 .
10.10.10.11 node1-priv #–> n1
10.10.10.12 node2-priv #–> n2
# The virtral network address for rac n1 and n2 .
192.168.100.41 node1-vip
192.168.100.42 node2-vip
新增網路
[root@node1 db]# oifcfg iflist
eth0 192.168.100.0
eth1 10.10.10.0
eth2 172.24.121.128
[root@node1 db]# oifcfg setif -global eth0/192.168.100.0ublic
[root@node1 db]# oifcfg setif -global eth0/10.10.10.0:cluster_interconnect
[root@node1 db]# oifcfg getif
eth0 192.168.100.0 global public
eth1 10.10.10.0 global cluster_interconnect
再次執行 vipca 成功。
本文轉自 hsbxxl 51CTO部落格,原文連結:http://blog.51cto.com/hsbxxl/720248,如需轉載請自行聯絡原作者
相關文章
- 在RAC 中解決 vipca 和 srvctl 無法執行的錯誤PCA
- eos docker執行後無法執行cleosDocker
- docker 中vim 命令 無法執行Docker
- 物化檢視job無法執行
- ZeroMQ 3.2.2 XP下無法執行MQ
- crontab無法執行perl指令碼 手工卻成功執行指令碼
- Oracle執行JOB報ORA-27492:無法執行作業Oracle
- Linux下無法執行Color pickerLinux
- Oracle中job無法自動執行Oracle
- 無法執行的update問題解析
- Laravel 定時任務突然無法執行Laravel
- 記一個 Docker 映象無法執行的坑Docker
- kali無法執行cobaltstrike3.6解決方案
- C#執行緒間同步無法關閉C#執行緒
- safari 回撥中window.open無法執行
- 執行無法解決的編譯錯誤編譯
- eclipse+tomcat為何無法執行?EclipseTomcat
- win10管理員身份無法執行怎麼辦_win10管理員身份無法執行怎麼解決Win10
- Win10升級助手無法執行是怎麼回事?Win10升級助手無法執行的解決方法Win10
- 執行 phpunit 之後 request 無法獲取到引數PHP
- qt編譯報錯 無法執行“rc.exe”QT編譯
- azkaban執行任務長時間無法結束
- 執行jive論壇安裝工具無法透過?
- win10無法執行戰地3怎麼辦 win10戰地3安裝後無法執行解決方法Win10
- hibernate無法自動建表的原因以及.sql檔案無法執行的原因SQL
- Win8無法執行魔獸爭霸3的幾種辦法
- 關於Python能再Pycharm上執行而在VSCode下無法執行PythonPyCharmVSCode
- 執行wget命令,出錯:無法建立 SSL 連線。wget
- win10系統無法執行Kindle如何解決Win10
- pyinstaller打包exe--requests模組打包後無法執行
- Linux AS4 Zend Optimizer 無法執行的原因(轉)Linux
- vscode無法執行input輸入解決方法VSCode
- win10系統crysis3無法執行怎麼開啟_win10系統crysis3無法執行如何開啟Win10S3
- win10無法執行0xc0000142怎麼辦 win10無法執行0xc0000142的方法Win10
- django執行migrate無法生成表,提示 No migrations to applyDjangoAPP
- 傳json引數但卻controller無法執行JSONController
- 統計資訊過舊導致SQL無法執行出來SQL
- 極光推送demo在android studio中無法執行Android