Changing public IP or VIP only without changing interface, subnet or netmask or changing MAC address only without changing anything else
If the change is only public IP or VIP address and the new ones are still in the same subnet, same interface, or if the change is only for public IP MAC address, IP/interface/subnet/netmask all remain the same, nothing needs to be done at clusterware layer, all changes need to be done at OS layer to reflect the change. For this;
- Shutdown Oracle Clusterware stack
- Modify the IP address at network layer, DNS and /etc/hosts file to reflect the change or modify the MAC address at network layer
- Restart Oracle Clusterware stack
Above change can be done in rolling method, one node at a time.
Stop database and vip resources.
srvctl stop listener -n orcnode1
srvctl stop database -d orcl
srvctl stop vip -n orcnode1 -f
Change IP address at OS layer. Do this step on both nodes.
service network restart
Start database and vip resources.
srvctl start vip -n orcnode1
srvctl start listener -n orcnode1
srvctl start database -d orcl