Cloning Oracle Homes on Windows Systems
Add nodes to Oracle RAC environments by cloning a shared or local Oracle home in Microsoft Windows environments.
Complete the following steps to clone Oracle AI Database with Oracle RAC:
- If you have a local Oracle home, then use the ZIP utility to create an archive of the Oracle AI 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 AI Database with Oracle RAC home files from the ZIP file on the new node in the same directory in which the Oracle AI 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\bindirectory and run the following command, whereOracle_Homeis the Oracle AI Database home,Oracle_Home_Nameis the name of the Oracle AI Database home,Oracle_Baseis the Oracle base directory,user_nameis the name of the Oracle home user (a non-Administrator user) for the Oracle home being cloned,existing_nodeis the name of the existing node, andnew_nodeis the name of the new node:Note:
- The
ORACLE_HOME_USERis required only if you are cloning a secured Oracle home. - Use the
-cfsand-noConfigoptions for a shared Oracle AI Database home with Oracle RAC. - The value for the
ORACLE_HOME_NAMEparameter must be that of the node you are cloning. To obtain theORACLE_HOME_NAME, look in the registry on the node you cloning for theORACLE_HOME_NAMEparameter key underHKEY_LOCAL_MACHINE\SOFTWARE\oracle\KEY_OraCRs2300_home1.
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_nodeIf you have a shared Oracle AI Database home with Oracle RAC, then append the
-cfsoption 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]- The
On the existing node, from the
%ORACLE_HOME%\oui\bindirectory run the following command to update the inventory in the Oracle AI Database home with Oracle RAC, specified byOracle_home, whereexisting_nodeis the name of the existing node, andnew_nodeis 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 Oracle DBCA to add Oracle RAC database instances to the new nodes.