RAC網路配置資訊操作

lovehewenyu發表於2012-05-28

 

RAC網路配置資訊操作

 

首先感謝筆者。謝謝老師!

http://space.itpub.net/519536/viewspace-678398secooler

http://space.itpub.net/12020513/viewspace-630224Blessed

 

如果Oracle RAC資料庫公用網路和私有互聯網路的IP子網或IP地址不正確時,可以使用Oracle提供的介面配置工具oifcfg進行調整。這樣的修改方法可以達到更新OCR資訊的目的。

 

1、使用oifcfggetif選項可以獲取當前網路的配置資訊

 [ora@rac2-22 ~]$ oifcfg getif

eth0  192.168.0.0  global  public

eth0  192.168.1.0  global  cluster_interconnect

eth1  192.168.1.0  global  cluster_interconnect

 

很顯然我們的這裡的資訊是不正確的。我們cluster_interconnect心跳線IP為一個網路卡,這裡給出了2 網路卡。顯然資訊不準。

 

2、使用oifcfgdelif選項可以刪除與公共網路對應的資訊

[ora@rac2-22 ~]$ oifcfg delif -global eth0

 

3、使用oifcfgsetif選項可以新增與公共網路對應的資訊

[ora@rac2-22 ~]$ oifcfg setif -global eth0/192.168.0.0:public

 

4、使用oifcfggetif 選項檢視當前網路的配置資訊,現已經正確

[ora@rac2-22 ~]$ oifcfg getif

eth0  192.168.0.0  global  public                VIP與管理IP段)

eth1  192.168.1.0  global  cluster_interconnect       (心跳IP段)

 

在看看另一個節點是否同步網路配置資訊

[ora@rac1-21 ~]$ oifcfg getif

eth0  192.168.0.0  global  public

eth1  192.168.1.0  global  cluster_interconnect

 

OK 一切OK oifcfg命令已經更新了OCR的網路配置資訊!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-731283/,如需轉載,請註明出處,否則將追究法律責任。

相關文章