Perfect Uninstall Oracle Database _oracle

Source: Internet
Author: User

Recently because to write a project interface, the need to remotely connect the Oracle database, just at the beginning because I installed a local MySQL, so used to connect the local MySQL, the interface is generally finished in Tomcat test under, also can run through, but later to change the database, So you want to install a local Oracle test, this installation is an afternoon to take off a night ah, so to share this history of blood and tears. Students who have installed Oracle believe that they have uninstalled Oracle (this is a very bad thing to say, but it doesn't seem strange to anyone who really does it), basically every time you install Oracle, it becomes very important to uninstall Oracle at will. Because the uninstall is not clean will cause the next installation is still unsuccessful. Don't talk nonsense, go straight up the steps.

Right-click Computer –> Manage –> services and application –> services, and deactivate all Oracle-related services (beginning with Oracle, such as ORACLEDBCONSOLEORCL).

Start –> All Programs –>oracle–>oracle Install products –>universal Installer, after the "Welcome" interface starts, uninstall the product –> expand oradb11g_home1– under the Oracle home directory > Check Oracle Database 11g11.–> Delete –> Select "Yes" in the pop-up confirmation window. When the uninstall is complete, select Close in the Product List interface that pops up, and then select Cancel in the Welcome interface to exit the interface.

Click Uninstall Product, or click on the installed product.

Remember to select the Oracle Database 11g folder, not the home, and then click Yes

Start –> Enter regedit in the Search field and enter the registry

(1) Select Hkey_local_machine\software\oracle, press del key to delete this entry
(2) Select HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services, scroll this list, delete all Oracle portals (keys that begin with Oracle)//This is all service in the service
(3) Select Hkey_local_machine\system\currentcontrolset\services\eventlog\application and remove all Oracle portals.
(4) Delete all keys in the HKEY_CLASSES_ROOT directory that are prefixed by Ora or Oracle.

Computer –> Properties –> advanced system Settings –> advanced –> environment variables, deleting environment variables classpath and the settings for Oracle in path.
(This is important, I installed the time is a successful installation, and then use the Plsql to configure an environment variable, and then continue to connect not, and then look at Oracle or install the wrong, and then forget to uninstall the configuration of the Oracle information of the PATH variable deleted, Then it causes a series of errors)

Delete all Oracle-related directories (if deleted, restart the computer and then delete it) includes:

1) C:\Program files\oracle directory.
2 Oracle installation directory, such as D:\app
3) C:\WINDOWS\system32\config\systemprofile\Oracle directory.
4) C:\ user \ Username \oracle

The last step, after unloading, you must restart the computer, or uninstall is not clean, the next time the installation of the same problem.
PS. When fully uninstalled, you can install it at ease.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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