When using Oracle, we often encounter some problems that cause us to have to uninstall or reinstall the Oracle database. However, uninstalling the Oracle database is a headache. If it is not correctly uninstalled, it may cause you to have to reinstall the system to completely uninstall oracle. After many practices, including reinstalling the system, we can now basically complete Oracle uninstallation. We will summarize the entire uninstallation process for future reference.
1. Stop all Oracle services
2. Use the uninstall tool provided by Oracle for OracleProgramDetach
3. Modify the registry and delete registration information related to Oracle:
(1) HKEY_LOCAL_MACHINE \ SOFTWARE \ oracle
(2) The Oracle service HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services finds Oracle-related services. There may also be multiple currentcontrolsets that try to delete Oracle services under other registration items.
(3) Items starting with Oracle are found under the Oracle Event Log HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application and deleted.
4. deleting the Oracle system directory c: \ Program Files \ oracle is automatically generated during use. Generally, Oracle is installed on the d disk, however, this directory still appears in disk C and needs to be deleted manually.
5. this step is not necessary to delete the Oracle environment variables. If the uninstall tool is successfully run in step 1, the uninstall tool will delete the relevant information in the environment variables, but to ensure correct deletion, we recommend that you check the environment variables again, mainly the PATH variable in the environment variables and remove the Oracle variable values.
6. after the system is restarted, it is very important to delete the Oracle Home Directory D:/oracle. If you delete D:/Oracle directly, an error is reported. You must restart the computer, the system automatically deletes the installation directory.