Manually uninstall oracle in linux

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).

[oracle@testserver 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 ?

Before uninstalling, close all oracle processes if there is any$ORACLE_HOME/bin/shutdown abort
$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)

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: