0% found this document useful (0 votes)
32 views4 pages

Clone ORACLE - HOME 11.2.0.3 With PSU 20760997

This document outlines the process for cloning an existing Oracle RDBMS installation with PSU 11.2.0.3.15. It includes detailed steps for copying the Oracle home, using Oracle Universal Installer (OUI) for cloning, and applying necessary patches and SQL scripts. The document is prepared by Mohit Dhapre and is intended for the IM team.

Uploaded by

Nagaraju Peeta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views4 pages

Clone ORACLE - HOME 11.2.0.3 With PSU 20760997

This document outlines the process for cloning an existing Oracle RDBMS installation with PSU 11.2.0.3.15. It includes detailed steps for copying the Oracle home, using Oracle Universal Installer (OUI) for cloning, and applying necessary patches and SQL scripts. The document is prepared by Mohit Dhapre and is intended for the IM team.

Uploaded by

Nagaraju Peeta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Cloning $ORACLE_HOME having PSU

11.2.0.3.15 (20760997)

Document Date: 17thNov 2016


Revision Date :
Version Number: 1.0
Prepared by : Mohit DHAPRE
Validated by :

1
Document Name :
File Name :

Document Author Ownership/Review Period

Author Mohit DHAPRE Owner Mohit DHAPRE


Last Updated by Review Period
Last Updated on Next Review
Completion Date/ Expiry Date for
Archiving Validity

Document Validation Document Distribution

Validation Distribution to ALL IM Team

Keywords

Document Format Change Control

Date Change Made By Version Number Details of Change

This control page supersedes any other document, version or change control pages found within this document. Update this page
only when making changes to the document control.

2
1. Clone existing ORACLE_HOME 11.2.0.x

Make a copy of the existing (source) Oracle RDBMS installationLogin to root


cp -Rp /ora/app/orastage/product/11.2.0/dbhome_shared/* <NEW_ORACLE_SHARED_HOME>
or
cd $ORACLE_HOME
tar -cvf /tmp/source.tar .
transfer the file to destination host /tmp (or any area)
go to destination ORACLE_HOME
cd $ORACLE_HOME_DEST
tar -xvf /tmp/source.tar

Note : If the clone (target) installation is on the same server then the "cp -Rp" command could be
used

2. Clone the new ORACLE_HOME using OUI


export ORACLE_HOME=<NEW_ORACLE_HOME>
export PATH=$ORACLE_HOME/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/CA/
SharedComponents/ccs/cam/bin:/opt/CA/SharedComponents/bin:/home/orastage/bin:/home/orastage/
bin:/ora/app/11.2.0/oragrid/bin
Change oracle inventory path in $ORACLE_HOME/oraInst.loc

cd $ORACLE_HOME/oui/bin
./runInstaller -clone -silent -ignorePreReq ORACLE_BASE="<ORACLE_BASE_PATH>"
ORACLE_HOME="$ORACLE_HOME" ORACLE_HOME_NAME="ORACLE_HOME_11203" -invPtrLoc
$ORACLE_HOME/oraInst.loc

Execute root.sh from new ORACLE_HOME

Alternatively you can use clone.pl script too


cd $ORACLE_HOME/clone/bin
perl clone.pl ORACLE_HOME="<target_home>" ORACLE_HOME_NAME="<unique_home_name>"
ORACLE_BASE="<path_for_ORACLE_BASE>" OSDBA_GROUP=<OSDBA_privileged_group>
OSOPER_GROUP=<OSOPER_privileged_group>

Note : With the above task you have an ORACLE_HOME with PSU Patch 20760997
Patch description: "Database Patch Set Update : 11.2.0.3.15 (20760997)"
Created on 8 Jun 2015, 23:57:50 hrs PST8PDT

3
3. Loading Modified SQL Files in the database
a) For each database instance running on the Oracle home being patched, connect to the database using
SQL*Plus. Connect as SYSDBA and run the catbundle.sql script as follows:

cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> STARTUP
SQL> @catbundle.sql psu apply
SQL> @utlrp.sql
SQL> QUIT
Check the following log files
in $ORACLE_HOME/cfgtoollogs/catbundle or $ORACLE_BASE/cfgtoollogs/catbundle for any errors:

catbundle_PSU_<database SID>_APPLY_<TIMESTAMP>.log
catbundle_PSU_<database SID>_GENERATE_<TIMESTAMP>.log

where TIMESTAMP is of the form YYYYMMMDD_HH_MM_SS

You might also like