oracle software deinstall
Starting with Oracle Database 12c Release 1 (12.1.0.2), the roothas.sh script replaces the roothas.pl script in the Oracle Grid Infrastructure home.
[oracle@Ram dbhome_1]$ cd deinstall/ [oracle@Ram deinstall]$ ls bootstrap_files.lst deinstall deinstall.xml readme.txt sshUserSetup.sh bootstrap.pl deinstall.pl jlib response utl
The most common method of running the deinstallation tool is to use the version installed in the Oracle home being removed.
The deinstallation tool determines the software configuration for the local Oracle home, and then provides default values at each prompt.
You can either accept the default value, or override it with a different value.
If the software in the Oracle_home is not running (for example, after an unsuccessful installation), then the deinstallation tool cannot determine the configuration, and you must provide all the configuration details either interactively or in a response file.
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.
For example, do not run the deinstallation tool from the Oracle Database 12.2 installation media to remove Oracle software from an existing 11.2.0.4 Oracle home.
[oracle@Ram deinstall]$ ./deinstall Checking for required files and bootstrapping ... Please wait ... Location of logs /tmp/deinstall2019-01-17_07-49-52PM/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/12.2.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-01-17_07-49-52PM/logs/netdc_check2019-01-17_07-51-25-PM.log Network Configuration check config END Database Check Configuration START Database de-configuration trace file location: /tmp/deinstall2019-01-17_07-49-52PM/logs/databasedc_check2019-01-17_07-51-27-PM.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 []: Database Check Configuration END Oracle Configuration Manager check START OCM check log file location : /tmp/deinstall2019-01-17_07-49-52PM/logs//ocm_check8100.log Oracle Configuration Manager check END ############# DECONFIG CHECK OPERATION END ###################### ############## DECONFIG CHECK OPERATION SUMMARY #################### Oracle Home selected for deinstall is: /u01/app/oracle/product/12.2.0/dbhome_1 Inventory Location where the Oracle home registered is: /u01/app/oraInventory 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]: y A log of this session will be written to: '/tmp/deinstall2019-01-17_07-49-52PM/logs/deinstall_deconfig2019-01-17_07-51-16-PM.out' Any error messages from this session will be written to: '/tmp/deinstall2019-01-17_07-49-52PM/logs/deinstall_deconfig2019-01-17_07-51-16-PM.err' ############### DECONFIG CLEAN OPERATION START ###################### Database de-configuration trace file location: /tmp/deinstall2019-01-17_07-49-52PM/logs/databasedc_clean2019-01-17_07-51-59-PM.log Network Configuration clean config START Network de-configuration trace file location: /tmp/deinstall2019-01-17_07-49-52PM/logs/netdc_clean2019-01-17_07-51-59-PM.log 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 : /tmp/deinstall2019-01-17_07-49-52PM/logs//ocm_clean8100.log Oracle Configuration Manager clean END ################### DECONFIG CLEAN OPERATION END ###################### ################## DECONFIG CLEAN OPERATION SUMMARY ################### Cleaning the config for CCR As CCR is not configured, so skipping the cleaning of CCR configuration CCR clean is finished ####################################################################### ############# ORACLE DECONFIG TOOL END ############# Using properties file /tmp/deinstall2019-01-17_07-49-52PM/response/deinstall_2019-01-17_07-51-16-PM.rsp Location of logs /tmp/deinstall2019-01-17_07-49-52PM/logs/ ############ ORACLE DEINSTALL TOOL START ############ ############# DEINSTALL CHECK OPERATION SUMMARY ##################### A log of this session will be written to: '/tmp/deinstall2019-01-17_07-49-52PM/logs/deinstall_deconfig2019-01-17_07-51-16-PM.out' Any error messages from this session will be written to: '/tmp/deinstall2019-01-17_07-49-52PM/logs/deinstall_deconfig2019-01-17_07-51-16-PM.err' ############## DEINSTALL CLEAN OPERATION START #################### ## [START] Preparing for Deinstall ## Setting LOCAL_NODE to Ram Setting CRS_HOME to false Setting oracle.installer.invPtrLoc to /tmp/deinstall2019-01-17_07-49-52PM/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/12.2.0/dbhome_1' from the central inventory on the local node : Done Delete directory '/u01/app/oracle/product/12.2.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. 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/12.2.0/dbhome_1' from the central inventory on the local node. Successfully deleted directory '/u01/app/oracle/product/12.2.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) 'Ram' at the end of the session. Run 'rm -r /opt/ORCLfmap' as root on node(s) 'Ram' at the end of the session. Run 'rm -r /etc/oratab' as root on node(s) 'Ram' at the end of the session. Review the permissions and contents of '/u01/app/oracle' on nodes(s) 'Ram'. 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@Ram deinstall]$
If the software in the Oracle_home is not running (for example, after an unsuccessful installation), then the deinstallation tool cannot determine the configuration and you must provide all the configuration details either interactively or in a response file.
Catch Me On:- Hariprasath Rajaram Telegram:https://t.me/joinchat/I_f4DkeGfZuxgMIoJSpQZg LinkedIn:https://www.linkedin.com/in/hariprasathdba 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