Description:-
You must run the deinstallation tool from the same release to remove Oracle software. Do not run the deinstallation tool from a later release to remove Oracle software from an earlier release.
When you run the deinstall command, if the central inventory (oraInventory) contains no other registered homes besides the home that you are deconfiguring and removing, then the deinstall command removes the following files and directory contents in the Oracle base directory of the Oracle Database installation owner:
- admin
- cfgtoollogs
- checkpoints
- diag
- oradata
- fast_recovery_area
Oracle strongly recommends that you configure your installations using an Optimal Flexible Architecture (OFA) configuration, and that you reserve Oracle base and Oracle home paths for exclusive use of Oracle software. If you have any user data in these locations in the Oracle base that is owned by the user account that owns the Oracle software, then the deinstall command deletes this data.
The deinstallation tool deletes Oracle Database configuration files, user data, and fast recovery area (FRA) files even if they are located outside of the Oracle base directory path.
DEINSTALLATION STEPS:
[oracle@standby deinstall]$ ./deinstall
Checking for required files and bootstrapping …
Please wait …
Location of logs /tmp/deinstall2019-05-29_12-45-36AM/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.0.0/dbhome_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/deinstall2019-05-29_12-45-36AM/logs/netdc_check2019-05-29_12-46-50AM.log
Specify all Single Instance listeners that are to be de-configured. Enter .(dot) to deselect all. [CLASS,STANDBY]:
Network Configuration check config END
Database Check Configuration START
Database de-configuration trace file location: /tmp/deinstall2019-05-29_12-45-36AM/logs/databasedc_check2019-05-29_12-46-50AM.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 [dbwr]:
###### For Database ‘dbwr’ ######
Single Instance Database
The diagnostic destination location of the database: /u01/app/oracle/diag/rdbms/standby
Storage type used by the Database: FS
Database file location: /u01/app/oracle/admin/standby
Fast recovery area location: Does not exist
Archive Log mode is Enabled, archive logs will be removed.
database spfile location: /u01/app/oracle/product/19.0.0/dbhome_1/dbs/spfiledbwr.ora
The details of database(s) dbwr have been discovered automatically. Do you still want to modify the details of dbwr database(s)? [n]:
Database Check Configuration END
################### DECONFIG CHECK OPERATION END ######################
################ DECONFIG CHECK OPERATION SUMMARY ####################
Oracle Home selected for deinstall is: /u01/app/oracle/product/19.0.0/dbhome_1
Inventory Location where the Oracle home registered is: /u01/app/oraInventory
Following Single Instance listener(s) will be de-configured: CLASS,STANDBY
The following databases were selected for de-configuration. The databases will be deleted and will not be useful upon de-configuration : dbwr
Database unique name : dbwr
Storage used : FS
Do you want to continue (y – yes, n – no)? [n]: y
A log of this session will be written to: ‘/tmp/deinstall2019-05-29_12-45-36AM/logs/deinstall_deconfig2019-05-29_12-46-47-AM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2019-05-29_12-45-36AM/logs/deinstall_deconfig2019-05-29_12-46-47-AM.err’
################### DECONFIG CLEAN OPERATION START #####################
Database de-configuration trace file location: /tmp/deinstall2019-05-29_12-45-36AM/logs/databasedc_clean2019-05-29_12-46-50AM.log
Database Clean Configuration START dbwr
This operation may take few minutes.
Database Clean Configuration END dbwr
Network Configuration clean config START
Network de-configuration trace file location: /tmp/deinstall2019-05-29_12-45-36AM/logs/netdc_clean2019-05-29_12-46-50AM.log
De-configuring Single Instance listener(s): CLASS,STANDBY
De-configuring listener: CLASS
Stopping listener: CLASS
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: CLASS
Listener deleted successfully.
Listener de-configured successfully.
De-configuring listener: STANDBY
Stopping listener: STANDBY
Warning: Failed to stop listener. Listener may not be running.
Deleting listener: STANDBY
Listener deleted successfully.
Listener de-configured successfully.
De-configuring Listener configuration file…
Listener 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
################## DECONFIG CLEAN OPERATION END ######################
################ DECONFIG CLEAN OPERATION SUMMARY ####################
Successfully de-configured the following database instances : dbwr
Following Single Instance listener(s) were de-configured successfully: CLASS,STANDBY
##########################################################
############# ORACLE DECONFIG TOOL END #############
Using properties file /tmp/deinstall2019-05-29_12-45-36AM/response/deinstall_2019-05-29_12-46-47-AM.rsp
Location of logs /tmp/deinstall2019-05-29_12-45-36AM/logs/
############ ORACLE DEINSTALL TOOL START ############
############### DEINSTALL CHECK OPERATION SUMMARY #################
A log of this session will be written to: ‘/tmp/deinstall2019-05-29_12-45-36AM/logs/deinstall_deconfig2019-05-29_12-46-47-AM.out’
Any error messages from this session will be written to: ‘/tmp/deinstall2019-05-29_12-45-36AM/logs/deinstall_deconfig2019-05-29_12-46-47-AM.err’
################### DEINSTALL CLEAN OPERATION START ##################
## [START] Preparing for Deinstall ##
Setting LOCAL_NODE to standby
Setting CRS_HOME to false
Setting oracle.installer.invPtrLoc to /tmp/deinstall2019-05-29_12-45-36AM/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.0.0/dbhome_1’ from the central inventory on the local node : Done
Delete directory ‘/u01/app/oracle/product/19.0.0/dbhome_1’ on the local node : Done
Delete directory ‘/u01/app/oraInventory’ on the local node : Done
The Oracle Base directory ‘/u01/app/oracle’ will not be removed on local node. The directory is not empty. User needs to manually cleanup this directory.
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.0.0/dbhome_1’ from the central inventory on the local node.
Successfully deleted directory ‘/u01/app/oracle/product/19.0.0/dbhome_1’ on the local node.
Successfully deleted directory ‘/u01/app/oraInventory’ on the local node.
Oracle Universal Installer cleanup was successful.
Run ‘rm -r /etc/oraInst.loc’ as root on node(s) ‘standby’ at the end of the session.
Run ‘rm -r /opt/ORCLfmap’ as root on node(s) ‘standby’ at the end of the session.
Run ‘rm -r /etc/oratab’ as root on node(s) ‘standby’ at the end of the session.
Review the permissions and contents of ‘/u01/app/oracle’ on nodes(s) ‘standby’.
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@standby deinstall]$
Thus the Oracle home and database uninstalled successfully.
Catch Me On:- Hariprasath Rajaram
Telegram App: https://t.me/joinchat/I_f4DkeGfZvN1z5wyt_f4w
LinkedIn:https://www.linkedin.com/in/hari-prasath-a65bb19/
Facebook:https://www.facebook.com/HariPrasathdba
FB Group:https://www.facebook.com/groups/894402327369506/
FB Page: https://www.facebook.com/dbahariprasath/?
Twitter: https://twitter.com/hariprasathdba