【DB筆試面試731】在Oracle中,RAC在修改IP地址時有哪些注意事項?
- 2020 年 1 月 20 日
- 筆記
♣
題目部分
在Oracle中,RAC在修改IP地址時有哪些注意事項?
♣
答案部分
1.如果底層網路配置已經更改,但是oifcfg尚未執行同樣的變更,則重啟oracle集群會導致crsd進程不能啟動。
crsd.log 日誌將會顯示如下:
2018-01-30 09:22:47.234: [ default][2926461424] CRS Daemon Starting .. 2018-01-30 09:22:47.273: [ GPnP][2926461424]clsgpnp_Init: [at clsgpnp0.c:837] GPnP client pid=7153, tl=3, f=0 2018-01-30 09:22:47.282: [ OCRAPI][2926461424]clsu_get_private_ip_addresses: no ip addresses found. 2018-01-30 09:22:47.282: [GIPCXCPT][2926461424] gipcShutdownF: skipping shutdown, count 2, from [ clsinet.c : 1732], ret gipcretSuccess (0) 2018-01-30 09:22:47.283: [GIPCXCPT][2926461424] gipcShutdownF: skipping shutdown, count 1, from [ clsgpnp0.c : 1021], ret gipcretSuccess (0) [ OCRAPI][2926461424]a_init_clsss: failed to call clsu_get_private_ip_addr (7) 2018-01-30 09:22:47.285: [ OCRAPI][2926461424]a_init:13!: Clusterware init unsuccessful : [44] 2018-01-30 09:22:47.285: [ CRSOCR][2926461424] OCR context init failure. Error: PROC-44: Error in network address and interface operations Network address and interface operations error [7] 2018-01-30 09:22:47.285: [ CRSD][2926461424][PANIC] CRSD exiting: Could not init OCR, code: 44 2018-01-30 09:22:47.285: [ CRSD][2926461424] Done.
以上錯誤顯示作業系統層面的設置(oifcfg iflist)與 gpnp profile.xml 配置文件設置不匹配。
解決方法:恢復作業系統網路配置到最初的狀態,啟動 oracle 集群,然後再按照上面的步驟重新更改。
如果底層的網路並沒有改變,但 oifcfg 已經被設置了一個錯誤的子網地址或介面名字,則會發生同樣的問題。
2.如果集群中的任何一個節點關閉,oifcfg 命令將會失敗並顯示錯誤:
$ oifcfg setif -global bond0/192.168.0.0:cluster_interconnect PRIF-26: Error in update the profiles in the cluster
解決方案:啟動 oracle 集群中沒有運行的節點,確保集群中所有的節點都已啟動,如果由於作業系統原因不能啟動的節點,請先將此節點從集群中刪除在執行私網網路變更。
3.如果執行上面命令的的用戶非 GI 的擁有者,則會出現相同的錯誤:
$ oifcfg setif -global bond0/192.168.0.0:cluster_interconnect PRIF-26: Error in update the profiles in the cluster
解決方案:確保使用 GI 的擁有者登錄並執行上面命令。
4.從Oracle 11.2.0.2開始,如果在沒有加入一個新私有網卡,就試圖刪除最後一個私有網卡(集群私網),那麼會發生下面錯誤:
PRIF-31: Failed to delete the specified network interface because it is the last private interface
解決方案:在刪除舊的私有網卡之前,先加入新的私有網卡。
5. 如果主機節點的 oracle 集群關閉在關閉狀態,則會報下面錯誤:
$ oifcfg getif PRIF-10: failed to initialize the cluster registry
解決方案:啟動該主機節點上的oracle集群軟體。
& 說明:
有關RAC中修改IP地址的更多內容可以參考:https://ke.qq.com/course/316312?tuin=26507979、http://blog.itpub.net/26736162/viewspace-2157362/、http://blog.itpub.net/26736162/viewspace-2157364/、http://blog.itpub.net/26736162/viewspace-2157372/
本文選自《Oracle程式設計師面試筆試寶典》,作者:小麥苗