Oracle10g RAC Private IP修改

一客戶的核心Oracle10g RAC架構的數據庫要進行IP的修改,原因爲目前public ip和virtual ip均是用的公網IP,因此基於安全的考慮,將這2類IP均修改爲公司局域網內私網IP。

出於對客戶信息的保密,因此不能將真實的IP寫出來,不過我會描述清楚,若有疑問,歡迎留言指出。

 

IP類型 節點1(原IP) 節點1(改後IP) 節點2(原IP) 節點2(改後IP)
Public IP 202.85.219.x 192.168.0.214 202.85.219.x 192.168.0.215
Virtual IP 202.85.219.x 192.168.0.216 202.85.219.x 192.168.0.217
Private IP 192.168.0.214 10.0.1.8 192.168.0.214 10.0.1.9

 

本套RAC需要修改public ip,virtual ip和private ip,相比較而言,修改private ip是最簡單的,因此我們先執行private ip的修改工作。

查看當前網卡信息:

[oracle@oracle3 ~]$ oifcfg getif
eth0  202.85.219.0  global  public
eth1  192.168.0.0  global  cluster_interconnect


使用oifcfg命令添加新的私網信息並刪掉舊的私網信息使用oifcfg命令添加新的私網信息並刪掉舊的私網信息

[oracle@oracle3 ~]$ oifcfg setif -global eth1/10.0.1.0:cluster_interconnect
[oracle@oracle3 ~]$ oifcfg delif -global eth1/192.168.0.0


查看修改後的私網信息

[oracle@oracle3 ~]$ oifcfg getif
eth0  202.85.219.0  global  public
eth1  10.0.1.0  global  cluster_interconnect  ---> 已顯示爲被修改的subnet


關閉Oracle Clusterware Stack

oracle3:root@/oracle/product/10.2.0/crs/bin>./crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.


修改/etc/hosts文件,網卡IP配置

本步需要更新/etc/hosts文件,網卡上所配置的IP地址。

 

啓動Oracle Clusterware Stack

oracle3:root@/oracle/product/10.2.0/crs/bin>./crsctl start crs
Attempting to start CRS stack 
The CRS stack will be started shortly

 

 

至此,Oracle10g RAC Private IP地址修改完畢。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章