Experiment on changing vip ip address _ 2 node in Oracle RAC

Source: Internet
Author: User

1. Host Name Planning:

-- Before modification:

# Public Network-(eth0)
192.168.10.11 rac1
192.168.10.12 rac2

# Private Interconnect-(eth1)
10.10.10.11 rac1priv
10.10.10.12 rac2priv

# Public Virtual IP (VIP) addresses-(eth0)
192.168.10.21 rac1vip
192.168.10.22 rac2vip

-- After modification:

# Public Network-(eth0)
192.168.110.11 rac1
192.168.110.12 rac2

# Private Interconnect-(eth1)
10.10.10.11 rac1priv
10.10.10.12 rac2priv

# Public Virtual IP (VIP) addresses-(eth0)
192.168.110.21 rac1vip
192.168.110.22 rac2vip

2. Stop CRS and other services, change the Host IP address and route, and restart the service.

3. Change the VIP address

Use oifcfg to change public/private ip addresses
View Current Use
Oifcfg getif
[Oracle @ rac1 ~] $ Oifcfg getif
Eth0 192.168.10.0 global public
Eth1 10.10.10.0 global cluster_interconnect

Delete current
Oifcfg delif-global eth0

Add again
> Oifcfg setif-global eth0/192.168.110.0: public
> Oifcfg setif-global eth1/10.10.10.0: cluster_interconnect

The retrieval status is as follows:
[Oracle @ rac1 ~] $ Oifcfg getif
Eth0 192.168.110.0 global public
Eth1 10.10.10.0 global cluster_interconnect

4. Update the vip configuration registered to OCR (root User)

Crs_register-update ora. rac1.vip-o I = eth0, ov = 192.168.110.21, on = 255.255.255.0
Crs_register-update ora. rac2.vip-o I = eth0, ov = 192.168.110.22, on = 255.255.255.0

Or use (root User)
[Root @ td1 ~] # Srvctl modify nodeapps-n td1-A 10.194.128.147/255.255.255.0/eth0
[Root @ td1 ~] # Srvctl modify nodeapps-n td2-A 10.194.128.148/255.255.255.0/eth0

If you use ocfs, modify the ocfs configuration file (/etc/ocfs/cluster. conf) to verify whether the modified file is available.

5. Modify the listener Configuration File.

6. Start and verify the resources of each node in the cluster.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.