Deinstalling Oracle Grid Home in Oracle 23ai: Step-by-Step Guide

In Oracle 23ai, the procedure for deinstalling an Oracle Home or Grid Infrastructure Home has not changed compared to previous releases. The standard deinstall utility is still used, and the process remains straightforward.

In this article, I will walk through the real procedure I followed to remove an Oracle Grid Home in Oracle 23ai and share the actual execution logs.

1. Environment Overview

In this example:

  • Oracle Version: 23ai
  • Oracle Home to remove:
    /u01/app/23.8.0.25.04
  • Active Grid Home:
    /u01/app/23.26.1.0/grid
  • User: grid
  • Node: exavm02vm3
  • Mode: Local deinstall (-local)
    The -local option removes the Oracle Home only on the current node. It does not modify ASM configuration. Suitable for partial cluster cleanup.

We are deinstalling a non-active Grid home while another Grid home is still in use.

Here is the deinstall log


grid@exavm02vm3:/u01/app/23.8.0.25.04/deinstall/ [+ASM2] ./deinstall -local
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/

############ ORACLE DECONFIG TOOL START ############


######################### DECONFIG CHECK OPERATION START #########################
## [START] Install check configuration ##


Checking for existence of the Oracle home location /u01/app/23.8.0.25.04
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /u01/app/grid
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/23.26.1.0/grid
The following nodes are part of this cluster: exavm02vm3,exavm01vm3
Checking for sufficient temp space availability on node(s) : 'exavm02vm3'

## [END] Install check configuration ##

Traces log file: /u01/app/oraInventory/logs//crsdc_2026-02-03_03-18-51-PM.log

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2026-02-03_03-18-52PM.log

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2026-02-03_03-18-52PM.log


######################### DECONFIG CHECK OPERATION END #########################


####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/23.26.1.0/grid
The following nodes are part of this cluster: exavm02vm3,exavm01vm3
The cluster node(s) on which the Oracle home deinstallation will be performed are:exavm02vm3
Oracle Home selected for deinstall is: /u01/app/23.8.0.25.04
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The home being deconfigured is NOT a configured Grid Infrastructure home (/u01/app/23.26.1.0/grid)
Option -local will not modify any ASM configuration.
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2026-02-03_03-18-48-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2026-02-03_03-18-48-PM.err'

######################## DECONFIG CLEAN OPERATION START ########################
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2026-02-03_03-18-52PM.log
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2026-02-03_03-18-52PM.log

Network Configuration clean config END


Run the following command as the root user or the administrator on node "exavm02vm3".

/u01/app/23.8.0.25.04/crs/install/rootcrs.sh -unlock -crshome /u01/app/23.8.0.25.04 -paramfile "/tmp/deinstall2026-02-03_03-17-39PM/response/deinstall_OraGI23Home1.rsp"

Press Enter after you finish running the above commands

<----------------------------------------



######################### DECONFIG CLEAN OPERATION END #########################


####################### DECONFIG CLEAN OPERATION SUMMARY #######################
The home being deconfigured is NOT a configured Grid Infrastructure home (/u01/app/23.26.1.0/grid)
Oracle Clusterware was successfully unlocked on node "exavm02vm3".
Oracle Clusterware is stopped and de-configured successfully.
#######################################################################


############# ORACLE DECONFIG TOOL END #############

Using properties file /tmp/deinstall2026-02-03_03-17-39PM/response/deinstall_2026-02-03_03-18-48-PM.rsp
Location of logs /u01/app/oraInventory/logs/

############ ORACLE DEINSTALL TOOL START ############





####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2026-02-03_03-18-48-PM.out'
Any error messages from this session will be written to: '/u01/app/oraInventory/logs/deinstall_deconfig2026-02-03_03-18-48-PM.err'

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to exavm02vm3
Setting CLUSTER_NODES to exavm02vm3
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2026-02-03_03-17-39PM/oraInst.loc
Setting oracle.installer.local to true

## [END] Preparing for Deinstall ##

Oracle Universal Installer clean START

Detach Oracle home 'OraGI23Home1' from the central inventory on the local node : Done

Delete directory '/u01/app/23.8.0.25.04' on the local node : Done

The Oracle Base directory '/u01/app/grid' will not be removed on local node. The directory is in use by Oracle Home '/u01/app/23.26.1.0/grid'.

You can find a log of this session at:
'/u01/app/oraInventory/logs/Cleanup2026-02-03_04-13-28PM.log'

Oracle Universal Installer clean END


## [START] Oracle install clean ##


## [END] Oracle install clean ##


######################### DEINSTALL CLEAN OPERATION END #########################


####################### DEINSTALL CLEAN OPERATION SUMMARY #######################
Successfully detached Oracle home 'OraGI23Home1' from the central inventory on the local node.
Successfully deleted directory '/u01/app/23.8.0.25.04' on the local node.
Oracle Universal Installer cleanup was successful.

For complete clean up of Oracle Clusterware software from the system, deinstall the following old clusterware home(s). Refer to Clusterware Install guide of respective old release for details.
    /u01/app/23.26.1.0/grid on nodes : exavm02vm3
Review the permissions and contents of '/u01/app/grid' on nodes(s) 'exavm02vm3'.
If there are no Oracle home(s) associated with '/u01/app/grid', manually delete '/u01/app/grid' and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################


############# ORACLE DEINSTALL TOOL END #############

Run rootcrs.sh as root

During the deconfiguration phase, the tool asks you to run rootcrs.sh as root to complete.

[root@exavm02vm3 ~]# /u01/app/23.8.0.25.04/crs/install/rootcrs.sh -unlock -crshome /u01/app/23.8.0.25.04 -paramfile "/tmp/deinstall2026-02-03_03-17-39PM/response/deinstall_OraGI23Home1.rsp"
Using configuration parameter file: /tmp/deinstall2026-02-03_03-17-39PM/response/deinstall_OraGI23Home1.rsp
The log of current session can be found at:
  /u01/app/oraInventory/logs/crsunlock_exavm02vm3_2026-02-03_04-13-19PM.log

2026/02/03 16:13:23 CLSRSC-347: Successfully unlock /u01/app/23.8.0.25.04

Published by dbaliw

Highly experienced Oracle Database Administrator and Exadata Specialist with over 15 years of expertise in managing complex database environments. Skilled in cloud technologies, DevOps practices, and automation. Certified Oracle Cloud Infrastructure Architect and Oracle Certified Master with a strong background in performance tuning, high availability solutions, and database migrations.

Leave a comment