Main Tutorials

How to Uninstall Oracle Database 19c on Windows

To uninstall Oracle database on Windows, we have to delete the all the related Ora* registry keys, files and folders manually.

P.S Tested with Oracle database 19c on Windows 10

Note
I can’t find any uninstaller to uninstall the Oracle database automatically?

1. Stop Oracle* services

Press Windows key, type services, stop all Oracle related services.

Oracle services

2. Delete Oracle* registry keys

Press Windows key, type regedit, delete the following Windows registry keys if it exists. :

2.1 HKEY_LOCAL_MACHINE/SOFTWARE/Oracle*

Oracle registry keys

2.2 HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Oracle* (64-bits Windows)

Oracle registry keys

2.3 HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Oracle*

Oracle registry keys

Reboot Windows.

3. Delete Oracle* folders.

Delete the following Oracle* folders and files if it exists.

  • C:\Oracle or ORACLE_BASE
  • C:\Program Files\Oracle
  • C:\Program Files (x86)\Oracle
  • C:\ProgramData\Microsoft\Windows\Start Menu\Programs\ Oracle-related folders.
  • C:\Users Oracle-related folders.

Empty C:\temp and recycle bin.

Done. The Oracle database is uninstalled from the Windows completely.

References

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
11 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Andrei Baidauz
4 years ago

Thank you for this post!!! Oracle Database is a big SHIT and absolutely NOT user friendly!!!

Ricardo
3 years ago
Reply to  Andrei Baidauz

Try MS Access, that should work better for you.

arturo
3 years ago
Reply to  Andrei Baidauz

jajajaja bro me dio mucha risa lo siento XD

Kay
3 years ago

Thanks for the post it really helped me after several days of trying to uninstall. Can you please suggest any database that is better and user friendly than oracle?

Pal Jim
4 years ago

This is a very useful guide, thanks for sharing this.

There is also the deinstall command (https://docs.oracle.com/en/database/oracle/oracle-database/19/cwlin/oracle-deinstallation-tool-deinstall.htm) however you might still need to delete some entries from the registry.

Just one concern though : I don’t think it’s a good idea to just delete every Ora* file, especially if you have more oracle products installed, like e.g. a standalone db client. In any case, it might be better to highlight the need to backup the registry before deleting all these files. It might be a non-brainer standard practice for most users, but I am sure some less experienced devs will use this guide and end up editing their registry without knowing there is no warning, no ‘undo’ option, no automatic backups.

Tripple Hope Watemu
2 years ago

Best tutorial i have ever meet on uninstalling oracle

Mohammed
2 years ago

thanks man!!

Ricardo
3 years ago

Yo tuve que borrar C:\Windows\ServiceProfiles\Oracle*

Saludos.

Ricardo
3 years ago
Reply to  Ricardo

Again delete all oracle local groups. From windows 10, into cmd as administrator, run “net local group”.

This list all local groups, then execute a “net localgroup <ORACLE_****> /delete” for each oracle local group listed.

Saludos!

Eman
3 years ago

Excellent walk through my friend! One to rule them all. I enjoyed your instructions very much and laughed at this part:
“Empty C:\temp and recycle bin.
Done. The Oracle database is uninstalled from the Windows completely.”
—Seems like, now beat the horse again. Make sure it’s dead.

Samyak
1 year ago

After rebooting my windows laptop, it got crashed🥲 , pls help me to restore everything back.