How To Manually Uninstall Oracle Client on Linux
You know how it goes, you try running the uninstall process and no matter how hard you try it just doesn’t go as planned. So, it is time to get the hammer. Well it just happened to be one of those moments with trying to remove a botched Oracle 11g client install on RHEL 6. Needed it removed so a clean install could be performed, but needed to know where all the hiding places were.
First stop any running Oracle processes on the system.
Remove the oraInventory directory, check /etc/oraIns.loc for the location.
$ sudo cat /etc/oraInst.loc inventory_loc=/app/oracle/app/oraInventory inst_group=oinstall
$ sudo rm -rf /app/oracle/app/oraInventory
Next we will need to delete the $ORACLE_HOME. Typically /opt/oracle or /app/oracle maybe ORACLE_HOME.
$ sudo rm -rf /app/oracle
Remove all other traces of Oracle configurations and binaries from the server.
$ sudo rm -f /usr/local/bin/oraenv
$ sudo rm -f /usr/local/bin/coraenv
$ sudo rm -f /usr/local/bin/dbhome
$ sudo rm -f /etc/oraInst.loc
$ sudo rm -f /etc/oratab
$ sudo rm -rf /var/tmp/.oracle
Now you are ready to re-install Oracle or not.
Leave a Reply