As we all know from Oracle 11g onwards we have a separate setup for deinstalling Oracle binaries (ORACLE_HOME). In this article I will just show what Oracle performs when you enter deinstall.bat.

H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall>deinstall -home C:\oracle112\dbhome

Attached are the respective log files spooled at the time of deinstallation found in “Oracle-11.2\win32_11gR2_deinstall\deinstall\logs” location.

Cleanup2011-07-10_05-45-36-PM
databasedc_check27498
databasedc_clean27499
emcadc_check
emcadc_clean
netdc_check27497
netdc_clean27500
ocm_check2543
ocm_clean2543
winprod_cleanup.out

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

######################## CHECK OPERATION START ########################
Install check configuration START

Checking for existence of the Oracle home location C:\oracle112\dbhome
Oracle Home type selected for de-install is: SIDB
Oracle Base selected for de-install is: C:\oracle112
Checking for existence of central inventory location C:\Program Files\Oracle\Inventory

Install check configuration END

Checking Windows and .NET products configuration START

The following Windows and .NET products will be deconfigured from the Oracle home : asp.net,ode.net,odp.net,ntoledb,oramts,oo4o

Checking Windows and .NET products configuration END

Network Configuration check config START

Network de-configuration trace file location: H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\logs\netdc_check27497.log

Specify all Single Instance listeners that are to be de-configured [LISTENER]:
Network Configuration check config END

Database Check Configuration START

Database de-configuration trace file location: H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\logs\databasedc_check27498.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 [ORCL]:
###### For Database 'ORCL' ######

Specify the type of this database (1.Single Instance Database|2.Oracle Restart Enabled Database) [1]: 
Specify the diagnostic destination location of the database [C:\oracle112\diag\rdbms\orcl]: 
Specify the storage type used by the Database ASM|FS []:FS
Specify the list of directories if any database files exist on a shared file system. If 'ORCL' subdirectory is found, then it will be deleted. Otherwise, the specified directory will be deleted. Alternatively, you can specify list of database files with full path [ ]:
Specify the flash recovery area location, if it is configured on the file system. If 'ORCL' subdirectory is found, then it will be deleted. []:
Specify the database spfile location [ ]:
Database Check Configuration END

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\\logs\emcadc_check.log

Checking configuration for database ORCL
Enterprise Manager Configuration Assistant END
Oracle Configuration Manager check START
OCM check log file location : H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\\logs\\ocm_check2543.log
Oracle Configuration Manager check END

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

####################### CHECK OPERATION SUMMARY #######################
Oracle Home selected for de-install is: C:\oracle112\dbhome
Inventory Location where the Oracle home registered is: C:\Program Files\Oracle\Inventory
The following Windows and .NET products will be deconfigured from the Oracle home : asp.net,ode.net,odp.net,ntoledb,oramts,oo4o
Following Single Instance listener(s) will be de-configured: LISTENER
The following databases were selected for de-configuration : ORCL
Database unique name : ORCL
Storage used : FS
Will update the Enterprise Manager configuration for the following database(s): ORCL
No Enterprise Manager ASM targets to update
No Enterprise Manager listener targets to migrate
Checking the config status for CCR
Oracle Home exists with CCR directory, but CCR is not configured
CCR check is finished
Do you want to continue (y - yes, n - no)? [n]: A log of this session will be written to: 'H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\\logs\deinstall_deconfig2011-07-10_05-41-22-PM.out'
Any error messages from this session will be written to: 'H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\\logs\deinstall_deconfig2011-07-10_05-41-22-PM.err'

######################## CLEAN OPERATION START ########################

Enterprise Manager Configuration Assistant START

EMCA de-configuration trace file location: H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\\logs\emcadc_clean.log

Updating Enterprise Manager Database Control configuration for database ORCL
Updating Enterprise Manager ASM targets (if any)
Updating Enterprise Manager listener targets (if any)
Enterprise Manager Configuration Assistant END
Database de-configuration trace file location: H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\logs\databasedc_clean27499.log
Database Clean Configuration START ORCL
This operation may take few minutes.
Database Clean Configuration END ORCL

Network Configuration clean config START

Network de-configuration trace file location: H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\logs\netdc_clean27500.log

De-configuring Single Instance listener(s): LISTENER

De-configuring listener: LISTENER
Stopping listener: LISTENER
Listener stopped successfully.
Deleting listener: LISTENER
Listener deleted successfully.
Listener de-configured successfully.

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

De-configuring Naming Methods configuration file...
Naming Methods configuration file de-configured successfully.

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

Oracle Configuration Manager clean START
OCM clean log file location : H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\\logs\\ocm_clean2543.log
Oracle Configuration Manager clean END
Removing Windows and .NET products configuration START

Removing Windows and .NET products configuration END
Oracle Universal Installer clean START

Removing service 'OracleOraDb11g_home1ClrAgent' on the local node : Done

Detach Oracle home 'C:\oracle112\dbhome' from the central inventory on the local node : Done

Failed to delete the directory 'C:\oracle112\dbhome\apex\images\flashchart\swf\maps'. The directory is in use.
Failed to delete the directory 'C:\oracle112\dbhome\apex\images\flashchart\swf'. The directory is not empty.
Failed to delete the directory 'C:\oracle112\dbhome\apex\images\flashchart'. The directory is not empty.
Failed to delete the directory 'C:\oracle112\dbhome\apex\images'. The directory is not empty.
Failed to delete the directory 'C:\oracle112\dbhome\apex'. The directory is not empty.
Failed to delete the directory 'C:\oracle112\dbhome'. The directory is not empty.
Delete directory 'C:\oracle112\dbhome' on the local node : Failed <<<<

Delete directory 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle - OraDb11g_home1' on the local node : Done

Removing oracle home 'C:\oracle112\dbhome' from PATH variable on the local node : Done

Delete directory 'C:\Program Files\Oracle\Inventory' on the local node : Done

Delete directory 'C:\Program Files\Oracle' on the local node : Done

Delete Registry key 'HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc' on the local node : Done

Failed to delete the directory 'C:\oracle112\oradata'. The directory is in use.
The Oracle Base directory 'C:\oracle112' will not be removed on local node. The directory is not empty.

Oracle Universal Installer cleanup was successful.

Oracle Universal Installer clean END

Oracle install clean START

Oracle install clean END

Moved default properties file H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\response\deinstall_OraDb11g_home1.rsp as H:\Softwares\Sw\Oracle\Oracle11\Oracle-11.2\win32_11gR2_deinstall\deinstall\response\deinstall_OraDb11g_home1.rsp1

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

####################### CLEAN OPERATION SUMMARY #######################
Updated Enterprise Manager configuration for database ORCL
Successfully de-configured the following database instances : ORCL
Following Single Instance listener(s) were de-configured successfully: LISTENER
Cleaning the config for CCR
As CCR is not configured, so skipping the cleaning of CCR configuration
CCR clean is finished
Removed asp.net configuration
Removed ode.net configuration
Removed odp.net configuration
Removed ntoledb configuration
Removed oramts configuration
Removed oo4o configuration
Successfully removed service 'OracleOraDb11g_home1ClrAgent' on the local node.
Successfully detached Oracle home 'C:\oracle112\dbhome' from the central inventory on the local node.
Failed to delete directory 'C:\oracle112\dbhome' on the local node.
Successfully deleted directory 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Oracle - OraDb11g_home1' on the local node.
Successfully removed oracle home 'C:\oracle112\dbhome' from PATH variable on the local node.
Successfully deleted directory 'C:\Program Files\Oracle\Inventory' on the local node.
Successfully deleted directory 'C:\Program Files\Oracle' on the local node.
Successfully deleted Registry key 'HKEY_LOCAL_MACHINE\Software\Oracle\inst_loc' on the local node.
Oracle Universal Installer cleanup was successful.

Oracle install successfully cleaned up the temporary directories.
#######################################################################

############# ORACLE DEINSTALL & DECONFIG TOOL END #############