If you do not have a shared Oracle Grid Infrastructure home, navigate to the Grid_home/clone/bin directory on each destination node and run the clone.pl script, which performs the main Oracle Clusterware cloning tasks. To run the script, you must supply input to several parameters. Table 8-1 describes the clone.pl script parameters.
Table 8-1 Parameters for the clone.pl Script
| Parameters | Description |
|---|---|
ORACLE_BASE=ORACLE_BASE |
The complete path to the Oracle base to be cloned. If you specify an invalid path, then the script exits. This parameter is required. |
ORACLE_HOME=GRID_HOME |
The complete path to the Oracle Grid Infrastructure home for cloning. If you specify an invalid path, then the script exits. This parameter is required. |
[ORACLE_HOME_NAME=
Oracle_home_name |
-defaultHomeName] |
The Oracle home name of the home to be cloned. Optionally, you can specify the |
[ORACLE_HOME_USER=
Oracle_home_user_name] |
The Oracle home user on Windows. Oracle recommends that you pass this parameter for Oracle Database software cloning. This parameter is optional. |
INVENTORY_LOCATION=
location_of_inventory |
The location for the Oracle Inventory. |
OSDBA_GROUP=
OSDBA_privileged_group |
Specify the operating system group you want to use as the OSDBA privileged group. This parameter is optional if you do not want the default value. |
"CLUSTER_
NODES={node_
name,node_
name,...}" |
A comma-delimited (with no spaces) list of short node names for the nodes that are included in this new cluster. The following only apply if you are cloning database homes:
|
"LOCAL_NODE=node_name" |
The short node name for the node on which |
CRS=TRUE |
This parameter is necessary to set this property on the Oracle Universal Installer inventory. |
OSASM_GROUP=
OSASM_privileged_group |
Specify the operating system group you want to use as the OSASM privileged group. This parameter is optional if you do not want the default value. |
OSOPER_GROUP=
OSOPER_privileged_group |
Specify the operating system group you want to use as the OSOPER privileged group. This parameter is optional if you do not want the default value. |
-debug |
Specify this option to run the |
-help |
Specify this option to obtain help for the |
For example, on Linux and UNIX systems:
$ perl clone.pl -silent ORACLE_BASE=/u01/app/oracle ORACLE_HOME= /u01/app/12.1/grid ORACLE_HOME_NAME=OraHome1Grid INVENTORY_LOCATION=/u01/app/oraInventory LOCAL_NODE=node1 CRS=TRUE
On Windows systems:
C:\>perl clone.pl ORACLE_BASE=D:\u01\app\grid ORACLE_HOME=D:\u01\app\grid\12.1
ORACLE_HOME_NAME=OraHome1Grid ORACLE_HOME_USER=Oracle_home_user_name
"LOCAL_NODE=node1" "CLUSTER_NODES={node1,node2}" CRS=TRUE
For Windows platforms, on all other nodes, run the same command with an additional argument: PERFORM_PARTITION_TASKS=FALSE.
For example:
C:\>perl clone.pl ORACLE_BASE=D:\u01\app\grid ORACLE_HOME=D:\u01\app\grid\12.1 ORACLE_HOME_NAME=OraHome1Grid ORACLE_HOME_USER=Oracle_home_user_name "LOCAL_NODE=node1" "CLUSTER_NODES={node1,node2}" CRS=TRUE PERFORM_PARTITION_TASKS=FALSE
Refer to Table 8-1 for descriptions of the various parameters in the preceding examples.
If you have a shared Oracle Grid Infrastructure home, then append the -cfs option to the command example in this step and provide a complete path location for the cluster file system.