Oracle 即时客户端与 OraOLE DB 提供程序?

发布于 2024-07-06 19:19:57 字数 66 浏览 6 评论 0原文

是否可以将 oracle 即时客户端用于使用 oraoledb 驱动程序连接到 oracle 9i DB 的应用程序。

Is it possible to use oracle instant client for application that use oraoledb driver for connecting to oracle 9i DB.

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

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

发布评论

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

评论(3

反话 2024-07-13 19:19:57

我不相信是这样。 即时客户端常见问题解答指出

Instant Client 可以用来做什么?
Instant Client 可用于运行 OCI、OCCI、ProC、JDBC 和 ODBC 应用程序,而无需安装完整的 Oracle 客户端。 此外,Instant Client还支持SQLPlus。 从 Instant Client 10.2 开始,还可以使用 Instant Client SDK 下载来开发 OCI 和 OCCI 应用程序。


OLE DB 显然没有出现在该列表中。 现在,您可能可以将 Microsoft OLE DB 转 ODBC 提供程序与 Instant Client 和 ODBC 一起使用,但向软件添加附加层从来都不是一件很有趣的事情。

I don't believe so. The Instant Client FAQ states

What can Instant Client be used for?
Instant Client can be used to run your OCI, OCCI, ProC, JDBC, and ODBC applications without installing a full Oracle Client. In addition, Instant Client supports SQLPlus. As of Instant Client 10.2, it is also possible to develop applications for OCI and OCCI using the Instant Client SDK download.

OLE DB is conspicuously absent from that list. Now, potentially, you could use the Microsoft OLE DB to ODBC provider along with the Instant Client and ODBC, but adding additional layers to software is never very fun.

傲性难收 2024-07-13 19:19:57

我认为这是可能的。 查找 Oracle 数据访问组件 (ODAC)。 我已经下载了ODAC XCopy版本,然后:

  1. 在某个tmp文件夹上解压缩
  2. ,以管理员身份打开cmd,
  3. 运行install.bat(我已经运行:install oledb c:\oracle\odac_12_1 odac true

尽管在这个脚本上,命令regsvr32(在我的例子中注册oraoledb12.dll)不起作用。 但在脚本工作后运行此命令。 还要检查 PATH 变量,因为脚本只能在提示会话中更改它。

现在,我可以使用 OraOLEDB.Oracle 提供程序Oracle Instant Client 连接到 Oracle DB。

I think it is possible. Look for Oracle Data Access Components (ODAC). I've downloaded the ODAC XCopy version, then:

  1. unzip on some tmp folder
  2. open cmd as administrator
  3. run install.bat (I've run: install oledb c:\oracle\odac_12_1 odac true)

Despite being on this script, the command regsvr32 (to register the oraoledb12.dll, in my case) didn't work. But running this command after the script worked. Check the PATH variable as well because the script could only change it for the prompt session.

Now I'm being able to connect to a Oracle DB using OraOLEDB.Oracle provider and Oracle Instant Client.

心奴独伤 2024-07-13 19:19:57

我记得路径问题。
我添加了 c:\oracle 和 c:\oracle\bin 并且 - 瞧 - 从 udl 和 LinkedServer 连接到 ORACLE 运行完美。

I remembered about the Path issue.
I added c:\oracle and c:\oracle\bin and - voila - connect to ORACLE from udl and from LinkedServer is perfectly running.

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