适用于 VS 12c 的 Oracle 开发人员工具不适用于 VS 2010

Oracle developer tools for VS 12c not working with VS 2010

我有一个在 VS 2010 中开发的项目,当我尝试更新 edmx 文件时,它根本不起作用。

我已经多次卸载和安装 ODT,但没有任何效果。同时安装 window 也没有检测到 VS 2010 它列出了 VS 2015 和 VS 2017,但根本没有列出 VS 2010。

我可以从 VS 2015 更新 edmx 模型,但是当我从 VS 2010 尝试同样的操作时,它显示如下错误消息

我已经从 web.config 中删除了连接字符串并添加了一个新的数据连接服务器 explorer->Data connections 。

现在没有出现错误,它要求我创建一个新连接(我通过服务器资源管理器创建的连接根本没有列出)并且我在新连接中找不到 Oracle 数据库选项 window 也

VS 2010,2015,2017 安装在我的机器上。

我已经为 VS 2015 安装了 ODTwithODAC 和 ODT 来解决这个问题,但没有成功。

对这个问题有什么想法吗?任何帮助将不胜感激。

我已经通过安装 ODTwithODAC1120320_32bit 版本解决了这个问题 (link)

我遵循的步骤:

  1. 从环境变量路径中删除所有与 oracle 相关的条目
  2. 重启机器
  3. 停止所有以 ora 或 Ora 开头的服务
  4. 运行 regedit.exe 并删除 HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 键。这包含所有 Oracle 产品的注册表项。
  5. 删除注册表以下部分中对 Oracle 服务的任何引用:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Ora* 哪些与 Oracle 相关应该很明显。
  6. 我的机器是 64 位的所以我也从注册表中删除了 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE 键。
  7. 重新启动我的机器
  8. 删除"C:\app"目录(安装时如果你给了其他名字,那么你需要删除它)
  9. 删除 "C:\Program Files\Oracle" 目录。
  10. 清空我的临时目录的内容
  11. 清空我的回收站。

注意:按照步骤1到11我们可以成功卸载任何oracle产品。

Update : 29-03-2019 :

If we have installed ODAC with ODT new versions( 12.2 +) then we need to do couple of other steps to complete the full uninstallation of oracle products

Close all instances of Visual Studio

For Visual Studio 2015:

Please delete registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio.0\Packages{D601BB95-E404-4a8e-9F24-5C1A462426CE}

For Visual Studio 2017 Enterprise:

CD into ( from command prompt)

C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\Common7\IDE

execute:

VSIXInstaller.exe /skuName:Enterprise /skuVersion:15.0 /quiet /admin /uninstall:Oracle.VsDevTools.15.0

For VS2017 Professional:

CD into

C:\Program Files (x86)\Microsoft Visual Studio17\Professional\Common7\IDE

execute:

VSIXInstaller.exe /skuName:Pro /skuVersion:15.0 /quiet /admin /uninstall:Oracle.VsDevTools.15.0

For VS2017 Community:

CD into

C:\Program Files (x86)\Microsoft Visual Studio17\Community\Common7\IDE

execute:

VSIXInstaller.exe /skuName:Community /skuVersion:15.0 /quiet /admin /uninstall:Oracle.VsDevTools.15.0

Note:

Above examples assume that VS2017 is installed at C:\Program Files (x86)\Microsoft Visual Studio17.

If you installed VS2017 into a different location, CD into the appropriate location and then execute the VSIXInstaller.exe command.

更新:2019 年 8 月 2 日

If you have already installed odp.net components then there might be an entry in the machine config. For safe side its better to remove it from there also. Do not remove any item which is starting with System. which is not part of the odac components. ( Example : system.data.oracleclient)

  1. 下载 ODTwithODAC1120320_32bit 并安装。
  2. 如果您对 sqlnet.oratnsnames.ora 有任何更改,请应用它