How To Uninstall / Completely Remove Oracle 11g (client)?

Just browsing Stack Overflow? Help us improve your experience. Sign up for research
    1. Home
    2. Questions
    3. Tags
    4. Users
    5. Companies
    6. Labs
    7. Jobs
    8. Discussions
    9. Collectives
    10. Communities for your favorite technologies. Explore all Collectives

  1. Teams

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams.

    Try Teams for free Explore Teams
  2. Teams
  3. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Get early access and see previews of new features.

Learn more about Labs How to uninstall / completely remove Oracle 11g (client)? [closed] Ask Question Asked 12 years, 11 months ago Modified 1 year, 3 months ago Viewed 517k times 80 Closed. This question is not about programming or software development. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 2 years ago.

The community reviewed whether to reopen this question last year and left it closed:

Original close reason(s) were not resolved

Improve this question

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

Running deinstall.bat doesn't work.

Edit: Further discussion related to why this question was closed and deleted: Why was this question related to uninstalling the Oracle Database Client deleted?

Share Improve this question Follow edited Aug 18, 2023 at 16:03 Amira Bedhiafi's user avatar Amira Bedhiafi 11.5k8 gold badges28 silver badges72 bronze badges asked Dec 9, 2011 at 19:32 Yves's user avatar YvesYves 12.5k16 gold badges54 silver badges58 bronze badges 1
  • 1 Covered at Super User: superuser.com/questions/256762/… – matt wilkie Commented Sep 28, 2016 at 17:48
Add a comment |

4 Answers 4

Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 142

Assuming a Windows installation, do please refer to this:

http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php

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

Calling additional attention to some great comments that were left here:

  • Be careful when following anything listed here (above or below), as doing so may remove or damage any other Oracle-installed products.
  • For 64-bit Windows (x64), you need also to delete the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE key from the registry.
  • Clean-up by removing any related shortcuts that were installed to the Start Menu.
  • Clean-up environment variables:
    • Consider removing %ORACLE_HOME%.
    • Remove any paths no longer needed from %PATH%.

This set of instructions happens to match an almost identical process that I had reverse-engineered myself over the years after a few messed-up Oracle installs, and has almost always met the need.

Note that even if the OUI is no longer available or doesn't work, simply following the remaining steps should still be sufficient.

(Revision #7 reverted as to not misquote the original source, and to not remove credit to the other comments that contributed to the answer. Further edits are appreciated (and then please remove this comment), if a way can be found to maintain these considerations.)

Share Improve this answer Follow edited May 23, 2017 at 11:47 Community's user avatar CommunityBot 11 silver badge answered Dec 9, 2011 at 19:54 ziesemer's user avatar ziesemerziesemer 28.6k9 gold badges88 silver badges95 bronze badges 7
  • 4 For 64 bit windows, you need also to delete HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE key – itsho Commented Jul 24, 2013 at 10:55
  • 3 First, be careful when deleting "C:\Program Files\Oracle", it may contain other products too. Second, you may need to clean your start menu manually ;) – user123444555621 Commented Feb 27, 2014 at 14:54
  • 2 Don't forget to clean up your path settings and remove the ORACLE_HOME environment variable. – Brad Bruce Commented Apr 12, 2014 at 14:52
  • 1 its mildly annoying that you used / instead of \ :P – gbtimmon Commented Apr 25, 2014 at 13:58
  • 1 @gbtimmon - I assume you are referring to the registry paths. I had simply quoted as-was from the original article. Regardless, they are fixed now. :-) – ziesemer Commented Apr 25, 2014 at 17:55
| Show 2 more comments 11

There are some more actions you should consider:

  • Remove Registry Entries for MS Distributed Transaction Coordinator (MSDTC)

Note: on the Internet I found this step only at a single (private) page. I don't know if it is required/working or if it breaks anything on your PC.

  • Open Regedit

  • Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\MSDTC\MTxOCI

  • Add an x before each string for OracleOciLib, OracleSqlLib, and OracleXaLib

  • Navigate to HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\MSDTC\MTxOCI

  • Add an x before each string for OracleOciLib, OracleSqlLib, and OracleXaLib

    Otherwise these files, if they exist, will still be in use next time you reboot, and unable to be deleted.

  • Remove environment variable ORACLE_HOME, ORACLE_BASE, TNS_ADMIN, NLS_LANG if exist

Check also Oracle doc to find all Oracle related environment variables, however apart from variables listed above they are very rarely used on Windows Client: Oracle Environment Variables

  • Unregister oci.dll

    • Open a command line window (Start Menu -> Run... -> cmd)

    • Enter regsvr32 /u oci.dll, resp. %windir%\SysWOW64\regsvr32 /u oci.dll

    • In some cases the file %ORACLE_HOME%\bin\oci.dll is locked and you cannot delete it. In such case rename the file (e.g. to oci.dll.x) and reboot the PC, afterwards you can delete it.

  • Remove Oracle .NET assemblies from Global Assembly Cache (GAC). You do this typically with the gacutil utility, if available on your system. Would be like this:

    gacutil /u Policy.10.1.Oracle.DataAccess gacutil /u Policy.10.2.Oracle.DataAccess gacutil /u Policy.1.102.Oracle.DataAccess gacutil /u Policy.1.111.Oracle.DataAccess gacutil /u Policy.2.102.Oracle.DataAccess gacutil /u Policy.2.111.Oracle.DataAccess gacutil /u Policy.2.112.Oracle.DataAccess gacutil /u Policy.2.121.Oracle.DataAccess gacutil /u Policy.2.122.Oracle.DataAccess gacutil /u Policy.4.112.Oracle.DataAccess gacutil /u Policy.4.121.Oracle.DataAccess gacutil /u Policy.4.122.Oracle.DataAccess gacutil /u Oracle.DataAccess gacutil /u Oracle.DataAccess.resources gacutil /u Policy.4.121.Oracle.ManagedDataAccess gacutil /u Policy.4.122.Oracle.ManagedDataAccess gacutil /u Oracle.ManagedDataAccess gacutil /u Oracle.ManagedDataAccess.resources gacutil /u Oracle.ManagedDataAccessDTC gacutil /u Oracle.ManagedDataAccessIOP gacutil /u Oracle.ManagedDataAccess.EntityFramework
    • Entry System.Data.OracleClient should not be removed, this one is installed by Microsoft - not an Oracle component!
  • Instead of gacutil /u ... you can also use OraProvCfg /action:ungac /providerpath:... if OraProvCfg is still available on your system. You may find it at %ORACLE_HOME%\odp.net\managed\x64\OraProvCfg.exe.

  • With a text editor, open XML Config file %SYSTEMROOT%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config and delete branch <oracle.manageddataaccess.client>, if existing.

  • Do the same with:

    %SYSTEMROOT%\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config %SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\Config\machine.config %SYSTEMROOT%\Microsoft.NET\Framework64\v4.0.30319\Config\web.config %SYSTEMROOT%\Microsoft.NET\Framework\v4.0.30319\Config\web.config

    Instead of editing the XML Config file manually you can also run (if OraProvCfg.exe is still available on your system):

    %ORACLE_HOME%\odp.net\managed\x64\OraProvCfg.exe /action:unconfig /product:odpm /frameworkversion:v4.0.30319 %ORACLE_HOME%\odp.net\managed\x86\OraProvCfg.exe /action:unconfig /product:odpm /frameworkversion:v4.0.30319 %ORACLE_HOME%\odp.net\managed\x64\OraProvCfg.exe /action:unconfig /product:odp /frameworkversion:v4.0.30319 %ORACLE_HOME%\odp.net\managed\x86\OraProvCfg.exe /action:unconfig /product:odp /frameworkversion:v4.0.30319
  • Check following Registry Keys and delete them if existing

    HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\ODP.Net HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\ODP.Net HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\Oracle.ManagedDataAccess HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\Oracle.ManagedDataAccess.EntityFramework6 HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\odp.net.managed HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\Oracle.DataAccess.EntityFramework6\ HKLM\SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\ODP.Net HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\ODP.Net HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\Oracle.ManagedDataAccess HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\Oracle.ManagedDataAccess.EntityFramework6 HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\odp.net.managed HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\AssemblyFoldersEx\Oracle.DataAccess.EntityFramework6\ HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\Oracle Data Provider for .NET, Managed Driver HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\Oracle Data Provider for .NET, Unmanaged Driver HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\Oracle Provider for OLE DB
  • Delete the Inventory folder, typically C:\Program Files\Oracle\Inventory and C:\Program Files (x86)\Oracle\Inventory

  • Delete temp folders %TEMP%\deinstall\, %TEMP%\OraInstall\, %TEMP%\OraInstall\ and %TEMP%\oraremservicev2 (e.g %TEMP%\CVU_11.1.0.2.0_domscheit) if existing.

  • Delete service OracleRemExecServiceV2 and Oracle%ORA_HOME_NAME%MTSRecoveryService

    sc stop OracleRemExecServiceV2 sc delete OracleRemExecServiceV2 rmdir %TEMP%\oraremservicev2 /S /Q sc stop Oracle%ORA_HOME_NAME%MTSRecoveryService sc delete Oracle%ORA_HOME_NAME%MTSRecoveryService
Share Improve this answer Follow edited Jul 6, 2023 at 9:52 answered Oct 14, 2015 at 7:46 Wernfried Domscheit's user avatar Wernfried DomscheitWernfried Domscheit 59k10 gold badges89 silver badges123 bronze badges 6
  • To remove items from the GAC, you might need to use gacutil.exe which comes with visual Studio. 'gacutil /u Oracle.DataAccess' for example. – scott-pascoe Commented Apr 4, 2017 at 18:06
  • If you couldn't find GAC , follow this – Gokul Commented Apr 14, 2017 at 12:56
  • Also delete oracle* and policyOracle folders from "C:\Windows\Microsoft.NET\assembly\GAC_32" and "C:\Windows\Microsoft.NET\assembly\GAC_64". – Gokul Commented Apr 14, 2017 at 12:59
  • Also delete OraInstall* folders from "C:\Users\<user>\AppData\Local\Temp" – Gokul Commented Apr 14, 2017 at 13:43
  • @Gokul, better write: delete from folder %TEMP% which can point to different folder. – Wernfried Domscheit Commented Apr 14, 2017 at 15:58
| Show 1 more comment 7

Do everything suggested by ziesemer.

You may also want to remove from the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\<any Ora* drivers> keys HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers<any Ora* driver> values

So they no longer appear in the "ODBC Drivers that are installed on your system" in ODBC Data Source Administrator

Share Improve this answer Follow edited Oct 26, 2015 at 1:20 answered Dec 4, 2014 at 5:16 ranni rabadi's user avatar ranni rabadiranni rabadi 3244 silver badges9 bronze badges 2
  • Don't forget the 32 bit entry on a 64 bit Windows: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\... – Wernfried Domscheit Commented Oct 14, 2015 at 7:20
  • 4 Be careful with HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\Microsoft ODBC for Oracle. This driver is provided by Microsoft, i.e. part of your Windows installation. When you remove it you will not get it back when you make a new Oracle Client installation. – Wernfried Domscheit Commented Dec 23, 2015 at 7:32
Add a comment | 2

Do everything suggested by ziesemer.

You may also want to :

  • Stop the Oracle-related services (before deleting them from the registry).
  • In the registry, look not only for entries named "Oracle" but also e.g. for "ODP".
Share Improve this answer Follow answered May 5, 2015 at 8:18 Pascal Sartoretti's user avatar Pascal SartorettiPascal Sartoretti 815 bronze badges Add a comment | Highly active question. Earn 10 reputation (not counting the association bonus) in order to answer this question. The reputation requirement helps protect this question from spam and non-answer activity.

Not the answer you're looking for? Browse other questions tagged or ask your own question.

  • The Overflow Blog
  • Your docs are your infrastructure
  • Featured on Meta
  • More network sites to see advertising test [updated with phase 2]
  • We’re (finally!) going to the cloud!
  • Call for testers for an early access release of a Stack Overflow extension...

Linked

172 The provider is not compatible with the version of Oracle client 53 BadImageFormatException. This will occur when running in 64 bit mode with the 32 bit Oracle client components installed 8 Got "INS-35075: The specified SID is already in use" error in Oracle, how to fix it? 5 I cant install oracle 12c R2 [20802] 4 Connecting to Oracle Database through Excel 2 Why Oracle Database XE 18c is not installing in windows 10? 0 Unable to uninstall Oracle 11g Database Express Edition 1 I have multiple tnsnames.ora files in my client machine. How to select one correct file in environment variables? 2 Oracle ODBC connection failure (using oracle's stock ODBC drivers) 3 VBA ODBC Oracle Specified driver could not be loaded due to system error 193: (Oracle in instant client_11_2, C:\...\SQORA32.dll)) See more linked questions 1370 How do I limit the number of rows returned by an Oracle query after ordering? 299 How to connect to Oracle using Service Name instead of SID 1 How can I completely uninstall oracle 11g? 0 Unable to uninstall Oracle 11g Database Express Edition 206 How do I turn off Oracle password expiration? 422 Oracle: If Table Exists 95 How to create a new schema/new user in Oracle Database 11g? 1 Application that will be connect through oracle 11g and 10g client 76 ORA-01017 Invalid Username/Password when connecting to 11g database from 9i client

Hot Network Questions

  • How to say "Each one of the following" in German?
  • How can I avoid overusing her/she or the character name when describing character action
  • Shell Script to Normalize the data
  • How to evenly pad columns to make a table fit a specified width
  • How do I remove a hat from my horse?
  • I can't put a plug into a leviton GFCI new outlet
  • arXiv - is it possible to upload there an abstract and only within a week the text itself?
  • How to identify unsafe trees for climbing stand?
  • Sorites paradox and emergence
  • testing for a correlation between a real number and percentage accuracy
  • I am the owner of an image. I published it in Unsplash. Am I allowed to upload that same image to other sites?
  • Counting birds outside my house
  • Question on Lorentzian geometry
  • Meaning of "I love my love with an S—" in Richard Burton's "Arabian Nights"
  • Is there a cryptographic method that can only decrypt for a certain range of seeds?
  • If the hard problem of consciousness is unanswerable, is it a hard problem or just a bad question?
  • How to attribute authorship to personal non-academic friend who made significant contributions
  • Integrate function involving Mod[]
  • A novel about Earth crossing a toxic cloud of cosmic size
  • Group cohomology valued in a bimodule
  • What would T-Rex cavalry be used for?
  • p column type stops compilation in RevTeX
  • Rational divisors on Calabi–Yau threefolds
  • Why is a pure copper cathode necessary in the electrolytic refining of copper?
more hot questions

Từ khóa » Cách Gỡ Cài đặt Oracle 11g