Cloning Local Oracle Homes on Linux and UNIX Systems

Add nodes to Oracle RAC environments by cloning a local, non-shared Oracle home in Linux and UNIX environments.

Complete the following steps to clone Oracle AI Database with Oracle RAC:

  1. Follow the steps in the topic "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.
  2. 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.
  3. On the new node, configure the environment variables ORACLE_HOME and ORACLE_BASE. Then go to the Grid_home /clone/bin directory on the new node 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 ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Oracle_home_name
      ORACLE_BASE=$ORACLE_BASE "'CLUSTER_NODES={existing_node,new_node2,new_node3}'"
      "'LOCAL_NODE=new_node2'" CRS=TRUE INVENTORY_LOCATION=/u01/app/oraInventory
  4. 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.

  5. Run the following command on the existing node from the $ORACLE_HOME/oui/bin directory to update the inventory in the Oracle AI 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}"
  6. On each new node, go to the $ORACLE_HOME directory and run the following command:

    ./root.sh
  7. From the node that you cloned, run Oracle DBCA to add Oracle RAC database instances on the new nodes.

Related Topics