Modifying VIP Address, Subnet Mask, or Interface in Oracle Clusterware

Modifying VIP Address, Subnet Mask, or Interface in Oracle Clusterware

Learn how to change the Virtual IP (VIP) address, subnet mask, or network interface for clustered nodes in an Oracle environment. This step-by-step guide includes commands, explanations, and key points to ensure a smooth and successful configuration update.


Change the VIP address, subnetmask or interface

1srvctl stop nodeapps -n <node1>
2srvctl stop nodeapps -n <node2>
3srvctl modify nodeapps -n <node1> -A <ip_address>/<net mask>/<interface>
4srvctl modify nodeapps -n <node2> -A <ip_address>/<net mask>/<interface>
5srvctl start nodeapps -n <node1>
6srvctl start nodeapps -n <node2>

Sample Oracle Output:

1
2no rows selected
3SQL>

Description of the Oracle Database SQL code:

Purpose:

These Oracle Database commands aim to modify and activate the Virtual IP (VIP) address, subnet mask, or network interface for two clustered nodes (node1 and node2). This action facilitates service availability and redundancy within the Oracle Clusterware environment.

Breakdown and Key Points:

  1. srvctl stop nodeapps -n and srvctl stop nodeapps -n :

    • Purpose: Gracefully halt the Node Application Services on each node. This is crucial to prevent data corruption or inconsistencies during configuration changes.
    • Breakdown:
      • srvctl: Service Control utility for managing Clusterware.
      • stop: The operation to be performed.
      • nodeapps: Indicates Node Application Services.
      • -n <node1> and -n <node2>: Specify the names of the nodes where the services should be stopped.
    • Key Points:
      • Ensure no active connections or transactions are in progress before stopping the services.
      • Stopping both nodes simultaneously is typically advisable to minimize downtime.
  2. srvctl modify nodeapps -n -A <ip_address>// and srvctl modify nodeapps -n -A <ip_address>//:

    • Purpose: Reassign the VIP address, subnet mask, and network interface for each node.
    • Breakdown:
      • srvctl modify: The operation to be performed, modifying the configuration.
      • nodeapps: Indicates Node Application Services.
      • -n <node1> and -n <node2>: Specify the nodes to be modified.
      • -A <ip_address>/<net mask>/<interface>: Provides the new configuration:
        • <ip_address>: The new VIP address for the node.
        • <net mask>: The subnet mask defining the network segment the VIP belongs to.
        • <interface>: The name of the network interface to which the VIP is assigned.
    • Key Points:
      • Double-check the accuracy of the new configuration to avoid network connectivity issues.
      • Validate if the new interface and subnet mask are compatible with the cluster's network setup.
      • Consider using dedicated network interfaces for VIPs to enhance availability and isolation.
  3. srvctl start nodeapps -n and srvctl start nodeapps -n :

    • Purpose: Restart the Node Application Services on each node with the updated configuration.
    • Breakdown:
      • srvctl start: The operation to be performed, starting the services.
      • nodeapps: Indicates Node Application Services.
      • -n <node1> and -n <node2>: Specify the nodes where the services should be started.
    • Key Points:
      • Monitor cluster logs and service availability after starting the services to ensure successful migration.
      • If issues arise, consider reverting the changes and troubleshooting further.

Insights and Explanations:

  • Carefully planning and executing these steps are essential to maintain seamless service availability and avoid disruptive downtime in your Oracle Clusterware environment.
  • Meticulously verifying the new configuration, ensuring compatibility within the network setup, and validating successful service resumption are crucial for a smooth transition.
  • Leveraging dedicated network interfaces for VIPs can enhance availability and isolation within the cluster.
  • Consider performing the modifications during off-peak hours to minimize potential business impact.
  • Always adhere to best practices and Oracle documentation for cluster configuration changes.

Remember that these commands are tailored to a specific cluster setup and network configuration. It's imperative to obtain explicit approval and guidance from your database administrators or appropriate IT personnel before proceeding with any modifications.

Posts in this Series