共計 2095 個字符,預計需要花費 6 分鐘才能閱讀完成。
這篇文章主要講解了“Oracle RAC 怎么修改 Scan IP,Public IP”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著丸趣 TV 小編的思路慢慢深入,一起來研究和學習“Oracle RAC 怎么修改 Scan IP,Public IP”吧!
一、修改 public ip
1、提前關閉所有實例
srvctl stop database -d XXX
2、更新 ocr 網絡信息配置,root 用戶執行
oifcfg getif
oifcfg delif -global eth0/127.0.0.1
oifcfg setif -global eth0/192.168.20.0:public
srvctl config nodeapps -a
#############################################################
[root@stuaapp01 ~]# oifcfg getif
eth2 192.168.10.0 global cluster_interconnect
eth0 127.0.0.1 global public
[root@stuaapp01 ~]# oifcfg delif -global eth0/127.0.0.1
[root@stuaapp01 ~]# oifcfg setif -global eth0/192.168.20.0:public
[root@stuaapp01 ~]#
[root@stuaapp01 ~]# oifcfg getif
eth2 192.168.10.0 global cluster_interconnect
eth0 192.168.20.0 global public
3、修改系統層面網絡文件配置,/etc/hosts 和 /etc/sysconfig/network-scripts/ifcfg-eth0
按實際 IP 修改即可,此處不做詳細說明
4、重啟 RAC
crsctl stop crs
crsctl start crs
oifcfg getif
oifcfg delif -global eth0/192.168.20.0
oifcfg setif -global eth0/127.0.0.1:public
srvctl config nodeapps -a
二、修改 VIP
1、收集當前 VIP 配置信息
#/u01/app/11.2.0/grid/bin/srvctl config nodeapps
VIP 的狀態
#/u01/app/11.2.0/grid/bin/crs_stat -t
2、停止所有的資源
#/u01/app/11.2.0/grid/bin/srvctl stop instance -d oggsrc -n stuaapp01
#/u01/app/11.2.0/grid/bin/srvctl stop vip -n stuaapp01 -f
3、驗證 VIP 現在離線, 接口不再綁定到公共網絡接口
#/u01/app/11.2.0/grid/bin/crs_stat -t (or $ crsctl stat res t for 11gR2)
4、修改 /etc/hosts 文件中的 VIP
crsctl stat res ora.stuaapp01.vip -p
5、root 用戶,修改 VIP 的資源
#/u01/app/11.2.0/grid/bin/srvctl modify nodeapps -n stuaapp01 -A stuaapp01-vip/255.255.255.0/eth0
6、驗證變化
#/u01/app/11.2.0/grid/bin/srvctl config nodeapps -a
7、啟動資源
$ srvctl start vip -n stuaapp01
$ srvctl start listener -n stuaapp01
$ srvctl start instance -d oggsrc -n stuaapp01
三、修改 SCAN ip
1、檢查當前的 scan ip 配置信息,用 root 用戶運行
srvctl config scan
2、停止 SCAN listeners 和 SCAN,用 grid 用戶運行
srvctl stop scan_listener
srvctl stop scan
3、在 /etc/hosts 文件修改 scan ip 配置信息,兩個節點都需要改
按具體要求修改,此處不做詳細說明
4、刷新配置信息,用 root 用戶運行
srvctl modify scan -n rac-scan
5、驗證更改信息,用 root 用戶運行
srvctl config scan
6、重啟 SCAN SCAN listener,用 grid 用戶運行
srvctl start scan
srvctl start scan_listener
7、如果 SCAN VIPs 的數量發生變化,則需要更新如下信息(非必需操作)
srvctl modify scan_listener -u
感謝各位的閱讀,以上就是“Oracle RAC 怎么修改 Scan IP,Public IP”的內容了,經過本文的學習后,相信大家對 Oracle RAC 怎么修改 Scan IP,Public IP 這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是丸趣 TV,丸趣 TV 小編將為大家推送更多相關知識點的文章,歡迎關注!