您好,登錄后才能下訂單哦!
這篇文章給大家分享的是有關ORACLE 11G RAC如何修改IP的內容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。
原IP:
#Public IP
192.168.42.201 rac1
192.168.42.202 rac2
#Private IP
20.20.20.201 rac1-priv
20.20.20.202 rac2-priv
#Virtual IP
192.168.42.203 rac1-vip
192.168.42.204 rac2-vip
#Scan IP
192.168.42.205 rac-scan
修改后IP:
#Public IP
192.168.43.101 rac1
192.168.43.102 rac2
#Private IP
10.10.10.101 rac1-priv
10.10.10.102 rac2-priv
#Virtual IP
192.168.43.103 rac1-vip
192.168.43.104 rac2-vip
#Scan IP
192.168.43.105 rac-scan
一.修改Public IP
1.查看集群IP信息(grid)
oifcfg getif
2.刪除原public IP(grid)
oifcfg delif -global eth0/192.168.42.0
3.添加新public IP(grid)
oifcfg setif -global eth0/192.168.43.0:public
4.查看集群IP信息(grid)
oifcfg getif
5.修改hosts文件(root)
vi /etc/hosts
#Public IP
192.168.43.101 rac1
192.168.43.102 rac2
二.修改Virtual IP
1.停止節點1實例(grid)
srvctl stop instance -d rac -n rac1
2.停止節點1VIP(grid)
srvctl stop vip -n rac1 -f
3.查看vip配置(grid)
srvctl config nodeapps -a
4.修改hosts文件(root)
vi /etc/hosts
#Virtual IP
192.168.43.103 rac1-vip
192.168.43.104 rac2-vip
5.修改vip配置(root)
/u01/app/11.2.0.4/grid/bin/srvctl modify nodeapps -n rac1 -A 192.168.43.103/255.255.255.0/eth0
6.啟動(grid)
srvctl start vip -n rac1
srvctl start listener -n rac1
srvctl start instance -d rac -n rac1
三.修改Scan IP
1.停止scan服務(grid)
srvctl stop scan_listener
srvctl stop scan
2.修改hosts文件(root)
vi /etc/hosts
#Scan IP
192.168.43.105 rac-scan
3.修改scan配置(root)
srvctl modify scan -n scanip
4.修改scan listener配置(grid)
srvctl modify scan_listener -u
5.啟動服務(grid)
srvctl start scan_listener
6.確認是否生效(grid)
srvctl config scan
四.修改Private IP
1.備份 profile.xml
cd $ORACLE_HOME/gpnp/rac1/profiles/peer/
cp profile.xml profile.xml.bak
2.查看集群IP信息(grid)
oifcfg getif
3.加入新的private ip(grid)
oifcfg setif -global eth2/10.10.10.0:cluster_interconnect
4.查看集群IP信息(grid)
oifcfg getif
5.關閉并禁用所有節點的集群(root)
/u01/app/11.2.0.4/grid/bin/crsctl stop crs
/u01/app/11.2.0.4/grid/bin/crsctl disable crs
6.修改hosts文件(root)
vi /etc/hosts
#Private IP
10.10.10.101 rac1-priv
10.10.10.102 rac2-priv
7.開啟并啟動所有節點的集群(root)
/u01/app/11.2.0.4/grid/bin/crsctl enable crs
/u01/app/11.2.0.4/grid/bin/crsctl start crs
8.刪除原private ip(grid)
oifcfg delif -global eth2/20.20.20.0
9.查看集群IP信息(grid)
oifcfg getif
感謝各位的閱讀!關于“ORACLE 11G RAC如何修改IP”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,讓大家可以學到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。