It sure is easier to remove oracle products than to add them….
The method suggested, using Oracle Universal installer to remove the product, is the safest method, and the only reliable means if you have several different ORACLE-HOMEs on you server.
However, if you want to remove all oracle software from your server, the following method will work:
1. Stop all oracle processes (shutdown, kill or reboot – you are goeng to ditch the installation anyway)
2. Remove the $ORACLE_HOME(s) using rm -rf
3. Check the file /etc/oraInst.loc and remove the oraInventory directory structure.
3. Remove the files that remain scattered around your system:
/etc/oraInst.loc
/etc/oratab
/var/tmp/.oracle (directory)
/usr/local/bin/coraenv
/usr/local/bin/dbhome
/usr/local/bin/oraenv
If you remove these files, you will have a fresh system, in an Oracle point of view.