Thoroughly uninstall oracle

Source: Internet
Author: User

Common Oracle Database colleagues know that Oracle often encounters some inexplicable errors, resulting in the database cannot be started or used properly.

After solving these problems, we found the root cause of the problem, that is, when we re-installed the Oracle database, we did not thoroughly uninstall the previously installed Oracle. Next I will discuss in detail how to thoroughly uninstall the Oracle database.

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

In fact, I mainly want to explain how to thoroughly uninstall Oracle on Windows.

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, I cannot unmount it completely during uninstallation. When I install Oracle again, there will be some inexplicable problems, in addition, this method is troublesome and slow. Next I will introduce a method that is faster and can thoroughly uninstall Oracle.

1. Disable all oracle services. You can disable it in the windows Service Manager;

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

The installation directory varies slightly.

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.

Related Article

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.