This section explains how to add nodes to existing Oracle RAC environments by cloning a shared or local Oracle home in Windows system environments.
Complete the following steps to clone Oracle Database with Oracle RAC software:
If you have a local Oracle home, then use the ZIP utility to create an archive of the Oracle Database home with Oracle RAC on the existing node and copy it to the new node. Otherwise, proceed to the next step.
Extract the Oracle Database with Oracle RAC home files from the ZIP file on the new node in the same directory in which the Oracle Database home with Oracle RAC resided on the existing node. For example, assume that the ___location of the destination Oracle RAC home on the new node is %ORACLE_HOME%
.
On the new node, go to the %ORACLE_HOME%\clone\bin
directory and run the following command where Oracle_Home
is the Oracle Database home, Oracle_Home_Name
is the name of the Oracle Database home, Oracle_Base
is the Oracle base directory, user_name
is the name of the Oracle home user (a non-Administrator user) for the Oracle home being cloned, existing_node
is the name of the existing node, and new_node
is the name of the new node:
perl clone.pl ORACLE_HOME=Oracle_Home ORACLE_BASE=Oracle_Base ORACLE_HOME_NAME=Oracle_Home_Name ORACLE_HOME_USER=user_name -O 'CLUSTER_NODES={existing_node,new_node}' -O LOCAL_NODE=new_node
If you have a shared Oracle Database home with Oracle RAC, then append the -cfs
option to the command to indicate that the Oracle home is shared, as shown in the following example:
perl clone.pl ORACLE_HOME=Oracle_Home ORACLE_BASE=Oracle_Base ORACLE_HOME_NAME=Oracle_Home_Name ORACLE_HOME_USER=user_name -O 'CLUSTER_NODES={existing_node,new_node}' -O LOCAL_NODE=new_node [-cfs -noConfig]
Note:
The ORACLE_HOME_USER
is required only if you are cloning a secured Oracle home.
Use the -cfs
and -noConfig
options for a shared Oracle Database home with Oracle RAC.
The value for the ORACLE_HOME_NAME
parameter must be that of the node you are cloning. To obtain the ORACLE_HOME_NAME
, look in the registry on the node you cloning for the ORACLE_HOME_NAME
parameter key under HKEY_LOCAL_MACHINE\SOFTWARE\oracle\KEY_OraCRs12c_home1
.
On the existing node, from the %ORACLE_HOME%\oui\bin
directory run the following command to update the inventory in the Oracle Database home with Oracle RAC, specified by Oracle_home
, where existing_node
is the name of the existing node, and new_node
is the name of the new node:
setup.exe -updateNodeList ORACLE_HOME=Oracle_home "CLUSTER_NODES= {existing_node,new_node}" LOCAL_NODE=existing_node
From the node that you cloned, run DBCA to add Oracle RAC database instances to the new nodes.