Sunday, June 12, 2016

Cloning Oracle HOME on the same Machine

Create OS User DEVOBI under dba group on scdobi01-new

create ORACLE_BASE BASE directory structure with devobi login
/app/11.2.0/devobi/

[uatobi@uatobi]$ echo $ORACLE_HOME   (Soucre Oracle HOME)
/app/11.2.0/prdobi

[oracle@orahost ~]$ cd /app/11.2.0/prdobi
[uatobi@uatobi]$  cp -Rp $ORACLE_HOME /devobi_bin/app/11.2.0/devobi/
(Copying Oracle Home binaries from souce to destination )

export ORACLE_HOME=/devobi_bin/app/11.2.0/devobi/prdobi

./runInstaller -silent -clone ORACLE_BASE="/devobi_bin/app/11.2.0/devobi" ORACLE_HOME="/devobi_bin/app/11.2.0/devobi/prdobi" ORACLE_HOME_NAME="OraHome2"


nstallation in progress (Wednesday, June 8, 2016 9:33:53 AM GMT-05:00)
..............................................................................                                                  78% Done.
Install successful

Linking in progress (Wednesday, June 8, 2016 9:34:16 AM GMT-05:00)
Link successful

Setup in progress (Wednesday, June 8, 2016 9:35:18 AM GMT-05:00)
Setup successful

End of install phases.(Wednesday, June 8, 2016 9:35:25 AM GMT-05:00)


The following configuration scripts need to be executed as the "root" user.

1)/home/devobi/oraInventory/orainstRoot.sh
2)/devobi_bin/app/11.2.0/devobi/prdobi/root.sh

To execute the configuration scripts:
    1. Open a terminal window
    2. Log in as "root"
    3. Run the scripts


 /devobi_bin/app/11.2.0/devobi/prdobi/OPatch/opatch lsinventory
Invoking OPatch 11.2.0.1.1

Oracle Interim Patch Installer version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation.  All rights reserved.


Oracle Home       : /devobi_bin/app/11.2.0/devobi/prdobi
Central Inventory : /home/devobi/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 11.2.0.1.1
OUI version       : 11.2.0.2.0
OUI location      : /devobi_bin/app/11.2.0/devobi/prdobi/oui
Log file location : /devobi_bin/app/11.2.0/devobi/prdobi/cfgtoollogs/opatch/opatch2016-06-09_05-33-50AM.log

Patch history file: /devobi_bin/app/11.2.0/devobi/prdobi/cfgtoollogs/opatch/opatch_history.txt

Lsinventory Output file location : /devobi_bin/app/11.2.0/devobi/prdobi/cfgtoollogs/opatch/lsinv/lsinventory2016-06-09_05-33-50AM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 11g                                                  11.2.0.2.0
There are 1 products installed in this Oracle Home.


Interim patches (2) :

Patch  13072654     : applied on Sat Oct 05 07:26:48 GMT-05:00 2013
Unique Patch ID:  15973278
   Created on 14 Feb 2013, 05:19:41 hrs PST8PDT
   Bugs fixed:
     13072654

Patch  9825461      : applied on Fri Aug 02 20:58:15 GMT-05:00 2013
Unique Patch ID:  13822089
   Created on 13 Jun 2011, 17:17:07 hrs PST8PDT
   Bugs fixed:
     9825461



--------------------------------------------------------------------------------

OPatch succeeded.

Note :This above Opatch command confirms that your inventory is created/updated with new ORACLE_HOME location and Oracle_HOME is healthy

Run the ./runInstaller  from $ORACLE_HOME/oui/bin
Also you can netca/dbca from $ORACLE_HOME/bin

these checks will confirm that all your executables are healthy and working fine 

No comments: