How to change Public VIP Address in 11gR2 RAC
Public VIP Address: An interface that can be used for communication with components external to Oracle RAC instances, such as Oracle Net and Virtual Internet Protocol (VIP) addresses.
We can change VIP with any outage. We will change it node by node.
Step 1: Check which service is running on current which VIP , we want to change
[oracle@test1 ~]$ srvctl status service -s <database>
[oracle@test1 ~]$ srvctl status service -d orcl
Service dev is running on instance(s) orcl1
Service taxi is running on instance(s) orcl1
Service web is running on instance(s) orcl1
Step 2: Stop these services
[oracle@test1 ~]$ srvctl stop service -d <DB_NAME> -s <Service_name1,Service_name2> -n <hostname>
Step 3: Find VIP address:
[oracle@test1 ~]$ srvctl config vip -n <host_name>
[oracle@test1 ~]$ srvctl config vip -n test1
VIP exists: /test1-vip/192.168.1.106/192.168.1.0/255.255.255.0/eth0, hosting node test1
Step 4: Stop VIP of current node
[oracle@test1 ~]$ srvctl stop vip -n <host_name>
[oracle@test1 ~]$ srvctl stop vip -n test1
PRCR-1014 : Failed to stop resource ora.test1.vip
PRCR-1065 : Failed to stop resource ora.test1.vip
CRS-2529: Unable to act on ‘ora.test1.vip’ because that would require stopping or relocating ‘ora.LISTENER.lsnr’, but the force option was not specified.
CRS-2529: There is some dependent services on VIP of this node.
Stop VIP forcefully on this node.
[oracle@test1 ~]$ srvctl stop vip -n test1 -f
(-f :: forcefully)
Step 5: Verify VIP is down:
[oracle@test1 ~]$[oracle@test1 ~]$ /sbin/ifconfig -a | egrep ‘(eth0|Mask)’
eth0 Link encap:Ethernet HWaddr 00:0C:29:39:72:AD
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
inet addr:172.16.0.10 Bcast:172.16.255.255 Mask:255.255.0.0
inet addr:169.254.250.202 Bcast:169.254.255.255 Mask:255.255.0.0
inet addr:127.0.0.1 Mask:255.0.0.0
Step 6: Modify VIP
[oracle@test1 ~]$ srvctl modify nodeapps -n test1 -A 192.168.1.115/255.255.255.0/eth0
Step 7: Make changes into /etc/hosts file on all nodes and domain name server,
New IP address with their respective host name.
Step 8: Start VIP
[oracle@test1 ~]$ srvctl start vip -n test1
Step 8: Verify VIP
[oracle@test1 ~]$ /sbin/ifconfig -a | egrep ‘(eth0|Mask)’
eth0 Link encap:Ethernet HWaddr 00:0C:29:39:72:AD
inet addr:192.168.1.105 Bcast:192.168.1.255 Mask:255.255.255.0
eth0:1 Link encap:Ethernet HWaddr 00:0C:29:39:72:AD
inet addr:192.168.1.115 Bcast:192.168.1.255 Mask:255.255.255.0
inet addr:172.16.0.10 Bcast:172.16.255.255 Mask:255.255.0.0
inet addr:169.254.250.202 Bcast:169.254.255.255 Mask:255.255.0.0
inet addr:127.0.0.1 Mask:255.0.0.0
Step 9: Start dependent services
[oracle@test1 ~]$ srvctl start service -d orcl -s dev,taxi,web
Check services status
[oracle@test1 ~]$ srvctl status service -d orcl -s dev,taxi,web
Service dev is running on instance(s) orcl1
Service taxi is running on instance(s) orcl1
Service web is running on instance(s) orcl1
Step 10: Repeat step-1 to step-9 on the other nodes.
Step 11: Verify Node connectivity between all nodes:
[oracle@test1 ~]$ cluvfy comp nodecon -n all -verbose
Verifying node connectivity
Checking node connectivity…
Checking hosts config file…
Node Name Status Comment
———— ———————— ————————
test2 passed
test1 passed
Verification of the hosts config file successful
Interface information for node “test2″
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
—— ————— ————— ————— ————— —————– ——
eth0 192.168.1.107 192.168.1.0 0.0.0.0 192.168.1.1 00:0C:29:39:72:AD 1500
eth0 192.168.1.116 192.168.1.0 0.0.0.0 192.168.1.1 00:0C:29:39:72:AD 1500
eth1 172.16.0.11 172.16.0.0 0.0.0.0 192.168.1.1 00:0C:29:39:72:B7 1500
eth1 169.254.250.202 169.254.0.0 0.0.0.0 192.168.1.1 00:0C:29:39:72:B7 1500
Interface information for node “test1″
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
—— ————— ————— ————— ————— —————– ——
eth0 192.168.1.105 192.168.1.0 0.0.0.0 192.168.1.1 00:0C:29:F9:B9:1C 1500
eth0 192.168.1.109 192.168.1.0 0.0.0.0 192.168.1.1 00:0C:29:F9:B9:1C 1500
eth0 192.168.1.115 192.168.1.0 0.0.0.0 192.168.1.1 00:0C:29:F9:B9:1C 1500
eth1 172.16.0.10 172.16.0.0 0.0.0.0 192.168.1.1 00:0C:29:F9:B9:26 1500
eth1 169.254.41.177 169.254.0.0 0.0.0.0 192.168.1.1 00:0C:29:F9:B9:26 1500
Check: Node connectivity of subnet “192.168.1.0”
Source Destination Connected?
—————————— —————————— —————-
test2[192.168.1.107] test2[192.168.1.116] yes
test2[192.168.1.107] test1[192.168.1.105] yes
test2[192.168.1.107] test1[192.168.1.109] yes
test2[192.168.1.107] test1[192.168.1.115] yes
test2[192.168.1.116] test1[192.168.1.105] yes
test2[192.168.1.116] test1[192.168.1.109] yes
test2[192.168.1.116] test1[192.168.1.115] yes
test1[192.168.1.105] test1[192.168.1.109] yes
test1[192.168.1.105] test1[192.168.1.115] yes
test1[192.168.1.109] test1[192.168.1.115] yes
Result: Node connectivity passed for subnet “192.168.1.0” with node(s) test2,test1
Check: TCP connectivity of subnet “192.168.1.0”
Source Destination Connected?
—————————— —————————— —————-
test1:192.168.1.105 test2:192.168.1.107 passed
test1:192.168.1.105 test2:192.168.1.116 passed
test1:192.168.1.105 test1:192.168.1.109 passed
test1:192.168.1.105 test1:192.168.1.115 passed
Result: TCP connectivity check passed for subnet “192.168.1.0”
Check: Node connectivity of subnet “172.16.0.0”
Source Destination Connected?
—————————— —————————— —————-
test2[172.16.0.11] test1[172.16.0.10] yes
Result: Node connectivity passed for subnet “172.16.0.0” with node(s) test2,test1
Check: TCP connectivity of subnet “172.16.0.0”
Source Destination Connected?
—————————— —————————— —————-
test1:172.16.0.10 test2:172.16.0.11 passed
Result: TCP connectivity check passed for subnet “172.16.0.0”
Check: Node connectivity of subnet “169.254.0.0”
Source Destination Connected?
—————————— —————————— —————-
test2[169.254.250.202] test1[169.254.41.177] yes
Result: Node connectivity passed for subnet “169.254.0.0” with node(s) test2,test1
Check: TCP connectivity of subnet “169.254.0.0”
Source Destination Connected?
—————————— —————————— —————-
test1:169.254.41.177 test2:169.254.250.202 passed
Result: TCP connectivity check passed for subnet “169.254.0.0”
Interfaces found on subnet “192.168.1.0” that are likely candidates for VIP are:
test2 eth0:192.168.1.107 eth0:192.168.1.116
test1 eth0:192.168.1.105 eth0:192.168.1.109 eth0:192.168.1.115
Interfaces found on subnet “169.254.0.0” that are likely candidates for VIP are:
test2 eth1:169.254.250.202
test1 eth1:169.254.41.177
Interfaces found on subnet “172.16.0.0” that are likely candidates for a private interconnect are:
test2 eth1:172.16.0.11
test1 eth1:172.16.0.10
Result: Node connectivity check passed
Verification of node connectivity was successful.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28211342/viewspace-2135430/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC修改public, VIP, SCAN IPOracle
- rac 新增第二public ip 和 vip
- Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)Oracle
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- How to change the background color for PyCharmPyCharm
- rac vip failback issueAI
- 11gR2 RAC convert ONENODE
- 11gR2 OneNode Convert RAC
- 【RAC】Oracle rac 如何修改公網及vipOracle
- RAC的VIP切換測試
- 為11gR2 Grid Infrastructure增加新的public網路ASTStruct
- 11gR2 RAC新增節點步驟
- Oracle RAC 11gR2開啟歸檔Oracle
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- linux7 靜默安裝 11GR2 RACLinux
- ORACLE 11GR2 RAC的網路規劃解析Oracle
- How To Deal With Split Brain In Oracle 19c RacAIOracle
- RAC架構中public網路卡down後發生什麼和RAC如何自愈?架構
- How To Deal With Split Brain In Oracle 19c Rac-202203AIOracle
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- Oracle 11gR2 RAC 單網路卡轉雙網路卡繫結配置Oracle
- 【rac故障】root.sh報錯Unable to get VIP info for new node
- Oracle 11gR2 RAC 叢集服務啟動與關閉總結Oracle
- Check the existence of public synonyms Remove the public synonymsREM
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- sqlserver Change Data Capture&Change TrackingSQLServerAPT
- 一步一步搭建oracle 11gR2 rac+dg之環境準備(二)Oracle
- 一步一步搭建11gR2 rac+dg之配置單例項的DG(八)單例
- [LeetCode] Validate IP AddressLeetCode
- TestFlight Public Link
- public interface View介面和public interface ViewResolver介面介紹View
- JavaScript change 事件JavaScript事件
- Madagascar Projection ChangeProject
- Redo Byte Address (RBA)(轉)
- mysql bind_address如何配置多個地址 mysql bind-address選項MySql
- How to ssh
- 2.2.4.4 Grants to PUBLIC in a CDB
- public-image-mirror