安装 ODAC (Xcopy) 后无法设置 ODBC

发布于 2024-07-26 11:19:57 字数 502 浏览 4 评论 0原文

我们正在尝试使用 ODAC Xcopy 来最大限度地减少安装 Oracle 11g 客户端的占用空间。 目前,我们使用 Oracle 11g 管理安装(~700mb)。 我尝试过使用 ODAC Xcopy,效果很好。 但是,我现在遇到的唯一问题是,我无法仅通过安装 ODAC Xcopy 在目标系统上设置 ODBC。

安装 ODAC(Windows XP 仅供参考)后,我进入控制面板 --> 管理工具 --> 数据源 (ODBC) --> 系统 DSN --> 添加 --> Microsoft ODBC for Oracle。 我收到以下错误:

“未找到 Oracle(tm) 客户端和网络组件。这些组件由 Oracle 提供,是 Oracle 版本 7.3(或更高版本)客户端软件安装的一部分。您将无法使用此驱动程序直到这些组件安装完毕。”

我尝试编辑注册表并创建与 Oracle 管理安装创建的相同的密钥,但仍然没有成功。 我不知道如何克服这个问题。 有什么建议么? 提前致谢。

We are trying to use ODAC Xcopy to minimize the footprint of installing Oracle 11g Client. Currently, we use the Oracle 11g Admin install (~700mb). I've tried using the ODAC Xcopy, and that works. However, the only issue I now have is that I cannot set up an ODBC on the target system by just installing the ODAC Xcopy.

After installing ODAC (Windows XP fyi), I go to Control Panel-->Admin Tools-->Data Sources (ODBC)-->System DSN-->Add-->Microsoft ODBC for Oracle. I get the following error:

"The Oracle(tm) client and networking components were not found. These components are supplied by Oracle and are part of the Oracle Version 7.3 (or greater) client software installation. You will be unable to use this driver until these components have been installed."

I've tried editing the registry and creating the same keys that the Oracle Admin install creates, but still no luck. I'm not sure how to get past this. Any suggestions? Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟沫凡尘 2024-08-02 11:19:57

难道您不应该使用 Oracle 驱动程序而不是 Microsoft ODBC 驱动程序吗? Microsoft 的驱动程序将需要完整客户端安装附带的 SQLNet 驱动程序。 安装 Oracle ODAC 后应该有一个额外的 ODBC 驱动程序可用。 转到 ODBC 管理器的“驱动程序”选项卡,您应该会看到类似“Oracle in OraClient11g_home1”的内容,版本为 11.something。 这就是您应该用来创建 DSN 的驱动程序。 我只使用了 10g ODBC 安装(可以通过选择“即时客户端”进行最低限度的安装)。

华泰

Shouldn't you be using the Oracle Driver instead of the Microsoft ODBC driver? Microsoft's driver will require the SQLNet drivers which come with your full client install. There should be an additional ODBC driver available after installing the Oracle ODAC. Go to the Drivers tab of the ODBC Adminstrator and you should see something along the lines of "Oracle in OraClient11g_home1" with a version of 11.something. That's the driver you should make your DSN from. I've only used the 10g ODBC install (which could be minimally installed with a selection of "Instant Client").

HTH

葬シ愛 2024-08-02 11:19:57

我建议您坚持使用完整的安装程序,它负责所有配置任务(注册表、DLL 注册等),但使用响应文件进行自定义安装。

从此处获取正确版本的 Oracle 客户端安装程序(不是 ODAC):

32 位:

https://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_client.zip

64 位:

https://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_client.zip

Oracle 客户端位数必须匹配 你的可执行文件。

使用此响应文件执行静默安装(根据需要进行编辑,并在与 setup.exe 相同的目录中另存为client_install.rsp

响应文件

setup.exe" ORACLE_HOME_NAME=OracleClient11201 -waitforcompletion -nowait -silent -responseFile client_install.rsp 

关键配置条目是这样的:

oracle.install.client.customComponents="oracle.rdbms.oci:11.2.0.1.0","oracle.network.client:11.2.0.1.0","oracle.odbc:11.2.0.1.0"

I would advise you stick to the full installer, which takes care of all the configuration tasks (registry, DLL registrations, etc..), but do a custom install using a response file.

Get the correct version of Oracle client installer (not the ODAC) from here:

32-bit:

https://download.oracle.com/otn/nt/oracle11g/112010/win32_11gR2_client.zip

64-bit:

https://download.oracle.com/otn/nt/oracle11g/112010/win64_11gR2_client.zip

the Oracle client bitness has to match your executable's.

Do an silent install using this reponse file (edit as needed and save as client_install.rsp in the same directory as setup.exe)

Response file

setup.exe" ORACLE_HOME_NAME=OracleClient11201 -waitforcompletion -nowait -silent -responseFile client_install.rsp 

The key config entry is this:

oracle.install.client.customComponents="oracle.rdbms.oci:11.2.0.1.0","oracle.network.client:11.2.0.1.0","oracle.odbc:11.2.0.1.0"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文