How to thoroughly uninstall an Oracle database

Source: Internet
Author: User
It is very easy to uninstall Oracle on Linux, that is, to delete all files and folders under the Oracle installation directory.

It is very easy to uninstall Oracle on Linux, that is, to delete all files and folders under the Oracle installation directory.

I. Linux platform

It is very easy to uninstall Oracle on Linux, that is, to delete all files and folders under the Oracle installation directory.

Ii. Windows Platform

On Windows, how to thoroughly uninstall Oracle is described.

Since it is quite troublesome to uninstall Oracle in Windows, if it cannot be fully uninstalled, it may affect future re-installation! The general method of uninstallation is to run the built-in uninstallation program of Oracle. Unfortunately, it cannot be fully uninstalled during uninstallation. When Oracle is re-installed, it may cause inexplicable problems, in addition, this method is cumbersome and slow. The following describes a method that is faster and can be used to thoroughly uninstall Oracle.

1. Disable all oracle services. You can disable it in the Service Manager of windows. (Control Panel-management tools-Service)

2. Open the Registry: regedit open path:

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \

Delete all service names starting with oracle in this path. This key identifies various services registered by Oracle in windows!

3. Open the registry and find the path:

HKEY_LOCAL_MACHINE \ SOFTWARE \ ORACLE

Delete the oracle directory where the software installation information of the Oracle database is registered.

4. Delete the registered oracle Event Log and open the Registry

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application

Delete all items starting with oracle in the registry.

5. Delete the oracle content in the environment variable path.

Right-click my computer Properties Advanced environment variable PATH variable.

Delete the content of Oracle in this value. Note: A Bunch Of Operating System directories are recorded in the path. In windows, directories are separated by semicolons (;). Note the following when deleting directories.

Suggestion: When deleting the Oracle value in the path environment variable, copy all the values to the text editor, find the corresponding Oracle value, and then copy the modified string, paste it to the path environment variable, which is relatively safe.

6. Restart the operating system.

Above 1 ~ After completing the five steps, restart the operating system.

7. After the operating system is restarted, all Oracle-related processes will not be loaded. Delete all data under Oracle_Home. (Oracle_Home refers to the installation directory of the Oracle program)

8. Delete the oracle directory under C: \ Program Files.

(This directory depends on the path of Oracle Installation)

9. Delete oracle items under the Start Menu, such:

C: \ Documents and Settings \ All Users \ Start Menu \ Program \ Oracle-Ora10g

If you do not delete the Oracle-related menu directories under the Start menu, it does not affect the re-installation of Oracle. This menu will be replaced when Oracle is re-installed.

So far, Oracle is completely uninstalled on Windows.

Of course, interested colleagues can also write a small tool to completely delete Oracle.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.