How to clone the Oracle database software
‘This note describes the process of cloning an Oracle Home - in this case we are cloning a 11g
Release 2 Oracle Home from source machine devastator to target machine vixen.
On source (devastator)
ORACLE_HOME location is : /u01/app/oracle/product/11.2.0/dbhome_1
Go to directory on source machine one level higher and tar the db_homel directory and all
sub-directories
devastator:§ pwd
devastator:$ /u01/app/oracle/product/11.2.0
devastator:$ tar -evf 1igr2.tar dbhome_1
On Target (vixen)
Create the directory /u01/app/oracle/product/11.2.0 if it does not exist
On Source
sep or fip the tar file to this location on the target machine
devastatert
sep -2p ligr2. tar oraclefvixen: /u01/app/oracle/product/11.2.0
On target
Uncompress the tar file
vixen:$ ed /u01/app/oracie/product/11.2.0
vixen:§ tar -xvf ligr2.tar
Clone the Oracle Home using the per! script clone-pl which is located under the
S$ORACLE_HOME/clone/bin
vixen:$ ed /u01/app/oracle/product/11.2.0/dbhone_1/clone/bin
vixen:$ perl clone.pl ORACLE_BASE=/u01/app/oracle
ORACLE, HOME=/u01 /app/oracle/product/11.2.0/dbhome_1
ORACLE_HOME_NAME=11GR2_HOME
_/ruumnstaller -clone -vaitrorcompletion “ORACLE _SASE=/u01/app/oracte
(ORRCLE_HOME=/u01/app/oracle/product/11.2.0/dbhoné 1" "ORRCLE OME NAME=11GR2_ HOME" ~silent
cnoCenfig -nowait
starting Oracle Universal Installer.
cking svap space: must be greater than 500 MB. Actual 13044 mB Passi
fo Launch Oracle Universal Installer from /tmp/Oralnstall2010-06-28_12-15-47EM
Oracle Universal Installer, Version 11.2.0.1.0 Production
ic] 1995, 2009, oracle, All rights reserved.
copyrignt.You can find che log of this install session at:
/u01/app/oracie/oratnventory/1ogs/cioneactions2010-06-28_12-19-47PM. 109
i008 Dene!
Installation in progress (Monday, dune 28, 2010 12:20:29 eM HST)
788 bone.
Install duccessful
Linking in progress (Monday, June 28, 2010 12:21:06 PM WST)
Eine suecesseul
setup in progress (Monday, gune 28, 2010 12:23:34 eM nSz)
Setup successful
End of install phases. (Monday, dune 28, 2010 12:34:05 PM WST)
Starting to execute configuration assistants
The following configuration assistants have not been run, This can happen because oracle
Universal Installer vas invoked with the ~noCanfig option,
The */u0l/app/cracie/product/11.2.0/dbhone_1/cfgtoolloys/configroolrailedcomands” seript
Contains ali comands that failed, vere skipped or were cancelled. This file may be used to
fon these configuration assistants outside of OUI, Note that you may have to update this
‘rapt with passwords (if any) before executing the sane.
The */u0l/apb/oracie/product/11.2.0/dbnone_1/¢fgtool1ogs/contigroolAliconmands” script
Contains all commands to be executed by th8 configuration assistants. This file may be used
fe tun the configuration assistants outside of OOF. Note that you may have to update this
ips with pa
fords (if any) before executing the sane.
The following configuration scripts need to be executed as the "root™ user.
(uo /app/eracie/product/11.2.0/dshona_1/root.sh
To execute the configuration scripts:
i. Open a terminal window
2, bog in as "root"
4a] nun the scripts
The cloning of 116R2 HOME vas successful
Please check */u01/app/oracie/oralaventory/ogs/clonenctions2010-06-28 12-19-47PM. leg" for
more details.
Run the root sh script as root
+ pwd
/x01/app/oracle/product/11.2.0/dshome_1
f ./root-sh
check
7x01 /app/oracle/product/11.2.0/dbhome_1/install/root_devastator_2010-06
29 07-42-31.log for the output of root script
vixen:Seat
/u01/app/eracle/product/11.2.0/dbhome_1/install/root_vixe1
42-31.1log
1 2010-06-29 07-
Running Oracle 11g rost.sh script.
The following environment variables are set as:
ORACLE_ORNER= oracle
ORACLE-KOME= | /G01/app/oracle/product/11.2.0/dbhome_1
Entries will be added to the /var/opt/oracle/oratab f12 as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sn script.
Now product-specific root actions will be performed.
Finished product-specific root actions‘We can now check that the Oralnventory has been updated with the 11g Release 2 Oracle
Home details.
On this machine, earlier there was only a 10g Oracle Home installed. When we check the
contents of the inventory.xml file, we will see that it has information about the I1g Oracle
Home - 11GR2_HOME
vixen:$ eat /var/opt/oracle/oratnst.loc
inventory_loc=/u0 l/app/oracle/oralnventory
inst_group=dba
vixen:S$ed /u01/app/oracle/oraInventory
vixen:§ 1s
backup contentext logs
oraInstaller.properties oui
Contents install.platform oxainst Loe
ovainstRoot. sh sessionContext.2e
Sed Contentsxm
vixen:$ 1s
comps - xml inventory.xml ibs. xml
vixen:§ vi dnventory.sml
tend version="1.0" standalonestyes" 2>
E!* copyright (<2) 1555, 2009, Oracle. ALL rights reserved. ——>
“INVENTORY
SUNCSAVED. NITH>11.2.0.1.0
“ENING VERS2.106006/MINIMOM_VER>
‘SHOME WANE="or21020" LOC="/u01/app/oracle/product/10.2.0" TYPE="O" TOK=""/>
“HOMME WAME="11GR2_HOME" 10C="/401/app/oracle/product/11.2.0/dbkome_1" TYP