Clone Oracle Database Home on Exadata Machine

I was asked to clone database home during one of my Exadata deployment project. We wanted to have additional Database home for patching and isolation purposes but its a topic for different blog.  you can use following guidelines to clone database blogs on Exadata machine.

Note :- These steps needs to be performed on all DB nodes.

Step 1 : Create directory or new mount for database home. It’s best to have separate mount for different database homes on Exadata Machine.

mkdir -p /u01/app/oracle/product/11.2.0.4/dbhome_2

Step 2 : Copy all files using root user to new database home (dbhome_2)

[root@exdbadm01 dbhome_1]# cp * -rp /u01/app/oracle/product/11.2.0.4/dbhome_2/

Step 3 : Links RDS required only for Exadata Machine

Set ORACLE_HOME environment variable
cd $ORACLE_HOME/rdbms/lib
make -f $ORACLE_HOME/rdbms/lib/ins_rdbms.mk ipc_rds ioracle

Step 4 : Clone and relink db home using Oracle OUI install in silent mode.

./runInstaller -silent -clone ORACLE_BASE=”/u01/app/oracle” ORACLE_HOME=”/u01/app/oracle/product/11.2.0.4/dbhome_2″ ORACLE_HOME_NAME=”OraDb11g_home2″

export ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/dbhome_2

cd $ORACLE_HOME/oui/bin

[oracle@node1 bin]$ ./runInstaller -silent -clone ORACLE_BASE="/u01/app/oracle" ORACLE_HOME="/u01/app/oracle/product/11.2.0.4/dbhome_2" ORACLE_HOME_NAME="OraDb11g_home2"
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 24575 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-06-27_05-04-52PM. Please wait ...[oracle@node1 bin]$ Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.

You can find the log of this install session at:
/u01/app/oraInventory/logs/cloneActions2018-06-27_05-04-52PM.log
.................................................................................................... 100% Done.

Installation in progress (Wednesday, June 27, 2018 5:04:57 PM EDT)
............................................................................... 79% Done.
Install successful

Linking in progress (Wednesday, June 27, 2018 5:05:00 PM EDT)
Link successful

Setup in progress (Wednesday, June 27, 2018 5:05:17 PM EDT)
Setup successful

End of install phases.(Wednesday, June 27, 2018 5:05:38 PM EDT)
WARNING:
The following configuration scripts need to be executed as the "root" user.
/u01/app/oracle/product/11.2.0.4/dbhome_2/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts

The cloning of OraDb11g_home2 was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2018-06-27_05-04-52PM.log' for more details.