This section explains how to add nodes to existing Oracle RAC environments by cloning a local (non-shared) Oracle home in Linux and UNIX system environments.
Complete the following steps to clone Oracle Database with Oracle RAC software:
Follow the steps in the "Preparing to Clone Oracle RAC" to create a copy of an Oracle home that you then use to perform the cloning procedure on one or more nodes.
Use the tar
utility to create an archive of the Oracle home on the existing node and copy it to the new node. If the ___location of the Oracle home on the source node is $ORACLE_HOME
, then you must use this same directory as the destination ___location on the new node.
On the new node, configure the environment variables ORACLE_HOME
and ORACLE_BASE
. Then go to the $ORACLE_HOME/clone/bin
directory and run the following command where existing_node
is the name of the node that you are cloning, new_node2
and new_node3
are the names of the new nodes, and Oracle_home_name
is the name of the Oracle home:
perl clone.pl -O 'CLUSTER_NODES={existing_node,new_node2,new_node3}' -O LOCAL_NODE=new_node2 ORACLE_BASE=$ORACLE_BASE ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Oracle_home_name -O -noConfig
Run the following command to run the configuration assistants to configure Oracle RAC on the new nodes:
$ORACLE_HOME/cfgtoollogs/configToolFailedCommands
This script contains all commands that failed, were skipped, or were canceled during the installation. You can use this script to run the database configuration assistants outside of Oracle Universal Installer. Note that before you run the script you should check the script to see if any passwords within it need to be updated.
Run the following command on the existing node from the $ORACLE_HOME/oui/bin
directory to update the inventory in the Oracle Database home with Oracle RAC, specified by Oracle_home
, where existing_node
is the name of the original node that you are cloning and new_node2
and new_node3
are the names of the new nodes:
./runInstaller -updateNodeList ORACLE_HOME=$ORACLE_HOME -O "CLUSTER_ NODES={existing_node,new_node2,new_node3}"
On each new node, go to the $ORACLE_HOME
directory and run the following command:
./root.sh
From the node that you cloned, run Database Configuration Assistant (DBCA) to add Oracle RAC database instances on the new nodes.