sometimes we have to uninstall the oracle software, so it essential to know , how to uninstall oracle binaries and software.
If you make any mistakes they can be quite destructive so be careful.
* Uninstall all Oracle components using the Oracle Universal Installer (OUI).
[[email protected] database]$ ./runInstaller
and select installed product and remove all the installed products.
# Delete the files and directories below the $ORACLE_HOME:
# cd $ORACLE_HOME
# rm -Rf *
# cd $ORACLE_BASE
# rm -rf *
# Delete the /etc/oratab file.
hope, this will helps you.
————————————————-OR——————————–
How to Uninstall Oracle 10g On Linux ?
$ORACLE_HOME/bin/emctl stop dbconsole
$ORACLE_HOME/bin/lsnrctl stop
$ORACLE_HOME/bin/isqlplusctl stop
Backup $ORACLE_HOME if necessary (optional)
root> tar -xvf $ORACLE_HOME > /dev/rmt0/bkup
Unintall Steps:
1. run $ORACLE_HOME/bin/localconfig delete
2. rm -rf $ORACLE_BASE/*
3. rm -f /etc/oraInst.loc /etc/oratab
4. rm -rf /etc/oracle
5. rm -f /etc/inittab.cssd
6. rm -f /usr/local/bin/coraenv /usr/local/bin/dbhome /usr/local/bin/oraenv
7.remove the oracle user and the related group(dba,oinstall)