无法使用 ODBC 连接到 Oracle 10g Express Edition

发布于 2024-07-13 16:21:08 字数 461 浏览 4 评论 0原文

我正在使用 C 编写一个 DLL,它使用 ODBC 为几个不同的应用程序提供基本的数据库连接功能。 当我使用此 DLL 连接到 Oracle 数据库(特别是 Oracle 10g Express Edition)时,我收到以下错误消息:

由于系统错误 1114(XE 中的 Oracle),无法加载指定的驱动程序。

重新启动计算机后,使用此 DLL 的应用程序之一可以连接到数据库,但另一个(更重要的应用程序)仍然会收到此消息。

有谁知道可能导致此错误的原因以及如何修复它? 我以前从未使用过 Oracle,所以我真的不知道从哪里开始解决这个问题。 预先感谢任何人可以提供的任何想法。

编辑:我检查了 PATH 环境变量。 它以:C:\oraclexe\app\oracle\product\10.2.0\server\bin 开头。 这是我计算机上 Oracle 的正确路径。

I am using C to write a DLL that provides basic database connection functionality to a couple of different applications, using ODBC. When I use this DLL to connect to an Oracle database (Oracle 10g Express Edition, specifically) I get the following error message:

Specified driver could not be loaded due to system error 1114 (Oracle in XE).

After rebooting my computer, one of the applications that uses this DLL can connect to the database, but the other (more important one) still gets this message.

Does anyone know what may be causing this error and how I can fix it? I've never used Oracle before so I don't really know where to start to fix this problem. Thanks in advance for any ideas anyone out there can give.

EDIT: I checked the PATH environment variable. It begins with: C:\oraclexe\app\oracle\product\10.2.0\server\bin. That's the correct path to Oracle on my computer.

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

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

发布评论

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

评论(2

[旋木] 2024-07-20 16:21:08
  1. 设置windows PATH首先搜索与Oracle ODBC相关的ORACLE_HOME\bin
    您尝试使用的驱动程序,或者在与 ODBC 驱动程序相关的 ORACLE_HOME\bin 目录中启动您的应用程序。
  2. 确保 ODBC 驱动程序的版本与您安装的 SQL*Net 版本相匹配。
  1. Setup the windows PATH to first search the ORACLE_HOME\bin related to the Oracle ODBC
    Driver you're trying to use, or start your application in the ORACLE_HOME\bin directory related to the ODBC driver.
  2. Make sure the version of the ODBC driver matches the version of SQL*Net you have installed.
峩卟喜欢 2024-07-20 16:21:08
  • 检查tnsping是否可以访问您的数据库
  • 尝试使用sqlplus连接到Oracle
  • 检查ODBC参数。 是 Microsoft 还是 Oracle 驱动程序?
  • 通过控制面板->创建ODBC DSN 管理工具 -> 数据源并尝试连接到 Oracle
  • Check if tnsping can get to your database
  • try to connect to Oracle with sqlplus
  • Check ODBC parameters. Is it Microsoft or Oracle driver?
  • Create ODBC DSN through Control panel -> Administrative Tools -> Data Sources and try to connect to Oracle
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文