Cloning an Oracle Real Application Cluster(RAC) Database Software Home | bigdba.com

Cloning an Oracle Real Application Cluster(RAC) Database Software Home

Oracle Software

In this post we will demonstrate how to create the Oracle RAC Database Software Clone manually, add them to the respective clone.pl script on Oracle Full Rack Exadata Compute Node.

Create a tarball of the source home

Node1

cd /u01/app/ orcl /product/orcl_12201
tar zcvf /u01/app/ orcl /orcl .tar

Node2

cd /u01/app/ orcl /product/orcl_12201
tar zcvf /u01/app/ orcl /orcl .tar

Unpack the tarball into the target location

Node1

mkdir -p /u01/app/ orcl /product/orcl_12201_n
cd /u01/app/ orcl /product/ orcl _12201_n
tar zxvf /u01/app/ orcl /orcl_12201.tar

Node2

mkdir -p /u01/app/ orcl /product/orcl_12201_n
cd /u01/app/ orcl /product/ orcl _12201_n
tar zxvf /u01/app/ orcl /orcl_12201.tar

Use the ‘chgrp’ command to change the group ownership of any files owned by group A to be owned by group B

Node1

cd /u01/app/ orcl /product/orcl_12201_n
find . -group dba -exec ls -l {} \;
find . -group dba -exec chgrp oinstall {} \;
find . -group dba -exec ls -l {} \;

Node2

cd /u01/app/ orcl /product/orcl_12201_n
find . -group dba -exec ls -l {} \;
find . -group dba -exec chgrp oinstall {} \;
find . -group dba -exec ls -l {} \;

Run the $ORACLE_HOME/clone/bin/clone.pl script (or ./runInstaller -clone) to clone the installation

Node1

cd /u01/app/ orcl /product/orcl_12201_n/clone/bin


perl clone.pl -silent ORACLE_BASE=/u01/app/ orcl ORACLE_HOME=”/u01/app/ orcl /product/orcl_12201_n” ORACLE_HOME_NAME=”orcldb1_prod” OSDBA_GROUP= oinstall OSOPER_GROUP=” oinstall ” OSBACKUPDBA_GROUP= oinstall OSDGDBA_GROUP= oinstall OSKMDBA_GROUP= oinstall OSRACDBA_GROUP= oinstall INVENTORY_LOCATION=/u01/app/oraInventory CLUSTER_NODES={node1}

Node2

cd /u01/app/ orcl /product/orcl_12201_n/clone/bin


perl clone.pl -silent ORACLE_BASE=/u01/app/ orcl ORACLE_HOME=”/u01/app/ orcl /product/orcl_12201_n” ORACLE_HOME_NAME=”orcldb1_prod” OSDBA_GROUP= oinstall OSOPER_GROUP=” oinstall ” OSBACKUPDBA_GROUP= oinstall OSDGDBA_GROUP= oinstall OSKMDBA_GROUP= oinstall OSRACDBA_GROUP= oinstall INVENTORY_LOCATION=/u01/app/oraInventory CLUSTER_NODES={node2}

Run the $ORACLE_HOME/root.sh script as the ‘root’ user

Node1


/u01/app/ orcl /product/orcl _12201_n/root.sh

Node2


/u01/app/ orcl /product/orcl_12201_n/root.sh

Deinstall old home

cd /u01/app/ orcl /product/orcl_12201/deinstall/
./deinstall

Congrat, Have a nice day…

Comments