Close Menu
  • Home
  • Oracle
    • ASM
    • Data Guard
    • OEM
    • RAC
  • MongoDB
  • Performance
  • Python
  • Shell Script
  • Tools
  • Troubleshooting
Search

Oracle RAC 12.2 on VMware Workstation — Post 5: Final Validation and Quick Reference

2026-05-11 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation – Post 4: Oracle Database Installation and DBCA

2026-05-11 Oracle By Henrique

Oracle RAC 12.2 on VMware Workstation — Post 2: Oracle Linux Configuration and iSCSI

2026-05-11 Oracle By Henrique
YouTube LinkedIn RSS
  • Home
  • About
  • Contact
  • Legal
    • Cookie Policy
    • Disclaimer
    • Privacy Policy
    • Terms of Use
  • RSS
  • English
    • Portuguese (Brazil)
Execute StepExecute Step
YouTube LinkedIn RSS
  • Home
  • Oracle
    • ASM
    • Data Guard
    • OEM
    • RAC
  • MongoDB
  • Performance
  • Python
  • Shell Script
  • Tools
  • Troubleshooting
Execute StepExecute Step
Home » Removing an Old Oracle GRID_HOME After an Upgrade
Oracle Tools

Removing an Old Oracle GRID_HOME After an Upgrade

HenriqueBy Henrique2026-04-25Updated:2026-05-193 Mins Read
Share
Facebook Twitter LinkedIn Pinterest Email Telegram WhatsApp

This post is also available in: Português (Portuguese (Brazil))

After upgrading Oracle Grid Infrastructure, the old GRID_HOME often stays behind — its binaries, configuration files, and inventory entry all still present on the system. The deinstall utility is the Oracle-supported way to clean everything up in one shot.

💡 If the Oracle Home directory was already deleted manually and you only need to clean up the inventory.xml entry, this is not the right procedure. See: How to Remove an ORACLE_HOME from inventory.xml Using runInstaller.


Prerequisites

  • The GRID_HOME you want to remove must not be the active one. CRS must be running from a different home.
  • Run as the Grid Infrastructure owner (grid or oracle, depending on your setup).

1. Identify the GRID_HOME to remove

Check inventory.xml to list all registered homes:

cat /u01/app/oraInventory/ContentsXML/inventory.xml

Example output:

<HOME_LIST>
  <HOME NAME="OraGI19Home1" LOC="/u01/app/19.0.0.0/grid"      TYPE="O" IDX="1" CRS="true"/>
  <HOME NAME="OraGI19Home2" LOC="/u01/app/19.0.0.0/grid1920"  TYPE="O" IDX="5"/>
  <HOME NAME="OraHome1"     LOC="/u01/app/oracle/product/19.0.0.0/dbhome_1" TYPE="O" IDX="3"/>
</HOME_LIST>

The active home is OraGI19Home1 (note the CRS="true" attribute). The candidate for removal is OraGI19Home2.


2. Export the path of the home to remove

export OLD_GRID_HOME=/u01/app/19.0.0.0/grid1920

3. Confirm which GRID_HOME is currently active

⚠️ Do not skip this step. The deinstall utility permanently removes binaries and configuration files. Confirming the active home before proceeding is the difference between a clean decommission and taking down your production environment.

$OLD_GRID_HOME/srvm/admin/getcrshome

Expected output — must point to a different home than $OLD_GRID_HOME:

/u01/app/19.0.0.0/grid

If the output matches $OLD_GRID_HOME, stop immediately. You have the wrong home exported.


4. Run the deinstall

$OLD_GRID_HOME/deinstall/deinstall

The process is interactive and will ask for confirmations. A successful run ends with:

Successfully detached Oracle home '/u01/app/19.0.0.0/grid1920' from the central inventory on the local node.
Successfully deleted directory '/u01/app/19.0.0.0/grid1920' on the local node.
Oracle Universal Installer cleanup was successful.

5. Validate the result in inventory.xml

cat /u01/app/oraInventory/ContentsXML/inventory.xml

The removed home will now show REMOVED="T":

<HOME NAME="OraGI19Home2" LOC="/u01/app/19.0.0.0/grid1920" TYPE="O" IDX="5" REMOVED="T"/>

💡 This is expected behavior — deinstall marks the entry as removed rather than deleting it from the XML. OUI ignores entries flagged with REMOVED="T" in future operations. If you need the entry completely gone from the file, use runInstaller -detachHome as covered here: How to Remove an ORACLE_HOME from inventory.xml.


6. Leftover files

If any files remain in the directory due to permission issues during deinstall, it is safe to remove them manually — the home is already detached from the inventory:

rm -rf /u01/app/19.0.0.0/grid1920

Quick Reference

export OLD_GRID_HOME=/u01/app/19.0.0.0/grid1920

$OLD_GRID_HOME/srvm/admin/getcrshome

$OLD_GRID_HOME/deinstall/deinstall

cat /u01/app/oraInventory/ContentsXML/inventory.xml

rm -rf $OLD_GRID_HOME

References

  • Oracle Database Installation Guide — Removing Oracle Software
  • Oracle Grid Infrastructure Installation and Upgrade Guide 19c
deinstall inventory lab oracle grid infrastructure
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
Previous ArticleDIA-49802: ADR Directory Permission Denied after Oracle Restart Reconfiguration
Next Article How to Remove an ORACLE_HOME from inventory.xml Using runInstaller

Related Posts

Oracle

Oracle RAC 12.2 on VMware Workstation — Post 5: Final Validation and Quick Reference

2026-05-11
Read More
Oracle

Oracle RAC 12.2 on VMware Workstation – Post 4: Oracle Database Installation and DBCA

2026-05-11
Read More
Oracle

Oracle RAC 12.2 on VMware Workstation — Post 2: Oracle Linux Configuration and iSCSI

2026-05-11
Read More
Add A Comment
Leave A Reply Cancel Reply

Demo
Follow Me
  • Email
  • GitHub
  • LinkedIn
  • RSS
  • YouTube

INS-06006 – Passwordless SSH Connectivity Not Set Up

2026-02-2614 Views

ORA-29548 — How to Fix “Java System Class Reported” in Oracle Database

2026-03-0510 Views

PRVG-2002 — How to Fix “Encountered Error in Copying File” in Oracle RAC

2026-03-078 Views
Demo
Blogroll
  • oravirt
Execute Step
YouTube LinkedIn RSS
  • Home
  • About
  • Contact
  • RSS
  • English
    • Português (Portuguese (Brazil))
© 2026 ExecuteStep. Designed by ThemeSphere.

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.