oracle completely remove and clean

Oracle database installation will not say here, the Internet should be a lot, but the uninstall oracle database but can not find a more detailed description of the complete uninstall. Many do not uninstall completely, there will be legacy data, affect the subsequent installation. So, if you compile a note before school, when learning of the Oracle database, the contents of which unload part of the database.

We all know that uninstalling an Oracle database on Linux is relatively easy, as long as the installation directory to delete all of it, but in the Windows uninstall the more trouble, it will involve a lot of things. Sometimes even to manually delete, but also may appear some tips to use dll files can not be deleted clean.

All versions of the Oracle database, delete roughly the same. I divided the next, probably divided into eight sections deleted below.

  1. Stop using Oracle services.
  2. Oracle database running the uninstall program
  3. Deleted using Oracle's service.
  4. Delete the Oracle-related registry entries.
  5. Delete the Oracle environment variables
  6. Delete the "Start" menu Oracle directory
  7. Restart the computer
  8. Delete Program Files \ Oracle directory
  9. Remove the Oracle installation directory

1. Stop using Oracle's service

All services disabled oracle services, access to computer management, service, find the beginning of the oracle, right click and select Stop

2. Run the uninstall Oracle database program

Generally run Oracle's own uninstall program, such as the use Universal Installer uninstall tool.

3. Delete using Oracle services.

From the Start menu, find the Universal Installer, run Oracle Universal Installer, click uninstall the product, the product list window, click the Expand All, in addition to OraDb11g_home1, check other items, click Remove, according to the software prompts click Next final complete the uninstall.

4. Remove the registry entries related to Oracle

In the command window, type regedit, open the registry, expand HKEY_LOCAL_MACHINE \ SOFTWARE, find oracle, delete it.

Expand HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services, delete all items beginning oracle.

Expand HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application, delete all the entries that begin with oracle;

Extended Delete (delete the following registry entry is not required), if the installation is not successful and he can put these deleted

In HKEY_CLASSES_ROOT, Delete to Ora, Oracle, Orcl or EnumOra prefix key
to delete HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ MenuOrder \ Start Menu \ Programs all starts with the oracle key.
Delete HKEY_LOCAL_MACHINE \ SOFTWARE \ ODBC \ ODBCINST.INI all keys except the Microsoft ODBC for Oracle registry key contains the Oracle.

5. Delete the Oracle environment variables

Right-click on My Computer -> Properties -> Advanced -> Environment Variables, delete the environment variable ORACLE_HOME, TNS_ADMIN and other environmental variables, delete the path set information about Oracle PATH environment variable medium

6. Remove the "Start" menu Oracle directory

Open Windows Explorer, type in the address bar "% userprofile% \" Start "Menu \ Programs" Enter, delete the installation directory of Oracle

Then to the address bar type "% allusersprofile% \" Start "Menu \ Programs" Enter, delete the installation directory of Oracle

7. Restart the computer

Restart the computer, I will not say it.

8. Delete the Program Files \ Oracle directory

If there is a Program Files \ Oracle directory, delete the Program Files \ Oracle directory.

9. Remove the Oracle installation directory

Remove the Oracle installation directory app and other directories.

Graphic details Reference Source: https://jingyan.baidu.com/article/922554468d4e6b851648f4e3.html

Guess you like

Origin www.cnblogs.com/study-together/p/12080582.html