Oracle Technologies Blog


How to Change VIP address in RAC

Posted by Srikrishna Murthy Annam on March 27, 2010

There may be situations where you may need to change the VIP in RAC. The VIP information is stored in OCR, and different components within the Oracle Clusterware HA framework depend on these VIPs.

1. Determine the interface used to support your VIP:

$ ifconfig -a

2. Stop all resources depending on the VIP:

$ srvctl stop instance -d TEST -i TEST1
$ srvctl stop asm -n rac1
# srvctl stop nodeapps -n rac1

3. Verify that the VIP is no longer running:

# ifconfig -a
# crs_stat

4. Change IP in /etc/hosts and DNS.
5. Modify your VIP address using srvctl:

srvctl modify nodeapps -n rac1 -o $ORACLE_HOME -A

6. Start nodeapps and all resources depending on it:

# srvctl start nodeapps -n rac1
$ srvctl start asm -n rac1
$ srvctl start instance -d TEST -i TEST1

7. Repeat from step 1 for the next node.

Remember to update listener.ora and tnsnames.ora. Changing the listener.ora and tnsnames.ora depends on how these files are configured. If these files uses IP addresses instead of hostnames , then you need to change these configuration files to change the VIP addresses. You can use netca to reconfigure these configuration files.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s