ON CALL DBA SUPPORT

— Database blog

CLONE ORACLE 11g HOME

Posted by ssgottik on 09/04/2015

STEPS TO CLONE ORACLE 11g ORACLE_HOME  FROM ONE SERVER TO ANOTHER

 

STEP 01 : ZIP THE ORACLE HOME FILE FROM THE SOURCE

cd /u01/app/oracle/product

$tar  -pcvf   11204.tar   11.2.0.4

STEP 02 : SCP  .tar file to the target server

scp -p username@target.com:/u01/app/oracle/product/ .

STEP 03 : UNTAR THE .tar FILE

$tar -xvf 11204.tar

STEP04 : RUN CLONE.PL FROM ORACLE_HOME

vmlinux01::/u01/app/oracle/product/11.2.0.4/clone/bin> perl clone.pl ORACLE_BASE=’/u01/app/oracle/’
ORACLE_HOME=’/u01/app/oracle/product/11.2.0.4′ ORACLE_HOME_NAME=’11204_HOME’
./runInstaller -silent -clone -waitForCompletion “ORACLE_HOME=/u01/app/oracle/product/11.2.0”
“ORACLE_HOME_NAME=11204_HOME” -noConfig -nowait
Starting Oracle Universal Installer…

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-12-02_03-22-12PM. Please wait …Oracle
Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2008, Oracle. All rights reserved.

You can find a log of this install session at:
/u01/app/oraInventory/logs/cloneActions2012-12-02_03-22-12PM.log
………………………………………………………………………………………. 100% Done.

Installation in progress (Tuesday, December 2, 2012 3:22:29 PM EST)
……………………………………………………………….
73% Done.
Install successful

Linking in progress (Tuesday, December 2, 2012 3:22:39 PM EST)
Link successful

Setup in progress (Tuesday, December 2, 2012 3:24:50 PM EST)
Setup successful

End of install phases.(Tuesday, December 2, 2012 3:24:56 PM EST)
WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central
inventory of this system.
To register the new inventory please run the script ‘/u01/app/oraInventory/orainstRoot.sh’ with root privileges.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts need to be executed as the “root” user.
#!/bin/sh
#Root script to run
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.2.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as “root”
3. Run the scripts

The cloning of 11204_HOME was successful.
Please check ‘/u01/app/oraInventory/logs/cloneActions2012-12-02_03-22-12PM.log’ for more details.
vmlinux01::/u01/app/oracle/product/11.2.0/clone/bin> cat /etc/oratab
#

STEP 05 : RUN orainstRoot.sh and root.sh as root user

#/u01/app/oraInventory/orainstRoot.sh
#/u01/app/oracle/product/11.2.0/root.sh

 

Thanks,

Satish.G.S

Leave a comment