Linux + Oracle10gRAC change VIP

Source: Internet
Author: User
Change the vip address of Oracle10gRAC1 from 192.168.2.11 to 192.168.2.13, And the vip address of rac2 from 192.168.2.12 to 192.168.2.14.

Change the vip address of Oracle 10g RAC 1 from 192.168.2.11 to 192.168.2.13, And the vip address of rac2 from 192.168.2.12 to 192.168.2.14.

Change the vip address of Oracle 10g RAC 1 from 192.168.2.11 to 192.168.2.13, And the vip address of rac2 from 192.168.2.12 to 192.168.2.14.

I. Overview of software and hardware Environments

Install two redhet Enterprise-R4-U4 systems rac1 and rac2 on the Virtual Machine VMware GSX Server, virtual shared storage, built on this oracle10g RAC environment.

1. rac1 two NICs: eth0: 192.168.2.111, eth1: 10.10.10.11

2. rac2 two NICs: eth0: 192.168.2.112, eth1: 10.10.10.12

/Etc/hosts file:

127.0.0.1

Localhost

192.168.2.111

Rac1.mycorpdomain.com

Rac1

192.168.2.11

Rac1-vip.mycorpdomain.com

Rac1-vip

10.10.10.11

Rac1-priv.mycorpdomain.com

Rac1-priv

192.168.2.112

Rac2.mycorpdomain.com

Rac2

192.168.2.12

Rac2-vip.mycorpdomain.com

Rac2-vip

10.10.10.12

Rac2-priv.mycorpdomain.com

Rac2-priv

3. Change VIP1 and confirm the vip configurations of the current rac1 and rac2.

#./Srvctl config nodeapps-n rac1-

VIP exists.:/rac1-vip.mycorpdomain.com/192.168.2.11/255.255.255.0/eth0

#./Srvctl config nodeapps-n rac2-

VIP exists.:/rac2-vip.mycorpdomain.com/192.168.2.12/255.255.255.0/eth0

2. Stop resources dependent on vip on rac1

# Cd/u01/app/oracle/product/10.2.0/crs_1/bin

Stop a database instance

#./Srvctl stop instance-d devdb-I ora. devdb. devd1.inst

Stop Database

#./Srvctl stop database-d devdb

Stop an ASM instance

#./Srvctl stop asm-n rac1

Stop vip, gsd, listener, ons

#./Srvctl stop nodeapps-n rac1

3. Stop resources dependent on vip on rac2

# Cd/u01/app/oracle/product/10.2.0/crs_1/bin

Stop a database instance

#./Srvctl stop instance-d devdb-I ora. devdb. devd2.inst

Stop Database

#./Srvctl stop database-d devdb

Stop an ASM instance

#./Srvctl stop asm-n rac2

#./Srvctl stop nodeapps-n rac2

4. Change the hosts file

127.0.0.1

Localhost

192.168.2.111

Rac1.mycorpdomain.com

Rac1

192.168.2.13

Rac1-vip.mycorpdomain.com

Rac1-vip

10.10.10.11

Rac1-priv.mycorpdomain.com

Rac1-priv

192.168.2.112

Rac2.mycorpdomain.com

Rac2

192.168.2.14

Rac2-vip.mycorpdomain.com

Rac2-vip

10.10.10.12

Rac2-priv.mycorpdomain.com

Rac2-priv

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.