RAC改VIP和SCAN IP
叢集改不了計算機名,但是可以改IP,但是改IP的話最好不要改網段,改網段涉及到網路層的更改,網路層的命令為oifcfg
檢視VIP的資訊:
srvctl config vip -n node1
srvctl config vip -n node2
srvctl config nodeapps -a
[root@node1 ~]# srvctl config vip -n node1
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
[root@node1 ~]# srvctl config vip -n node2
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
[root@node1 ~]# srvctl config nodeapps -a
Network exists: 1/192.168.92.0/255.255.255.0/eth0, type static
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
修改node2的vip:(由24改為26)
/u01/app/11.2.0/grid/bin/srvctl stop listener -n node2
/u01/app/11.2.0/grid/bin/srvctl stop vip -n node2
修改兩個節點的/etc/hosts,把node2的新的vip體現出來。
/u01/app/11.2.0/grid/bin/srvctl modify nodeapps -n node2 -A 192.168.92.26/255.255.255.0/eth0
/u01/app/11.2.0/grid/bin/srvctl start vip -n node2
/u01/app/11.2.0/grid/bin/srvctl start listener -n node2
檢視SCAN IP的資訊(node-scan是/etc/hosts中scan ip的別名)
srvctl config scan
srvctl status scan
[root@node1 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node1
[root@node1 ~]# srvctl config scan
SCAN name: node-scan, Network: 1/192.168.92.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /node-scan/192.168.92.30
修改SCAN VIP
/u01/app/11.2.0/grid/bin/srvctl stop scan_listener
/u01/app/11.2.0/grid/bin/srvctl stop scan
修改/etc/hosts裡的scan vip的地址
/u01/app/11.2.0/grid/bin/srvctl modify scan -n node-scan
/u01/app/11.2.0/grid/bin/srvctl start scan
/u01/app/11.2.0/grid/bin/srvctl config scan
/u01/app/11.2.0/grid/bin/srvctl modify scan_listener -u
/u01/app/11.2.0/grid/bin/srvctl start scan_listener
檢視VIP的資訊:
srvctl config vip -n node1
srvctl config vip -n node2
srvctl config nodeapps -a
[root@node1 ~]# srvctl config vip -n node1
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
[root@node1 ~]# srvctl config vip -n node2
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
[root@node1 ~]# srvctl config nodeapps -a
Network exists: 1/192.168.92.0/255.255.255.0/eth0, type static
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
修改node2的vip:(由24改為26)
/u01/app/11.2.0/grid/bin/srvctl stop listener -n node2
/u01/app/11.2.0/grid/bin/srvctl stop vip -n node2
修改兩個節點的/etc/hosts,把node2的新的vip體現出來。
/u01/app/11.2.0/grid/bin/srvctl modify nodeapps -n node2 -A 192.168.92.26/255.255.255.0/eth0
/u01/app/11.2.0/grid/bin/srvctl start vip -n node2
/u01/app/11.2.0/grid/bin/srvctl start listener -n node2
檢視SCAN IP的資訊(node-scan是/etc/hosts中scan ip的別名)
srvctl config scan
srvctl status scan
[root@node1 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node1
[root@node1 ~]# srvctl config scan
SCAN name: node-scan, Network: 1/192.168.92.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /node-scan/192.168.92.30
修改SCAN VIP
/u01/app/11.2.0/grid/bin/srvctl stop scan_listener
/u01/app/11.2.0/grid/bin/srvctl stop scan
修改/etc/hosts裡的scan vip的地址
/u01/app/11.2.0/grid/bin/srvctl modify scan -n node-scan
/u01/app/11.2.0/grid/bin/srvctl start scan
/u01/app/11.2.0/grid/bin/srvctl config scan
/u01/app/11.2.0/grid/bin/srvctl modify scan_listener -u
/u01/app/11.2.0/grid/bin/srvctl start scan_listener
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30126024/viewspace-2144116/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC中的Public IP, VIP和Internal IP,SCANOracle
- Oracle RAC修改public, VIP, SCAN IPOracle
- rac 手動漂移scan ip vip
- RAC_網路_VIP漂移_SCAN IP
- Oracle RAC修改public,private,vip scan IPOracle
- RAC中的各種IP-PUBLIC-VIP-Private-SCAN IP
- oracle 11g rac 修改VIP、scan VIP、priv IP操作文件Oracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- RAC_TNS故障轉移負載均衡、SCAN IP、VIP、PUBLIC IP負載
- rac 改public 及vip IP---備份01
- Oracle RAC修改IP和VIP地址Oracle
- RAC重建SCAN IP
- RAC 增加SCAN IP
- rac 新增第二public ip 和 vip
- How to update the IP address of the SCAN VIP
- RAC中修改IP, VIP
- RAC 11GR3雙網段設定兩套VIP SCAN IP以及LISTENER
- 11gr2 rac改IP系列之三:修改SCAN IP為同網段其它IP
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- How to update SCAN VIP (ora.scan.vip) [ID 952903.1]
- 11gr2 rac改IP系列之二:修改VIP為同網段其它IP
- Oracle 11g修改RAC SCAN IPOracle
- Oracle 11gR2 RAC修改SCAN IPOracle
- 【RAC】如何修改SCAN IP的IP地址、名稱、埠等資訊
- Oracle 11gR2 RAC修改SCAN IP地址Oracle
- How to modify Public ip and vip In 11gr2 Rac
- 詭異的事情,RAC,public ip通,vip不通
- 【VIP】調整RAC虛擬IP地址(VIP)及虛擬主機名
- Oracle RAC 11gR2 SCAN IP和VIP共用1521監聽埠引發的ORA-12520問題Oracle
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- RAC 11.2.0.3 SCAN IP 配置 二度衝擊
- (轉)【VIP】調整RAC虛擬IP地址(VIP)及虛擬主機名
- oracle 10g rac modify public ip,private ip,vip實驗步驟Oracle 10g
- 修改scan ip
- Oracle 11g RAC 叢集 SCAN IP Listener說明Oracle
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- 基於RedHat的RAC環境下修改ip及vipRedhat
- Oracle RAC環境下vip/public/private IP的區別Oracle