How To Uninstall / Completely Remove Oracle 11g (client)?
Có thể bạn quan tâm
-
- Home
- Questions
- Tags
- Users
- Companies
- Labs
- Jobs
- Discussions
- Collectives
-
Communities for your favorite technologies. Explore all Collectives
- Teams
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Try Teams for free Explore Teams - Teams
-
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 CollectivesTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsGet 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 518k 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:
Improve this questionOriginal close reason(s) were not resolved
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 11.5k8 gold badges28 silver badges73 bronze badges asked Dec 9, 2011 at 19:32 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
4 Answers
Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) 142Assuming 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 CommunityBot 11 silver badge answered Dec 9, 2011 at 19:54 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
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.configInstead 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.30319Check 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 DBDelete 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
- 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
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> valuesSo 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 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
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".
Not the answer you're looking for? Browse other questions tagged
or ask your own question.- The Overflow Blog
- Even high-quality code can lead to tech debt
- Featured on Meta
- More network sites to see advertising test [updated with phase 2]
- We’re (finally!) going to the cloud!
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 questionsRelated
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 clientHot Network Questions
- Are these stars or noise around Saturn?
- What is Horatio’s role in Hamlet?
- How is Teal'c able to use a rope across the stargate event horizon?
- What would be an effective way to gather client feedback?
- How many hours in the GA world gets you out of "low time pilot" status?
- Why is the TL431 considered highly stable?
- Identifying a story within a black widower's story by Asimov
- Searching Torah for words following an acrostic pattern
- Can you dry clothes by freezing them?
- Why do you want a taut surface on dough?
- How safe are NTA-877 e-bike helmets for real world use?
- In case of a Presidential Pardon covering a period are newly discovered crimes pardoned too?
- Is there just one Zero?
- The Desktop, Downloads and Documents folders have disappeared from the Sidebar
- How to determine the correct value of a continued fraction when solving the associated equation yields multiple solutions?
- How to approach time series forecasting
- Why Are Node Voltages Not Equal in Transformer Circuit with k=1 in LTSpice?
- Regressions in potty-training
- Why is LACP not working between Dell S5224F-ON switches and FortiGate virtual switches (line protocol down, member inactive)?
- The absolute truth paradox
- What’s a good way to practice writing and actually get better over time?
- Tracing light through a house of mirrors
- A book I read around 25 years ago including a salt sea that blinds people, "gods" including two called Ari and Paty
- Why does the Global Positioning System include particular numbers of satellites?
Từ khóa » Gỡ Cài đặt Oracle 11g
-
Làm Thế Nào để Gỡ Cài đặt / Loại Bỏ Hoàn Toàn Oracle 11g (máy ...
-
[vi] Xóa Oracle Database Khỏi Máy Windows. - YouTube
-
Hướng Dẫn Install - Uninstall Oracle Database 11g, 12c
-
Cách Gỡ Bỏ Oracle 11g Trên Windows | Fisama's Weblog
-
Hướng Dẫn Xóa Oracle - Trantrungis
-
How To Uninstall Oracle Database 11g In Just 4 Easy Steps
-
Hướng Dẫn Uninstall Gỡ Bỏ Hoàn Toàn Oracle Database - VinaSupport
-
Uninstall Oracle Database - Oracle Help Center
-
Uninstalling The Oracle 11 Database Software - SAP Help Portal
-
How To Uninstall The Oracle Database 11G - Dualog Support
-
Uninstall Oracle 11g XE From Command Line - Stack Overflow
-
How Do I Completely Remove Oracle 11g? - Super User
-
Uninstall Oracle Database 11g XE On Ubuntu Server 16.04 LTS
-
Uninstalling Oracle 11g (optional) - Veritas SORT