Search This Blog

Total Pageviews

Friday, 13 December 2024

How to Deinstall Old Clusterware Home Once Upgrade to Newer Version is Complete







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


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

[grid@oragrid ContentsXML]$ pwd
/u01/app/oraInventory/ContentsXML
[grid@oragrid ContentsXML]$ cat inventory.xml





   12.2.0.9.0
   2.1.0.6.0








[grid@oragrid ContentsXML]$


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


export OLD_HOME=/u01/app/19.2.0/grid
export ORACLE_HOME=$OLD_HOME

[grid@oragrid ~]$ echo $ORACLE_HOME
/u01/app/19.2.0/grid

[grid@oragrid ~]$ $OLD_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$OLD_HOME
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 6759 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
You can find the log of this install session at:
 /u01/app/oraInventory/logs/DetachHome2024-12-13_12-30-06PM.log
'DetachHome' was successful.



[grid@oragrid ContentsXML]$ cat /u01/app/oraInventory/ContentsXML/inventory.xml





   12.2.0.7.0
   2.1.0.6.0



      <<<< now we are good 







[grid@oragrid ContentsXML]$


$NEW_HOME/OPatch/opatch lsinventory -all  


/u01/app/21.3.0/grid/OPatch/opatch lsinventory -all


/u01/app/21.3.0/grid/OPatch/opatch lsinventory -all
Oracle Interim Patch Installer version 12.2.0.1.26
Copyright (c) 2024, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/19.2.0/grid
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/19.2.0/grid/oraInst.loc
OPatch version    : 12.2.0.1.26
OUI version       : 12.2.0.7.0
Log file location : /u01/app/19.2.0/grid/cfgtoollogs/opatch/opatch2024-12-13_12-34-42PM_1.log

List of Homes on this system:

  Home name= OraGI21Home1, Location= "/u01/app/21.3.0/grid"
LsInventorySession failed: RawInventory gets null OracleHomeInfo

OPatch failed with error code 73
[grid@oragrid ContentsXML]$



[root@oragrid ~]# export OLD_HOME=/u01/app/19.2.0/grid
[root@oragrid ~]# rm -rf $OLD_HOME
[root@oragrid ~]# ls -ltr /u01/app/19.2.0/grid


No comments:

Oracle DBA

anuj blog Archive