Upgrade DB using exisiting Oracle Home in 11.2 and later – “In-Place Upgrade”

From 11gR2, Oracle introduced “Out-of-Place” upgrade, where during the upgrade we install the patch set into a new, separate Oracle home, and its best practices recommendation, as minimizes the downtime.Once, the patch set installation is complete in the new Oracle Home location, we can perform the upgrade using DBUA or manual method.

So, can’t we use the previous method of upgrading the database using the existing Oracle Home?  This is the question asked by many. The answer to this is, YES we can use the In-Place Upgrade method using the same existing home, but its not recommended by Oracle.

Using the In-Place Upgrade method , increases the downtime, as we need to keep the db down even for the period of installing the patch set.This method is provided only if for some reason you have no alternative but to use the existing Oracle Home, one of which could be space crunch.

Below, is the print screen attached when you try install patch set to the same existing home –

I am testing this to db upgrade on my windows test box. To use the same exisitng location do the below –

1. Backup the below folders

ORACLE_HOME/database/dbs(in unix) , ORACLE_HOME/network/admin, ORACLE_HOME/hostname_dbname,ORACLE_HOME/oc4j/j2ee/OC4J_DBConsole_hostname_dbname

2. Backup the current ORACLE HOME installation.

After above is done, “detach” the exisitng ORACLE HOME. Before detaching the Home, inventory.xml shows –

  {?xml version="1.0" standalone="yes" ?}
- {!--  Copyright (c) 1999, 2010, Oracle. All rights reserved.
- {!--  Do not modify the contents of this file by hand.
  {HOME NAME="OraClient10g_home2" LOC="C:\apps\db\oracle102" TYPE="O" IDX="1" /}
  {HOME NAME="OraDb11g_home1" LOC="D:\oracle\product\\dbhome_1" TYPE="O" IDX="2" /}

To detach the ORACLE HOME

On windows –

%ORACLE_HOME%\oui\bin\setup.exe -detachHome ORACLE_HOME=D:\oracle\product\\dbhome_1

On Linux

$ORACLE_HOME/oui/bin/runInstaller -detachHome ORACLE_HOME=11.2_ORACLE_HOME_LOCATION

After detach inventory.xml showed no entry for “HOME NAME=”OraDb11g_home1″ LOC=”D:\oracle\product\\dbhome_1″ TYPE=”O” IDX=”2″

Once, the detach is complete rename or move this current ORACLE HOME software directory to a temporary name and start the OUI.When prompted for Software Location, provide the same location as previous one.

Now when you click on next, no error :). After the installation completes, restore the backedup folders and run DBUA from the new ORACLE HOME


4 thoughts on “Upgrade DB using exisiting Oracle Home in 11.2 and later – “In-Place Upgrade”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s