The following steps to Deinstall 19c Oracle Home,

1. Stop all the database which are running under this oracle home.
2. Stop all the listeners which are running under this oracle home.
3. Go to below directory and run deinstall command,

[oracle@test ~]$ cd /u01/app/oracle/product/19.3.0.0/db_1
[oracle@test db_1]$ cd deinstall/
[oracle@test deinstall]$ ./deinstall
Checking for required files and bootstrapping …
Please wait …
Location of logs /tmp/deinstall2021-06-11_09-34-39PM/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/db_1
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory

## [END] Install check configuration ##

Network Configuration check config START

Network de-configuration trace file location: /tmp/deinstall2021-06-11_09-34-39PM/logs/netdc_check2021-06-11_09-34-53PM.log

Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: /tmp/deinstall2021-06-11_09-34-39PM/logs/databasedc_check2021-06-11_09-34-53PM.log

Use comma as separator when specifying list of values as input

Specify the list of database names that are configured in this Oracle home [WWIMCSRT]: —- If it is multiple database then enter the database with comma as separator.

###### For Database ‘WWIMCSRT’ ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]: 1
Specify the diagnostic destination location of the database [/u01/app/oracle/diag/rdbms/wwimcsrt]: —– Press Enter if it is the correct Diag destination 
Specify the storage type used by the Database ASM|FS []: ASM —– Enter if it is ASM or FS

Specify if database Archive Mode is Enabled. y/n [n]: y —– Press Enter if the database is in archive mode
Database Check Configuration END

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

####################### DECONFIG CHECK OPERATION SUMMARY #######################
Oracle Home selected for deinstall is: /u01/app/oracle/product/19.3.0.0/db_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : WWIMCSRT
Database unique name : WWIMCSRT
Storage used : ASM
Do you want to continue (y – yes, n – no)? [n]: y —- Press y if the above instructions are correct
A log of this session will be written to: ‘/tmp/deinstall2021-06-11_09-34-39PM/logs/deinstall_deconfig2021-06-11_09-34-52-PM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2021-06-11_09-34-39PM/logs/deinstall_deconfig2021-06-11_09-34-52-PM.err’

######################## DECONFIG CLEAN OPERATION START ########################
Database de-configuration trace file location: /tmp/deinstall2021-06-11_09-34-39PM/logs/databasedc_clean2021-06-11_09-34-53PM.log
Database Clean Configuration START WWIMCSRT
This operation may take few minutes.
Database Clean Configuration END WWIMCSRT

Network Configuration clean config START

Network de-configuration trace file location: /tmp/deinstall2021-06-11_09-34-39PM/logs/netdc_clean2021-06-11_09-34-53PM.log

De-configuring Local Net Service Names configuration file…
Local Net Service Names 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

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

####################### DECONFIG CLEAN OPERATION SUMMARY #######################
Successfully de-configured the following database instances : WWIMCSRT
#######################################################################

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

Using properties file /tmp/deinstall2021-06-11_09-34-39PM/response/deinstall_2021-06-11_09-34-52-PM.rsp
Location of logs /tmp/deinstall2021-06-11_09-34-39PM/logs/

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

 

 

####################### DEINSTALL CHECK OPERATION SUMMARY #######################
A log of this session will be written to: ‘/tmp/deinstall2021-06-11_09-34-39PM/logs/deinstall_deconfig2021-06-11_09-34-52-PM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2021-06-11_09-34-39PM/logs/deinstall_deconfig2021-06-11_09-34-52-PM.err’

######################## DEINSTALL CLEAN OPERATION START ########################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to test
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2021-06-11_09-34-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/db_1’ from the central inventory on the local node : Done

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

Delete directory ‘/u01/app/oraInventory’ on the local node : Done

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

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

Run ‘rm -r /etc/oraInst.loc’ as root on node(s) ‘test’ at the end of the session.

Run ‘rm -r /opt/ORCLfmap’ as root on node(s) ‘test’ at the end of the session.
Run ‘rm -r /etc/oratab’ as root on node(s) ‘test’ at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################

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

[oracle@test deinstall]$

4. Remove the above files as root user to complete the deinstall.

Recent Posts

Start typing and press Enter to search