Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How ORACLE 11G RAC modifies IP

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article is about how ORACLE 11G RAC modifies IP. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Original IP:

# Public IP

192.168.42.201 rac1

192.168.42.202 rac2

# Private IP

20.20.20.201 rac1-priv

20.20.20.202 rac2-priv

# Virtual IP

192.168.42.203 rac1-vip

192.168.42.204 rac2-vip

# Scan IP

192.168.42.205 rac-scan

Modified IP:

# Public IP

192.168.43.101 rac1

192.168.43.102 rac2

# Private IP

10.10.10.101 rac1-priv

10.10.10.102 rac2-priv

# Virtual IP

192.168.43.103 rac1-vip

192.168.43.104 rac2-vip

# Scan IP

192.168.43.105 rac-scan

one。 Modify Public IP

1. View cluster IP information (grid)

Oifcfg getif

two。 Delete the original public IP (grid)

Oifcfg delif-global eth0/192.168.42.0

3. Add a new public IP (grid)

Oifcfg setif-global eth0/192.168.43.0:public

4. View cluster IP information (grid)

Oifcfg getif

5. Modify hosts file (root)

Vi / etc/hosts

# Public IP

192.168.43.101 rac1

192.168.43.102 rac2

two。 Modify Virtual IP

1. Stop Node 1 instance (grid)

Srvctl stop instance-d rac-n rac1

two。 Stop Node 1VIP (grid)

Srvctl stop vip-n rac1-f

3. View vip configuration (grid)

Srvctl config nodeapps-a

4. Modify hosts file (root)

Vi / etc/hosts

# Virtual IP

192.168.43.103 rac1-vip

192.168.43.104 rac2-vip

5. Modify vip configuration (root)

/ u01/app/11.2.0.4/grid/bin/srvctl modify nodeapps-n rac1-A 192.168.43.103/255.255.255.0/eth0

6. Start (grid)

Srvctl start vip-n rac1

Srvctl start listener-n rac1

Srvctl start instance-d rac-n rac1

three。 Modify Scan IP

1. Stop the scan service (grid)

Srvctl stop scan_listener

Srvctl stop scan

two。 Modify hosts file (root)

Vi / etc/hosts

# Scan IP

192.168.43.105 rac-scan

3. Modify scan configuration (root)

Srvctl modify scan-n scanip

4. Modify scan listener configuration (grid)

Srvctl modify scan_listener-u

5. Start the service (grid)

Srvctl start scan_listener

6. Confirm whether it is valid (grid)

Srvctl config scan

four。 Modify Private IP

1. Backup profile.xml

Cd $ORACLE_HOME/gpnp/rac1/profiles/peer/

Cp profile.xml profile.xml.bak

two。 View cluster IP information (grid)

Oifcfg getif

3. Add a new private ip (grid)

Oifcfg setif-global eth2/10.10.10.0:cluster_interconnect

4. View cluster IP information (grid)

Oifcfg getif

5. Shut down and disable clustering for all nodes (root)

/ u01/app/11.2.0.4/grid/bin/crsctl stop crs

/ u01/app/11.2.0.4/grid/bin/crsctl disable crs

6. Modify hosts file (root)

Vi / etc/hosts

# Private IP

10.10.10.101 rac1-priv

10.10.10.102 rac2-priv

7. Open and start the cluster of all nodes (root)

/ u01/app/11.2.0.4/grid/bin/crsctl enable crs

/ u01/app/11.2.0.4/grid/bin/crsctl start crs

8. Delete the original private ip (grid)

Oifcfg delif-global eth2/20.20.20.0

9. View cluster IP information (grid)

Oifcfg getif

Thank you for reading! This is the end of the article on "how to modify IP in ORACLE 11G RAC". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report