Deinstall Oracle Software
This article describes how to remove oracle software from a Linux server. There are different methods with which you can remove the Oracle software.
Before deinstalling oracle software, make sure you have deleted the oracle databases (and other services) running from the particular ORACLE_HOME
Using Deinstall Utility
Under your ORACLE_HOME, we get a deinstall utility that you can use to remove the oracle software from your Linux server. This should be your first choice
Using Oracle runInstaller
Remember when you install oracle software, you use runInstaller to perform the oracle installation. The same runInstaller can be used to uninstall oracle software and all associated files. Go to runInstaller location and issue below command
./runInstaller -deinstall -home /u01/app/oracle/product/12.1.0/dbhome_1/
Manual Delete ORACLE_HOME
Sometimes ORACLE software installation gets corrupted and in such case, above deinstallation utilities will not help you to remove oracle software. Use below method to remove the oracle home using Linux commands.
Stop all the oracle databases / processes running from the ORACLE_HOME. Delete ORACLE_HOME
cd $ORACLE_HOME rm -rf *
cd $ORACLE_BASE rm -rf *
Remove oratab file