In this Document
| Purpose |
| Scope |
| Details |
| Case I. Changing public hostname |
| Case II. Changing public IP or VIP only without changing interface, subnet or netmask or changing MAC address only without changing anything else |
| Case III. Changing public network interface, subnet or netmask |
| Case IV. Changing VIPs associated with public network change |
| Planning for VIP changes |
| Gathering Current VIP Configuration |
| Stopping Resources |
| Modifying VIP and Its Associated Attributes |
| Restarting Resources |
| Others |
| Case V. Change SCAN VIP associated with public network change |
| References |
APPLIES TO:
Oracle Database - Enterprise Edition - Version 10.1.0.2 to 12.2.0.1 [Release 10.1 to 12.2] Oracle Database Cloud Schema Service - Version N/A and later Oracle Database Exadata Express Cloud Service - Version N/A and later Oracle Database Exadata Cloud Machine - Version N/A and later Oracle Cloud Infrastructure - Database Service - Version N/A and later Information in this document applies to any platform.
PURPOSE
The purpose of this note is to illustrate how to change a public hostname, public IP, a Virtual IP Address (VIP), VIP hostname or other VIP attributes in an Oracle Clusterware/Grid Infrastructure environment.
SCOPE
Oracle Database 10g and 11g use VIPs (Virtual IP) in clustered environments for clients to connect to the database. These VIPs are static IP addresses associated with (virtual) hostnames and resolved through DNS (except when using 11gR2 GNS). During the installation of the Oracle Clusterware users are prompted to enter a Virtual IP and Virtual hostname for each of the node in the cluster. These are stored within the OCR (Oracle Cluster Registry) and different components within the HA framework depend on these VIPs. If for some reason the need arises to change either the VIP, the VIP hostname, or the subnet, netmask etc, this procedure should be followed.
DETAILS
Case I. Changing public hostname
Public hostname is recorded in OCR, it is entered during installation phase. It can not be modified after the installation. The only way to modify public hostname is by deleting the node, then adding the node back with a new hostname, or reinstalling the clusterware or following the clone procedure to reconfigure the clusterware.
Case II. Changing public IP or VIP only without changing interface, subnet or netmask or changing MAC address only without changing anything else
If the change is only public IP or VIP address and the new ones are still in the same subnet, same interface, or if the change is only for public IP MAC address, IP/interface/subnet/netmask all remain the same, nothing needs to be done at clusterware layer, all changes need to be done at OS layer to reflect the change.
1. Shutdown Oracle Clusterware stack 2. Modify the IP address at network layer, DNS and /etc/hosts file to reflect the change or modify the MAC address at network layer 3. Restart Oracle Clusterware stack
Above change can be done in rolling fashion, eg: one node at a time.
Case III. Changing public network interface, subnet or netmask
If the change involves different subnet(netmask) or interface, delete the existing interface information from OCR and add it back with the correct information is required. In the example here, the subnet is changed from 10.2.156.0 to 10.2.166.0 via two separate commands - first a 'delif' followed by a 'setif':
Then make the change at OS layer. There is no requirement to restart Oracle clusterware unless OS change requires a node reboot. This can be done in rolling fashion.
Once public network is changed, its associated VIP and SCAN VIP are also required to change, refer to CASE IV and CASE V.
Case IV. Changing VIPs associated with public network change
Planning for VIP changes
In general, a complete outage is only required for pre-10.2.0.3 release. From 10.2.0.3 onwards, the ASM/database instance dependency on the VIP resource is removed, so the VIP could be modified without having to take down the ASM/database instance, only client connections to the database will be affected when VIP is down. If the modification is a node specific, then only connection to that node will be affected during the time of change.
Please follow Case III to ensure public network changes are made first. If there is a node reboot or Clusterware restart after the OS network change, vip will not start, please skip to step "Modifying VIP and its Associated Attributes".
Gathering Current VIP Configuration
1. Gather the existing setup for 10g and 11gR1, as Oracle Clusterware owner:
for 11gR2, as Grid Infrastructure owner:
2. Verify VIP status
Stopping Resources
3. Stop the nodeapps resources (and all dependent resources ASM/DB only if required): 10g and 11gR1, as Oracle Clusterware owner:
11gR2, as Grid Infrastructure owner:
4. Verify VIP is now OFFLINE and the interface is no longer bound to the public network interface
Modifying VIP and Its Associated Attributes
5. Determine the new VIP IP/subnet/netmask or VIP hostname, make the network change on OS first, ensure the new VIP is registered in DNS or modified in /etc/hosts (for Unix/Linux) and \WINDOWS\System32\drivers\etc\hosts file (for Windows). If the network interface is changed, ensure the new interface is available on the server before proceeding with the modification.
6. Modify the VIP resource, as root user:
* A special case for 11gR2 modifying the VIP hostname only without changing the IP address.
7. Verify the change
Restarting Resources
8. Start the nodeapps and the other resources 10g and 11gR1, as Oracle Clusterware owner:
11gR2, as Grid Infrastructure owner:
Note: if the network attributes are changed, i.e. netmask changed, restart the nodeapps
9. Verify the new VIP is ONLINE and bind to the public network interface
10. Repeat the same steps for the rest nodes in the cluster only if the similar change is required.
Others
11. Modify listener.ora, tnsnames.ora and LOCAL_LISTENER/REMOTE_LISTENER parameter to reflect the VIP change if necessary.
Case V. Change SCAN VIP associated with public network change
With Grid Infrastructure 11gR2, SCAN and SCAN VIP are introduced for client connections. To modify the SCAN VIP, please refer to
Note 952903.1 How to update the IP address of the SCAN VIP resources (ora.scan<n>.vip) Note 972500.1 How to Modify SCAN Setting or SCAN Listener Port after Installation
REFERENCES
NOTE:952903.1 - How to Update the IP Address of the SCAN VIP Resources (ora.scan{n}.vip) NOTE:283684.1 - How to Modify Private Network Information in Oracle Clusterware
编辑推荐:
- 【RAC】Oracle rac 如何修改公网及vip03-03
- 【RAC】Oracle RAC如何修改心跳网络03-03
- [20210729]heapdump UGA.txt03-03
- [20210803]删除user$的恢复准备.txt03-03
- 11GR2 RAC 搭建(一)03-03
- 11GR2 RAC 搭建(二)03-03
- 11GR2 RAC 搭建(三)03-03
- 特斯拉重回卖车主线03-03
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- 特斯拉重回卖车主线
特斯拉重回卖车主线
26-03-03 - 关于obsolete child cursor问题
关于obsolete child cursor问题
26-03-03 - SQL的reload以及Invalidations
SQL的reload以及Invalidations
26-03-03 - Oracle学习、进阶资料合集(含教程、笔记、题库下载与学习方法分享)
Oracle学习、进阶资料合集(含教程、笔记、题库下载与学习方法分享)
26-03-03 - Cursor Cache Hit Ratio超过100%
Cursor Cache Hit Ratio超过100%
26-03-03 - 卫生系统中招勒索病毒的应对措施和紧急恢复办法
卫生系统中招勒索病毒的应对措施和紧急恢复办法
26-03-03 - 影响抖音视频上热门最重要的因素是什么?有什么小技巧?
影响抖音视频上热门最重要的因素是什么?有什么小技巧?
26-03-03 - 面板给不了京东方新故事
面板给不了京东方新故事
26-03-03 - 不用投抖加,免费也能上热门推荐?3个技巧悄悄告诉你
不用投抖加,免费也能上热门推荐?3个技巧悄悄告诉你
26-03-03 - 阿里、微盟、碧桂园,抢占智慧餐饮高地
阿里、微盟、碧桂园,抢占智慧餐饮高地
26-03-03
