Search This Blog

Total Pageviews

Sunday, 20 November 2022

How to Deinstall Old Clusterware Home ?

How to Deinstall Old Clusterware Home Once Upgrade to Newer Version is Complete (Doc ID 1346305.1)

To remove old home, as clusterware user execute the following on any node:


## please replace $OLD_HOME with the path of pre-upgrade clusterware home
export ORACLE_HOME=$OLD_HOME

## detach OLD_HOME
$OLD_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$OLD_HOME

## confirm $OLD_HOME is removed from central inventory:
$NEW_HOME/OPatch/opatch lsinventory -all  

## remove files in OLD_HOME manually on all nodes:
/bin/rm -rf $OLD_HOME

unset ORACLE_HOME




If it fails for any reason, as clusterware user execute the following on all nodes:

export ORACLE_HOME=$OLD_HOME

## detach OLD_HOME
$OLD_HOME/oui/bin/runInstaller -detachHome -silent -local ORACLE_HOME=$OLD_HOME

## confirm $OLD_HOME is removed from central inventory:
$NEW_HOME/OPatch/opatch lsinventory -all  

## remove files in OLD_HOME manually on all nodes:
/bin/rm -rf $OLD_HOME

unset ORACLE_HOME

=========================

as grid 

[grid@rac02 ~]$ export ORACLE_HOME=/u01/app/18.0.0/gridexport ORACLE_HOME=/u01/app/18.0.0/grid
[grid@rac02 ~]$ export ORACLE_HOME=/u01/app/18.0.0/grid
[grid@rac02 ~]$ $ORACLE_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$ORACLE_HOME
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 15851 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
'DetachHome' was successful.  <<<<<<

===
[grid@rac02 ~]$ export ORACLE_HOME=/u01/app/19.0.0/grid
[grid@rac02 ~]$ $ORACLE_HOME/OPatch/opatch lsinventory -all
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2022, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/19.0.0/grid
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/19.0.0/grid/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.7.0
Log file location : /u01/app/19.0.0/grid/cfgtoollogs/opatch/opatch2022-11-20_07-13-22AM_1.log

Lsinventory Output file location : /u01/app/19.0.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2022-11-20_07-13-22AM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: ibrac02.int.smq.datapipe.net
ARU platform id: 226
ARU platform description:: Linux x86-64

List of Oracle Homes:
  Name          Location
   OraDB12Home1         /u01/app/oracle/product/12.1.0/dbhome_1
   OraDB12Home2         /u01/app/oracle/product/12.2.0/dbhome_1
   OraDB12Home3         /u01/app/oracle/VIS/12.1.0
   OraDB18Home1         /u01/app/oracle/product/18.3.0
   OraGI19Home1         /u01/app/19.0.0/grid

Installed Top-level Products (1):

Oracle Grid Infrastructure 19c                                       19.0.0.0.0
There are 1 products installed in this Oracle Home.


Interim patches (4) :

Patch  29585399     : applied on Thu Apr 18 03:36:24 EDT 2019
Unique Patch ID:  22840393
Patch description:  "OCW RELEASE UPDATE 19.3.0.0.0 (29585399)"
   Created on 9 Apr 2019, 19:12:47 hrs PST8PDT
   Bugs fixed:
     27222128, 27572040, 27604329, 27760043, 27877830, 28302580, 28470673
     28621543, 28642469, 28699321, 28710663, 28755846, 28772816, 28785321
     28800508, 28808652, 28815557, 28847541, 28847572, 28870496, 28871040
     28874416, 28877252, 28881191, 28881848, 28888083, 28911140, 28925250
     28925460, 28935956, 28940472, 3, 28942694, 28951332, 28963036, 28968779
     28980448, 28995287, 29003207, 29003617, 29016294, 29018680, 29024876
     29026154, 29027933, 29047127, 29052850, 29058476, 29111631, 29112455

Oracle DBA

anuj blog Archive