Search This Blog

Total Pageviews

Saturday, 9 July 2011

Oracle uninstall unix linux

oracle delete on linux
Oracle un-install unix/linux

Manually uninstalling Oracle



1. Stop all oracle processes (shutdown or kill or reboot

or

kill

ps -ef | grep oracle|grep -v grep| awk '{print $2}'


kill -9 ` ps -ef | grep oracle|grep -v grep| awk '{print $2}' ` ----this will kill all oracle process


2. Remove the $ORACLE_HOME using rm -Rf

root> cd $ORACLE_HOME
root> rm -RF *

3. Check the file /etc/oraInst.loc and remove the oraInventory directory structure

4. Remove all these files from system

/tmp/orarun
/etc/init.d/oracle
/etc/pofile.d/oracle*
/etc/oraInst.loc
/etc/oratab
/var/tmp/.oracle (directory)
/usr/local/bin/coraenv
/usr/local/bin/dbhome
/usr/local/bin/oraenv
rm /etc/emtab
rm /var/adm/fillup_templates/syconfig.oracle
rm /etc/init.d/ora*


close all the shell

No comments:

Oracle DBA

anuj blog Archive