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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to modify Public ip and vip In 11gr2 Rac
- 轉載一個step by step change public-ip and vip on RAC
- How to change VIP and VIP/Hostname in 10g
- How to update the IP address of the SCAN VIP
- Oracle RAC修改public, VIP, SCAN IPOracle
- How to Change IP and VIP in Oracle Clusterware(一)-概念篇Oracle
- rac 新增第二public ip 和 vip
- Oracle RAC修改public,private,vip scan IPOracle
- How to Change IP and VIP in Oracle Clusterware(二)-實操篇Oracle
- How to Change Interconnect/Public Interface IP or Subnet in Oracle ClusterwareOracle
- Metlink:How to Modify Public Network Information including VIP in CrsORM
- rac 改public 及vip IP---備份01
- 詭異的事情,RAC,public ip通,vip不通
- Oracle RAC中的Public IP, VIP和Internal IP,SCANOracle
- Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)Oracle
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- Oracle RAC環境下vip/public/private IP的區別Oracle
- RAC中的各種IP-PUBLIC-VIP-Private-SCAN IP
- How to create and relocate an 11gr2 RAC DATABASE SERVICEDatabase
- oracle10g RAC更改主機public地址及vip地址Oracle
- RAC_TNS故障轉移負載均衡、SCAN IP、VIP、PUBLIC IP負載
- Public Private VIP的區別
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- oracle 10g rac modify public ip,private ip,vip實驗步驟Oracle 10g
- How to change the background color for PyCharmPyCharm
- How To Change The Asm Rebalancing PowerASM
- How to Change RabbitMQ Queue Parameters in Production?MQ
- How To Change UNIX Process Resource LimitsMIT
- How to update SCAN VIP (ora.scan.vip) [ID 952903.1]
- How to Change hostname in Oracle Linux 7OracleLinux
- How to change the implementation (detour) of an externally declared functionFunction
- rac vip failback issueAI
- RAC如何修改VIP
- win rac public ip 修改
- oracle 11gR2 如何修改public ipOracle
- oracle 11gR2 如何修改vipOracle
- vip/public ip斷網,導致instance crash
- 11gr2 rac改IP系列之二:修改VIP為同網段其它IP