| Linux: Oracle Enterprise or RedHat |
-- connect as root
su -
cd $ORACLE_BASE
rm -r *
-- drop the oracle installation
su oracle
lsnrctl stop
sqlplus / as sysdba
SQL> shutdown abort
SQL> exit
-- do not execute this next command for any purpose other than totally removing the Oracle installation and all of its
-- subdirectories. If you do this and make a mistake you are will need a current file system backup to recover
rm -rf /app/oracle
-- drop the oracle user
userdel -r oracle
-- drop the oinstall group
groupdel oinstall
-- drop the operator group
groupdel oper
-- drop the dba group
groupdel dba
-- drop the directory containing the inventory
rm /etc/oratab
rm /etc/oraInst.loc |
| |
| Windows Desktop and Server Operating Systems |
-- connect as local admin
First try to do so with the Oracle Universal Installer. If that does not work then:
shutdown all Oracle related services and change them to disabled.
Remove the Oracle directory and all of its files and subdirectories. If you are blocked due to file locking remove all you can, reboot, and then remove the rest.
Remove the Oracle directory under PROGRAM FILES and all of its subdirectories and files.
Go into the registry and remove My Computer/HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE only if you know what you are doing.
If not, and you mess it up, I am not responsible so be very very careful. |