Permanently delete Oracle software from the Local Machine

Source: Internet
Author: User
Uninstalling an Oracle database is not as simple as deleting other software. Especially for new employees, when deleting a database and re-installing it, it often appears

Uninstalling an Oracle database is not as simple as deleting other software. Especially for new employees, when deleting a database and re-installing it, it often appears

Uninstalling an Oracle database is not as simple as deleting other software. Especially for new employees, when the database is deleted and re-installed, it is often re-installed, some inexplicable errors will be reported, or the installation will not succeed at all when the installation is re-installed. Even if you use the uninstall service that comes with Oracle, some historical traces or folders of the Oracle database are stored in the system, occupying system resources or affecting the normal operation of the system.

Follow these steps to Unmount and delete Oracle:

1. If your database is configured with ASM Automatic Storage Management, you should first Delete the "Cluster Synchronization Services" CSS (Cluster Synchronization Services ). You can delete CSS by typing the following command in the MS-DOS command line and executing: localconfig-delete

2. In the run command box, enter services. msc to run the service dialog box, and stop the five Oracle services.

3. Find the Oracle uninstallation program "Oracle Universal Installer (OUI)", click "Uninstall product", open "product list", and select the Oracle product to be uninstalled, click the "Uninstall" button and click "Confirm Uninstall" to delete the products that have been installed in Oracle.

4. delete the Automatic Storage Management (ASN), and enter the following command in the doscommand: oracle-delete-asmid + asm

5. Run regedit to clean up the Oracle project in the registry:
1) Delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE directory
2) Delete all keys starting with oracle or OraWeb in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services.
3) delete all keys starting with oracle in HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/EventLog/Application.
4) delete all keys prefixed with Ora, Oracle, Orcl, or EnumOra in the HKEY_CLASSES_ROOT directory.
5) delete all keys starting with Oracle in HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Explorer/MenuOrder/Start Menu/Programs.
5) delete all keys containing Oracle except the Microsoft ODBC for Oracle registry key in HKEY_LOCAL_MACHINE/SOFTWARE/ODBC/ODBCINST. INI.

PS: some of the above registration keys may have been deleted and automatically cleared when running the Oracle uninstall program.


6. Delete the Oracle values in the PATH and CLASSPATH environment variables.
7. Delete Oracle-related groups and icons in "Start/program.
8. Delete All Oracle-related directories, including:
1) c: \ Program Files \ Oracle \
2) ORACLE_BASE directory
3) and temporary files in the Temp directory under LocalSetting in Documents and Settings also need to be deleted.

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.