The following steps to Deinstall 19c Grid Home,

1. Stop all the database which are related to ASM instance.
2. Stop all the listeners which are related to ASM instance.
3. Drop the database or remove the files from ASM.
3. Go to below directory and run deinstall command,

[oracle@test grid]$ cd /u01/app/oracle/product/19.3.0.0/grid
[oracle@test grid]$ cd deinstall/
[oracle@test deinstall]$ ./deinstall
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/oracle/product/19.3.0.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Standalone Server
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home /u01/app/oracle/product/19.3.0.0/grid

## [END] Install check configuration ##

Traces log file: /u01/app/oraInventory/logs//crsdc_2021-06-11_09-09-53-PM.log

Network Configuration check config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_check2021-06-11_09-09-55PM.log

Specify all Oracle Restart enabled listeners that are to be de-configured. Enter .(dot) to deselect all. [LISTENER]:

Network Configuration check config END

Asm Check Configuration START

ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_check2021-06-11_09-09-55PM.log

Automatic Storage Management (ASM) instance is detected in this Oracle home /u01/app/oracle/product/19.3.0.0/grid.
ASM Diagnostic Destination : /u01/app/oracle
ASM Diskgroups :
ASM diskstring : <Default>
Diskgroups will not be dropped
If you want to retain the existing diskgroups or if any of the information detected is incorrect, you can modify by entering ‘y’. Do you want to modify above information (y|n) [n]:  —– Press Enter if the above information is correct.
Database Check Configuration START

Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_check2021-06-11_09-09-55PM.log

Database Check Configuration END

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

####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is: /u01/app/oracle/product/19.3.0.0/grid
Oracle Home selected for deinstall is: /u01/app/oracle/product/19.3.0.0/grid
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Oracle Restart enabled listener(s) will be de-configured: LISTENER
ASM instance will be de-configured from this Oracle home
Do you want to continue (y – yes, n – no)? [n]: y  —– Enter y if the above information is correct.
A log of this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2021-06-11_09-09-52-PM.out’
Any error messages from this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2021-06-11_09-09-52-PM.err’

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /u01/app/oraInventory/logs/databasedc_clean2021-06-11_09-09-55PM.log
ASM de-configuration trace file location: /u01/app/oraInventory/logs/asmcadc_clean2021-06-11_09-09-55PM.log
ASM Clean Configuration START
ASM Clean Configuration END

Network Configuration clean config START

Network de-configuration trace file location: /u01/app/oraInventory/logs/netdc_clean2021-06-11_09-09-55PM.log

De-configuring Oracle Restart enabled listener(s): LISTENER

De-configuring listener: LISTENER
Stopping listener: LISTENER
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.

De-configuring Listener configuration file…
Listener configuration file de-configured successfully.

De-configuring backup files…
Backup files de-configured successfully.

The network configuration has been cleaned up successfully.

Network Configuration clean config END

—————————————->

Run the following command as the root user or the administrator on node “test”.

/u01/app/oracle/product/19.3.0.0/grid/crs/install/roothas.sh -force -deconfig -paramfile “/tmp/deinstall2021-06-11_09-09-39PM/response/deinstall_OraGI19Home1.rsp”   —- Run this command as root user in another session

Press Enter after you finish running the above commands

<—————————————-

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

####################### DECONFIG CLEAN OPERATION SUMMARY #######################
ASM instance was de-configured successfully from the Oracle home
Following Oracle Restart enabled listener(s) were de-configured successfully: LISTENER
Oracle Restart was already stopped and de-configured on node “test”
Oracle Restart is stopped and de-configured successfully.
#######################################################################

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

Using properties file /tmp/deinstall2021-06-11_09-09-39PM/response/deinstall_2021-06-11_09-09-52-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_deconfig2021-06-11_09-09-52-PM.out’
Any error messages from this session will be written to: ‘/u01/app/oraInventory/logs/deinstall_deconfig2021-06-11_09-09-52-PM.err’

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to test
Setting CRS_HOME to true
Setting oracle.installer.invPtrLoc to /tmp/deinstall2021-06-11_09-09-39PM/oraInst.loc
Setting oracle.installer.local to false

## [END] Preparing for Deinstall ##

Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START

Detach Oracle home ‘/u01/app/oracle/product/19.3.0.0/grid’ from the central inventory on the local node : Done

Delete directory ‘/u01/app/oracle/product/19.3.0.0/grid’ on the local node : Done

The Oracle Base directory ‘/u01/app/oracle’ will not be removed on local node. The directory is in use by Oracle Home ‘/u01/app/oracle/product/19.3.0.0/db_1’.

Oracle Universal Installer cleanup was successful.

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 ‘/u01/app/oracle/product/19.3.0.0/grid’ from the central inventory on the local node.
Successfully deleted directory ‘/u01/app/oracle/product/19.3.0.0/grid’ on the local node.
Oracle Universal Installer cleanup was successful.

Review the permissions and contents of ‘/u01/app/oracle’ on nodes(s) ‘test’.
If there are no Oracle home(s) associated with ‘/u01/app/oracle’, manually delete ‘/u01/app/oracle’ and its contents.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

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

[oracle@test deinstall]$

 

Deinstall completed successfully.

Recent Posts

Start typing and press Enter to search