Oracle10gRACASM IP address Modification

Source: Internet
Author: User
I used Oracle10.2.0.1RAC (not Using asm) with a full set of raw disks (including crs and voting disks and database files). I wrote the title of asm and I knew many comrades used it.

Oracle 10.2.0.1RAC (not Using asm) with a full set of raw (including crs and voting disks and database files) (I did not use asm, and I wrote the title of asm to know that many comrades used it. I

Oracle 10.2.0.1RAC (not Using asm) with a full set of raw disks (including crs and voting disks and database files) (titles written in asm are used by many comrades, I can modify the ASM method here)

To test my software, we need two sets of the same rac during the test. I used my laziness to continue cloning and modified the cloned IP address, this is the process of modifying the IP address below.

10 you forgot to write a document when setting up Grac raw.

I. IP planning

After Public-ip (eth0) is modified

192.168.0.171-> 192.168.0.181

192.168.0.172-> 192.168.0.182

After modifying Private-ip (eth1)

7.1.1.1-> 8.1.1.1

7.1.1.2-> 8.1.1.2

After Virtual-ip (eth0) is modified

192.168.0.173-> 192.168.0.183

192.168.0.174-> 192.168.0.184



Ii. Modify publicip and vip

First, disable crs (both nodes must be executed)

[Root @ raw01 ~] #/Etc/init. d/init. crs stop

[Root @ raw02 ~] #/Etc/init. d/init. crs stop



Modify public-IP (eth0 IP)

192.168.0.171-> 192.168.0.181

192.168.0.172-> 192.168.0.182

Restart Nic service network restart

The corresponding entries of/etc/hosts are also changed.

Change 192.168.0.171 raw01 to 192.168.0.181 raw01.

Change 192.168.0.172 raw02 to 192.168.0.182 raw02

192.168.0.173 raw01-vip changed to 192.168.0.183 raw01-vip

192.168.0.174 raw02-vip changed to 192.168.0.184 raw02-vip

Note that the private ip address should be modified later (after the rac configuration is modified)



Modify settings in rac

First, enable crs, and disable databases, asm, and other resources.

[Root @ raw01 bin] #/etc/init. d/init. crs start

Then you need to (go to the bin of the cluster root directory)

[Root @ raw01 bin]./srvctl stop database-d rawdb

[Root @ raw01 bin]./srvctl stop asm-n raw01

[Root @ raw01 bin]./srvctl stop asm-n raw02

[Root @ raw01 bin]./srvctl stop nodeapps-n raw01

[Root @ raw01 bin]./srvctl stop nodeapps-n raw02

Then modify the ip address settings in rac.

[Root @ raw01 bin] #./oifcfg getif ---- View

Eth0 192.168.0.0 global public

Eth1 8.1.1.0 global cluster_interconnect

The public CIDR block is not changed here. If it is changed, for example, to 192.168.1.183 (the CIDR block is also changed ),

[Root @ raw01 bin] #./oifcfg setif-global eth0/192.168.1.0: public --- New CIDR Block

[Root @ raw01 bin] #./oifcfg delif-global eth0/192.168.0.0: public --- delete old network segments

Modify private (correct, privateip is to modify the settings in rac before modifying the actual IP)

[Root @ raw01 bin] #./oifcfg setif-global eth1/8.1.1.0: cluster_interconnect --- New Network Segment

[Root @ raw01 bin] #./oifcfg delif-global eth1/7.1.1.0: cluster_interconnect --- delete old network segments

Modify Vip address

[Root @ raw01 bin] #./srvctl modify nodeapps-n raw01-A 192.168.0.183/255.255.255.0/eth0
[Root @ raw01 bin] #./srvctl modify nodeapps-n raw02-A 192.168.0.184/255.255.255.0/eth0


3. Modify privateip

Modify private-IP (eth1 IP)

7.1.1.1-> 8.1.1.1

7.1.1.2-> 8.1.1.2

The corresponding entries of/etc/hosts are also changed.

7.1.1.1 raw01-priv changed to 8.1.1.1 raw01-priv

7.1.1.2 raw02-priv changed to 8.1.1.2 raw02-priv

4. Restart the server

5. Check the status later.

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.