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, VIP, SCAN IPOracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- RAC 增加SCAN IP
- rac 新增第二public ip 和 vip
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- 【RAC】如何修改SCAN IP的IP地址、名稱、埠等資訊
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- rac vip failback issueAI
- 新增SCAN IP
- 【RAC】Oracle rac 如何修改公網及vipOracle
- oracle rac scan監聽更改埠號Oracle
- RAC的VIP切換測試
- scan ip的手動切換
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- RAC修改IP地址
- Oracle 11G 修改scan_ipOracle
- oracle rac的scan監聽狀態Not All Endpoints RegisteredOracle
- 改變IP地址的原理和作用
- [重慶思莊每日技術分享]-11g rac scan ip 如何手動切換到其他節點上
- Oracle 12C ORA-12545 While Connecting to RAC through SCAN NameOracleWhile
- 更改rac scanIP IP的地址
- [20180427]SCAN_IP DNS 反向解析2.txtDNS
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- 【RAC】Oracle rac修改IP地址及埠號命令參考Oracle
- 關於“INS-40922 Invalid Scan Name – Unresolvable to IP address”
- 【rac故障】root.sh報錯Unable to get VIP info for new node
- Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)Oracle
- skim、scan和browse的區別
- SCAN
- w10怎麼改ip地址_win10系統如何改IP地址Win10
- 如何跟蹤11g vip及SCN IP的輸出
- 【RAC】RAC更換心跳地址和RAC更換儲存主要步驟
- Redis中KEYS和SCAN命令的區別和建議Redis
- 改變IP地址的三種方法
- win10怎麼修改ip_WIN10如何改ip地址Win10
- PostgreSQL DBA(119) - pgAdmin(LIMIT:Index Scan vs Bitmap Index Scan)SQLMITIndex
- 如何改變IP地址到別的城市
- 【DB寶44】Oracle rac叢集中的IP型別簡介Oracle型別