11 Adding and Deleting Nodes and Instances
You can extend an existing Oracle Real Application Clusters (Oracle RAC) home to other nodes and instances in the cluster, and delete Oracle RAC instances and remove nodes from the cluster.
You can add nodes when configuring a new Oracle RAC cluster, or you can remove nodes to resize an existing cluster.
Note:
When adding or deleting nodes, it is very important that you perform each step in the order shown.
- Preparing the New Node
Before a node can be added to the cluster, you must perform the same preinstallation steps on the new node as you did for all the existing nodes in the cluster. - Verifying the New Node Meets the Prerequisites for Installation
When adding a node to an existing cluster, the new node must match the configuration of the other nodes in the cluster. - Extending the Oracle Grid Infrastructure Home to the New Node
After the new node has been configured to support Oracle Clusterware, you use Oracle Universal Installer (OUI) to add a Grid home to the node being added to your cluster. - Extending the Oracle RAC Home Directory
Now that you have extended the Grid home to the new node, you must extend the Oracle home onracnode1
toracnode3
. - Adding the New Node to the Cluster using Enterprise Manager
The newly added node is automatically detected by Oracle Enterprise Manager. - Creating an Instance on the New Node
You can add an instance to the cluster using either the Instance Management option of Database Configuration Assistant (DBCA) or using Enterprise Manager. - Deleting an Instance From the Cluster Database
You can delete an instance from the cluster using either the Instance Management option of Database Configuration Assistant (DBCA) or using Enterprise Manager. - Removing a Node From the Cluster
Removing a node from the cluster can be as easy as simply shutting down the server.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
11.1 Preparing the New Node
Before a node can be added to the cluster, you must perform the same preinstallation steps on the new node as you did for all the existing nodes in the cluster.
This includes the following tasks:
-
Checking hardware compatibility
-
Configuring the operating system
-
Configuring SSH connectivity between the new node and the other cluster members
-
Configuring access to shared storage
-
Creating groups, users, and directories
See Also:
Parent topic: Adding and Deleting Nodes and Instances
11.2 Verifying the New Node Meets the Prerequisites for Installation
When adding a node to an existing cluster, the new node must match the configuration of the other nodes in the cluster.
The new nodes must run the same operating system and version of the operating system as the other nodes. The new computer must also use the same chip architecture (32-bit or 64-bit) as the other nodes. However, you can have computers of different speeds and sizes in the same cluster.
After you have configured the new nodes, use cluvfy
to verify that all the requirements for installation have been met. To verify the new node meets the hardware requirement, run the following command on an existing node (for example, either racnode1
or racnode2
) from the Grid_home/bin
directory:
cluvfy stage -pre crsinst -n racnode3 -verbose
See Also:
Parent topic: Adding and Deleting Nodes and Instances
11.3 Extending the Oracle Grid Infrastructure Home to the New Node
After the new node has been configured to support Oracle Clusterware, you use Oracle Universal Installer (OUI) to add a Grid home to the node being added to your cluster.
This task assumes that you are adding a node named racnode3
and that you have successfully installed Oracle Clusterware on racnode1
in a nonshared home, where Grid_home represents the successfully installed Oracle Clusterware home.
To extend the Oracle Grid Infrastructure for a cluster home to include the new node:
You should now have Oracle Clusterware running on the new node. To verify the installation of Oracle Clusterware on the new node, you can run the following command on the newly configured node, racnode3
:
$ cd /u01/app/12.2.0/grid
/bin
$ ./cluvfy stage -post nodeadd -n racnode3 -verbose
Note:
Avoid changing host names after you complete the Oracle Clusterware installation, including adding or deleting domain qualifications. Nodes with changed host names must be deleted from the cluster and added back with the new name.
See Also:
-
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
-
Oracle Clusterware Administration and Deployment Guide for more information on using response files
Parent topic: Adding and Deleting Nodes and Instances
11.4 Extending the Oracle RAC Home Directory
Now that you have extended the Grid home to the new node, you must extend the Oracle home on racnode1
to racnode3
.
The procedure for adding an Oracle home to the new node is very similar to the procedure you just completed for extending the Grid home to the new node.
The following steps assume that you have completed the tasks described in the previous sections, "Preparing the New Node" and "Extending the Oracle Grid Infrastructure Home to the New Node", and that racnode3
is a member node of the cluster to which racnode1
belongs.
To extend the Oracle RAC installation to include the new node:
After completing these steps, you should have an installed Oracle home on the new node.
See Also:
-
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Adding and Deleting Nodes and Instances
11.5 Adding the New Node to the Cluster using Enterprise Manager
The newly added node is automatically detected by Oracle Enterprise Manager.
If you followed the steps described in "Extending the Oracle RAC Home Directory", then the cluster node is added to the cluster by the addNode.sh
script. After the software is started on the new node, it is detected by Oracle Enterprise Manager. If an Oracle Enterprise Manager agent was not installed on the new node, then an alert is issued for that host, with the message "Incomplete configuration."
See Also:
-
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Adding and Deleting Nodes and Instances
11.6 Creating an Instance on the New Node
You can add an instance to the cluster using either the Instance Management option of Database Configuration Assistant (DBCA) or using Enterprise Manager.
Before using either of these options you must first configure the new node to be a part of the cluster and install the software on the new node as described in the previous sections.
Note:
The steps described in this section require a license for the Enterprise Manager Provisioning Management pack. Refer to the Oracle Database Licensing Information for information about the availability of these features on your system.
There are two methods of adding an instance to the new node:
- Adding a New Instance for a Policy-Managed Database
To add an instance to a policy-managed database, you simply increase the cardinality of the server pool for the database. - Adding a New Instance for an Administrator-Managed Database
When adding an instance to an administrator-managed database, you must specify the name of the database instance and which node it should run on.
See Also:
Parent topic: Adding and Deleting Nodes and Instances
11.6.1 Adding a New Instance for a Policy-Managed Database
To add an instance to a policy-managed database, you simply increase the cardinality of the server pool for the database.
The database instance and Oracle ASM instance on the new node are created and configured automatically when a node is added to the server pool.
To add an instance to a policy-managed database using Enterprise Manager:
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Creating an Instance on the New Node
11.6.2 Adding a New Instance for an Administrator-Managed Database
When adding an instance to an administrator-managed database, you must specify the name of the database instance and which node it should run on.
To add an instance to an administrator-managed database using Enterprise Manager:
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Creating an Instance on the New Node
11.7 Deleting an Instance From the Cluster Database
You can delete an instance from the cluster using either the Instance Management option of Database Configuration Assistant (DBCA) or using Enterprise Manager.
Sometimes, it might be necessary to remove a database instance from your cluster database. For example, to retire or repurpose a server, you first remove the database instance running on that server.
Note:
The steps described in this section require a license for the Enterprise Manager Provisioning Management pack. Refer to the Oracle Database Licensing Information for information about the availability of these features on your system.
If you choose to use DBCA to delete an instance, then start the DBCA utility from a node that will remain part of the cluster.
When you delete an instance from a clustered database, there are two methods:
- Deleting an Instance From a Policy-Managed Database
To delete an instance from a policy-managed databases, you simply decrease the cardinality of the server pool for the database. - Deleting an Instance From an Administrator-Managed Database
To remove an instance from an administrator-managed database, you must specify the name of the database instance to delete and which node the instance is running on.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about removing Oracle RAC from a cluster node
Parent topic: Adding and Deleting Nodes and Instances
11.7.1 Deleting an Instance From a Policy-Managed Database
To delete an instance from a policy-managed databases, you simply decrease the cardinality of the server pool for the database.
The database instance and Oracle ASM instance on the deallocated node are removed from the cluster and the node is either reassigned to another server pool or placed in the Free pool.
To delete a policy-managed database instance using Enterprise Manager:
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Deleting an Instance From the Cluster Database
11.7.2 Deleting an Instance From an Administrator-Managed Database
To remove an instance from an administrator-managed database, you must specify the name of the database instance to delete and which node the instance is running on.
To delete an administrator-managed database instance using Enterprise Manager:
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Deleting an Instance From the Cluster Database
11.8 Removing a Node From the Cluster
Removing a node from the cluster can be as easy as simply shutting down the server.
If the node was not pinned and does not host any Oracle databases using Oracle Database 11g release 1 or earlier, then the node is automatically removed from the cluster when it is shut down. If the node was pinned or if it hosts a database instance from earlier releases, then explicit deletion is needed.
To repurpose this server, you can restart the node with a different profile in place, or you can use other software to put a new software image on the server.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for more information about adding and removing nodes from your cluster database
Parent topic: Adding and Deleting Nodes and Instances