Как удалить oracle client

Обновлено: 04.07.2024

Sometimes my Oracle database on Windows gets hosed. How do I do a manual uninstall of Oracle?

307k 75 75 gold badges 502 502 silver badges 486 486 bronze badges 25k 22 22 gold badges 75 75 silver badges 106 106 bronze badges Do you want to deinstall the software, or drop the database? Please define "hosed" in this case. You should not have to uninstall or reinstall Oracle.

7 Answers 7

The six-step process to remove all things Oracle from a Windows machine:

A. Delete the Oracle services: In the registry, go to \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete everything that starts with "Oracle"

B. Remove other Oracle stuff from the registry: Go to \HKEY_LOCAL_MACHINE\SOFTWARE\ and delete the key ORACLE

C. Reboot

D. Delete all the Oracle software from the directories where you installed it

E. Delete the Oracle software inventory: Delete the directory C:\Program Files\Oracle . You must do this no matter where you installed your Oracle software - the Oracle installer automatically writes information here.

F. Delete all shortcuts from your Start menu.

G. Remove the Oracle directories from PATH Environment Variable.

To simplify cleanup in the future, I'd strongly recommend you install your Oracle products in one or more virtual machines.


54.3k 25 25 gold badges 162 162 silver badges 272 272 bronze badges 2,907 1 1 gold badge 20 20 silver badges 22 22 bronze badges An additional step that was required for me before step D: stop the Distributed Transaction Coordinator service. What about the Windows accounts that it has created?

Basically, it comes down to:

Remove all you can with the installer. Remove Oracle keys from the registry. Remove the Oracle directories from your computer.

With (of course) the requisite reboots thrown in as required ;-)

40.8k 11 11 gold badges 80 80 silver badges 90 90 bronze badges

One thing to note - if you use the official deinstaller, it does not like the temp folder to have spaces in it. So if you have it set to "Documents and Settings. \temp" it will fail. Use the control panel environment settings button to SET the TEMP folder first.


1,957 2 2 gold badges 18 18 silver badges 24 24 bronze badges

Uninstall Oracle 10g from window 7, Xp

step 1 : Open up the start menu and in program files look for oracle – oraDb10g_home folder, and select oracle installation products – > Universal Installer.

step 2 : Select Deinstall Product, which will pop up new window , select check box oracleDb10g_home1 as shown below. Click on remove button. This will remove oracle.

step 3 : Remove the registration file from Regedit, in order to remove oracle 10g completely. Run Regedit.

Delete the following keys if it exits after the un-installation.

HKEY_CURRENT_USER\SOFTWARE\ORACLE HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\Application\Oracle.oracle HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OracleDBConsole HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Oracle10g_home HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OraclService

step 4 : Now delete the folder where you have installed the software. By default, it is installed in c drive as C:\oracle and from C:\programs files\oracle.

Hence by doing this steps successfully, Oracle 10g is removed completely. If you are having any problem in removing or uninstalling the program,(oracle ) then do comment below, we will look on that.

Always use Oracle Universal Installer to initially remove Oracle components. To avoid installation and configuration problems with new Oracle installations, follow the instructions in this chapter.

Component-specific documentation for individual requirements and restrictions

Stopping Oracle Services on Windows

You must first stop the Oracle Windows services before removing Oracle components or removing any registry entries.

Your Microsoft online help for more information about stopping services

To stop Windows services:

Open the Windows Services utility: From the Start menu, choose Programs , then Administrative Tools , then Services .

If any Oracle services (names begin with Oracle or Ora ) exist and have the status Started , then select each of the services, and click Stop .

Removing Oracle Database Client with Oracle Universal Installer

You first use Oracle Universal Installer to remove Oracle Database Client from the inventory on the computer. Afterwards, you must manually remove the remaining components. This section covers the following topics:

Guidelines for Removing Oracle Database Client with Oracle Universal Installer

Follow these guidelines:

Do not manually remove Oracle Database Client components without first deinstalling with Oracle Universal Installer. An exception is if, during an installation, you exit Oracle Universal Installer using any of the following methods:

Turning off the computer

If the installation does not complete (that is, all required configuration tools do not run at the end)

In these cases, Oracle Universal Installer does not register the installation in its inventory. However, it may have copied files to your Oracle home. Remove these files manually and restart the installation.

If you need to remove an Oracle home manually, first remove the Oracle components with Oracle Universal Installer. An example of removing the Oracle home manually would be by deleting the directory structure with Windows Explorer or the command prompt.

You should not remove the Oracle home manually first because their components remain registered in the Oracle Universal Installer inventory. If you subsequently try to install Oracle in the same home, some or all of the components selected may not be installed, since Oracle Universal Installer will determine the components are already installed.

Procedure for Removing Oracle Database Client with Oracle Universal Installer

Oracle Universal Installer creates Windows services for Oracle components during installation. However, Oracle Universal Installer does not delete all the services created by Oracle Net Configuration Assistant.

To remove components on a Windows computer with Oracle Universal Installer:

Ensure that you first follow the instructions in "Stopping Oracle Services on Windows".

Start Oracle Universal Installer. The start procedure depends on which version of Oracle Database Client you installed.

If you installed the Administrator, Runtime, or Custom versions of Oracle Database Client, then Oracle Universal Installer was also installed. From the Start menu, choose Programs , then Oracle - HOME_NAME , then Oracle Installation Products , then Universal Installer . The Welcome window for Oracle Universal Installer appears.

If you installed the Instant Client version of Oracle Database Client, Oracle Universal Installer was not installed. Instead, run it from your installation media or the installation directory you created for downloaded or copied installation files.

To do so, insert Oracle Database installation media and navigate to the client directory. Alternatively, navigate to the directory where you downloaded or copied the installation files. Then double-click setup.exe to start Oracle Universal Installer. In the Welcome window, choose Install/Deinstall Products .

Click the Deinstall Products button.

The Inventory window appears.

Select the Oracle home you wish to remove. Expand the tree of installed components only if you want to remove selected components of an Oracle home.

For example, if you installed Oracle Database Client with the Runtime option and later installed additional components with the Custom option, then expand the Oracle home component to display all the components installed in the Oracle home.

Check the boxes of components to remove.

The Confirmation window appears.

Click Yes to remove the selected components.

A message may appear indicating that removing some components may cause other components to not function properly.

After the components are removed from your computer, the Inventory window appears without the removed components.

Click Close to close the Inventory window.

Click Cancel to exit Oracle Universal Installer.

Click Yes to confirm that you want to exit.

After Oracle Universal Installer exits, go to the next section to remove the remaining Oracle Database Client components.

Manually Removing the Remaining Oracle Database Client Components

Oracle Universal Installer does not remove all Oracle components. After using Oracle Universal Installer to remove Oracle components, you need to manually remove remaining registry keys, environment variables, Start menu options, and directories.

This section contains these topics:

In rare situations, you might want to correct serious system problems by completely removing Oracle components manually from the computer without first deinstalling with Oracle Universal Installer. Do this only as a last resort, and only if you want to remove all Oracle components from your system.

Removing Oracle Keys from the Registry Editor on Windows

Oracle Universal Installer does not delete all services created by Oracle Net Configuration Assistant. In addition, it does not delete several other registry keys. You must remove any existing registry keys manually by following the instructions in one of the following sections:

Use Microsoft Registry Editor at your own risk. Incorrectly using the Registry Editor can cause serious problems and might require you to reinstall your operating system.

Removing Only the Oracle Net Service Registry Key

To remove only the Oracle Net Service registry entry (if it exists):

Log in as a member of the Administrators group.

Ensure that you first follow the instructions in "Stopping Oracle Services on Windows".

From the Start menu, choose Run , and then enter the following command:

Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete the Oracle HOME_NAME TNSListener registry entry.

When you ran Oracle Universal Installer to deinstall Oracle Database Client, it deleted all other Oracle Net services.

Exit the registry editor.

Restart your computer.

Removing All Oracle Registry Keys

To remove all Oracle registry keys from a computer (if any exist):

These instructions remove all Oracle components, services, and registry entries from your computer. Exercise extreme care when removing registry entries. Removing incorrect entries can break your system. Any database files under ORACLE_BASE \ ORACLE_HOME \ DB_NAME should be deleted only after completing these instructions.

Log in as a member of the Administrators group.

Ensure that you first follow the instructions in "Stopping Oracle Services on Windows".

From the Start menu, choose Run , and enter the following command:

Go to HKEY_CLASSES_ROOT .

Delete keys that begin with the following:

These registry keys do not appear if you installed Instant Client.

Go to HKEY_LOCAL_MACHINE\SOFTWARE .

Delete the ORACLE Group key.

If you installed Oracle Services for Microsoft Transaction Server, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services \Eventlog\Application .

Delete the Oracle Services for Microsoft Transaction Server key.

Go to HKEY_CURRENT_USER\Software .

Delete all Oracle keys, including Oracle- HOME_NAME entries under: Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs .

Exit the Registry Editor.

Restart your computer.

Updating the PATH Environment Variable Path

Check the PATH environment variable and remove any Oracle entries.

Display System in the Control Panel.

Select the Advanced tab and then click Environment Variables .

Select the system variable PATH and edit it to remove any Oracle entries.

For example, remove Oracle entries that contain ORACLE_BASE \ ORACLE_HOME in the Path variable. You may see a Path variable that contains entries similar to the following:

Save any changes and exit System .

Removing Oracle Database Client from the Start Menu

Check the Start menu for any Oracle Database Client entries and remove them.

Follow these steps:

Select Start , then Programs , then Oracle - HOME_NAME .

Right-click Oracle - HOME_NAME , and from the menu, select Delete .

You can also remove Oracle Database Client menu entries by using the following method:

Right click the Start button to display the pop-up menu.

Select the Explore All Users option.

Under Documents and Settings, expand the \Start Menu\Programs folder.

Right-click and delete the Oracle - HOME_NAME folder.

Removing Oracle Database Client Directories

After removing all Oracle Database Client registry keys and restarting the computer, delete any existing Oracle Database Client directories and files.

Using My Computer or Windows Explorer, delete the SYSTEM _ DRIVE :\program files\oracle directory.

Using My Computer or Windows Explorer, delete all ORACLE _ BASE directories on your hard drive.

This chapter describes how to completely remove the Oracle software and configuration files related to the specified Oracle home using the Deinstallation Tool.

The deinstallation tool removes the Oracle Database Client installations.

Oracle recommends that you use the deinstallation tool to remove the entire Oracle home associated with the Oracle Database, Oracle Clusterware, Oracle ASM, Oracle RAC, or Oracle Database client installation. Oracle does not support the removal of individual products or components.

It includes information about the following topics:

You must use the deinstallation tool from the same release to remove Oracle software. Do not run the deinstallation tool from a later release to remove Oracle software from an earlier release. For example, do not run the deinstallation tool from the 12.1.0.1 installation media to remove Oracle software from an existing 11.2.0.4 Oracle home.

5.1 About the Deinstallation Tool

Starting with Oracle Database 12 c Release 1 (12.1), the deinstallation tool is integrated with Oracle Universal Installer (OUI). You can run the deinstallation tool using the setup.exe command with the -deinstall and -home options from the base directory of the Oracle Database, Oracle Database Client, or Oracle Grid Infrastructure installation media.

The Deinstallation Tool is also available as a separate command ( deinstall ) in Oracle home directories after installation. It is located in ORACLE_HOME \deinstall .

The deinstall command uses the information you provide and the information gathered from the software home to create a response file. Alternatively, you can supply a response file generated previously by the deinstall command using the –checkonly option, or by editing the response file template.

The deinstallation tool stops Oracle software, and removes Oracle software and configuration files on the operating system for a specific Oracle home.

If the software in the Oracle home is not running (for example, after an unsuccessful installation), then the deinstallation tool cannot determine the configuration, and you must provide all the configuration details either interactively or in a response file.

Oracle strongly recommends that you configure your installations using an Optimal Flexible Architecture (OFA) configuration, and that you reserve Oracle base and Oracle home paths for exclusive use of Oracle software. If you have any user data in these locations in the Oracle base that is owned by the user account that owns the Oracle software, then the deinstallation tool deletes this data.

In addition, for Oracle Grid Infrastructure installations:

Oracle Automatic Storage Management Cluster File System (Oracle ACFS) must be dismounted and Oracle Automatic Storage Management Dynamic Volume Manager (Oracle ADVM) must be disabled.

If Grid Naming Service (GNS) is in use, then the entry for the subdomain needs to be deleted from DNS by your DNS administrator.

Oracle recommends that you run the deinstallation tool as the Oracle software installation owner. The default method for running the deinstallation tool is from the deinstall directory in the Oracle home as the installation owner:

The command uses the following syntax, where variable content is indicated by italics:

To run the deinstallation tool from the database installation media, use the setup.exe command with the -deinstall option, followed by the -home option to specify the path of the Oracle home you want to remove using the following syntax, where variable content is indicated in italics:

Provide information about your servers as prompted or accept the defaults.

In addition, you can run the deinstallation tool from other locations, or with a response file, or select the following options to run the tool:

Use this flag to indicate the home path of the Oracle home to check or deinstall. To deinstall Oracle software using the deinstall command, located in the Oracle home you plan to deinstall, provide a response file in a location outside the Oracle home, and do not use the -home flag.

If you run the deinstallation tool from the ORACLE_HOME\deinstall path, then the -home flag is not required because the tool knows from which home it is being run. If you run the tool using setup.exe -deinstall from the installation media, then -home is mandatory.

Use this flag to run the deinstallation tool in noninteractive mode. This option requires one of the following:

A working system that it can access to determine the installation and configuration information. The -silent flag does not work with failed installations.

A response file that contains the configuration values for the Oracle home that is being deinstalled or deconfigured.

You can generate a response file to use or modify by running the tool with the -checkonly flag. The tool then discovers information from the Oracle home to deinstall and deconfigure. It generates the response file that you can then use with the -silent option.

You can also modify the template file deinstall.rsp.tmpl , located in the ORACLE_HOME \deinstall\response directory.

Use this flag to check the status of the Oracle software home configuration. Running the deinstallation tool with the -checkonly flag does not remove the Oracle configuration. The -checkonly flag generates a response file that you can then use with the deinstallation tool and -silent option.

-paramfile complete path of input parameter property file

Use this flag to run the deinstallation tool with a response file in a location other than the default. When you use this flag, provide the complete path where the response file is located.

The default location of the response file depends on the location of the deinstallation tool:

From the installation media or stage location: \response

After installation from the installed Oracle home: ORACLE_HOME\deinstall\response .

-params [" name1= value " " name2= value " " name3= value " . . .]

Use this flag with a response file to override one or more values to change it in a response file you have created.

-o complete path of directory for saving response file

Use this flag to provide a path other than the default location where the response file is saved. The default location is \response\deinstall.rsp.tmpl .

The default location of the response file depends on the location of deinstallation tool:

From the installation media or stage location before installation: \response

After installation from the installed Oracle home: ORACLE_HOME /deinstall/response .

-tmpdir complete path of temporary directory

Specifies a non-default location where Oracle Deinstallation Tool writes the temporary files for the deinstallation.

-logdir complete path of log directory

Specifies a non-default location where Oracle Deinstallation Tool writes the log files for the deinstallation.

Use the help option ( -help ) to obtain additional information about the command optional flags.

5.2 Oracle Database Deinstallation Example

If you perform a deinstallation by running the setup.exe command with the -deinstall option from the installation media, then help is displayed unless you enter a -home flag and provide a path to the home directory of the Oracle software to remove from your system.

Use the optional flag -paramfile to provide a path to a response file.

In the following example, the setup.exe command is in the path \ directory_path , where directory_path is the path to the database directory on the installation media, and C:\app\oracle\product\12.1.0\client_1 is the path to the Oracle home which is removed:

The following example uses a response file in the software owner location C:\Documents and Settings\oracle\:

5.3 Example of Running the Deinstallation Command

If you perform a deinstallation by using the deinstall command from the ORACLE_HOME \deinstall folder, then the deinstallation starts without prompting you for an ORACLE_HOME .

Use the optional flag -paramfile to provide a path to a response file.

In the following example, the deinstall command is in the path C: \ app\oracle\product\12.1.0\client_1\deinstall , and it uses a response file in the software owner location C:\Documents and Settings\oracle\ :

5.4 Example of a Deinstallation Response File for an Oracle Database Client

You can perform a deinstallation on a standalone Oracle Database with the -paramfile option to use the values you specify in the response file. The following is an example of a response file, in which the Oracle Database binary owner is oracle , the Oracle Database home (Oracle home) is in the path D:\app\oracle\product\12.1.0\client_1 , the Oracle base (where other Oracle software is installed) is D:\app\oracle , the Oracle Inventory home is C:\Program Files\Oracle\Inventory , and the local node (the node where you are running the deinstallation session from) is client1 :

How to uninstall / completely remove Oracle 11g (client)?

deinstall.bat doesn't work.


11.1k 13 13 gold badges 47 47 silver badges 57 57 bronze badges unbelievable that this question was closed by mods, the post below was extremely helpful. Wish they would widen the community scope to include "anything helpful to developers". This question as 13 upvotes, 3 favorites, 1 reopen vote, and 69,870 views - yet is only 1 vote from being deleted, despite being a valuable resource. If this is considered off-topic for SO, what other site would better be considered on-topic? Would a moderator be able to move this to the correct site - or maybe even protect it, instead of having this knowledge essentially lost forever?

4 Answers 4

Assuming a Windows installation, do please refer to this:

  • Uninstall all Oracle components using the Oracle Universal Installer (OUI).
  • Run regedit.exe and delete the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE key. This contains registry entires for all Oracle products.
  • Delete any references to Oracle services left behind in the following part of the registry: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ora* It should be pretty obvious which ones relate to Oracle.
  • Reboot your machine.
  • Delete the "C:\Oracle" directory, or whatever directory is your ORACLE_BASE.
  • Delete the "C:\Program Files\Oracle" directory.
  • Empty the contents of your "C:\temp" directory.
  • Empty your recycle bin.