Oracle® Real Application Clusters Administration and Deployment Guide 11g Release 2 (11.2) Part Number E10718-03 |
|
|
View PDF |
This chapter provides information about using cloning to extend Oracle Real Application Clusters (Oracle RAC) to nodes in an existing cluster. To add Oracle Automatic Storage Management (Oracle ASM) and Oracle RAC to nodes in a new cluster, see Chapter 6, "Cloning Oracle RAC to Nodes in a Cluster".
See Also:
"Introduction to Cloning Oracle RAC" for an overview of cloning and a discussion about the benefits of cloningThis section explains how to add nodes to existing Oracle RAC environments by using Oracle cloning for Linux and UNIX system environments and Windows system environments.
The cloning procedures assume that you have successfully installed and configured an Oracle RAC environment to which you want to add nodes and instances. To add nodes to an Oracle RAC environment using cloning, first extend the Oracle Clusterware configuration, then extend the Oracle Database software with Oracle RAC, and then add the listeners and instances by running the Oracle assistants
The cloning script runs multiple tools, each of which may generate its own log files. After the clone.pl
script finishes running, you can view log files to obtain more information about the cloning process. See "Locating and Viewing Log Files Generated During Cloning" for more information.
Complete the following steps to clone Oracle Database with Oracle RAC software on Linux and UNIX systems:
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.
If you do not have a shared Oracle Database home, then tar the Oracle home from the existing node and copy it to the new node. Assume that the location of the destination Oracle home on the new node is $ORACLE_HOME
. Otherwise, skip this step.
If you do not have a shared Oracle Database home, then on the new node 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=/opt/oracle ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Oracle_home_name '-O-noConfig'
If you have a shared Oracle Database home, then append the -cfs
option to the command example in this step for the cluster file system:
perl clone.pl '-O"CLUSTER_NODES={existing_node,new_node2,new_node3}"' '-O"LOCAL_NODE=new_node2"' ORACLE_BASE=/opt/oracle ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=Oracle_home_name '-O-noConfig' '-O-cfs'
Run the following command on the existing node from the $ORACLE_HOME/oui/bin
directory 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 node:
./runInstaller –updateNodeList ORACLE_HOME=$ORACLE_HOME "CLUSTER_ NODES={existing_node,new_node2,new_node3}"
On the new node, go to the $ORACLE_HOME
directory and run the following command:
./root.sh
On the new node, run Net Configuration Assistant (NETCA) to add a listener.
From the node that you cloned, run Database Configuration Assistant (DBCA) to add the new instance.
Complete the following steps to clone Oracle Database with Oracle RAC software on Windows systems:
If you do not have a shared Oracle Database home, then zip the Oracle Database home with Oracle RAC on the existing node and copy it to the new node. Unzip the Oracle Database with Oracle RAC home 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%
. Skip this step if you have a shared Oracle Database 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, 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 '-O"CLUSTER_NODES={existing_node,new_node}"' '-O"LOCAL_NODE=new_node"' -O-noConfig
If you have a shared Oracle Database home with Oracle RAC, then append the -O-cfs
option to the command example in this step and provide a complete path location for the cluster file system.
On the existing node, from the ORACLE_HOME\oui\bin
directory run the following command where Oracle_home
is the Oracle Database home with Oracle RAC, 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
On the new node, run NETCA to add a listener.
From the node that you cloned, run DBCA to add the database instance to the new node.