Oracle Uninstall
Version 12.2

General Information
Library Note Morgan's Library Page Header
ACE Director Alum Daniel Morgan, founder of Morgan's Library, is scheduling complimentary technical Workshops on Database Security for the first 30 Oracle Database customers located anywhere in North America, EMEA, LATAM, or APAC that send an email to Request a Workshop for your organization today.
Linux: Oracle Enterprise or RedHat
-- connect as root
su -


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 will need a full 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 sysbackup group

groupdel sysbackup

-- drop the sysdg group

groupdel sysdg

-- drop the syskm group
groupdel syskm

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

Related Topics
Linux Oracle Install
What's New In 21c
What's New In 23c

Morgan's Library Page Footer
This site is maintained by Dan Morgan. Last Updated: This site is protected by copyright and trademark laws under U.S. and International law. © 1998-2023 Daniel A. Morgan All Rights Reserved