我在尝试使用cx_oracle从Azure Databricks Notebook连接Oracle时遇到错误

发布于 2025-02-09 15:52:40 字数 594 浏览 0 评论 0原文

在此处输入图像说明

dpi-1047:无法找到64位甲骨文的甲骨文客户端库: .so.1:无法打开共享对象文件:没有这样的文件或目录”。参见 https://cx-oracle.readthedocs.io/en/latthedocs.io/en/latestestestesteptest /user_guide/installation.html 为了帮助

这是我的代码行:

-mydb = cx_oracle.connect(“ {0}”。格式(connectionDict ['councel_name']),“ {0} ['Account_Key']),“ // {0}:{1} ".format(connectionDict ['hostname']

enter image description here

DPI-1047: Cannot locate a 64-bit Oracle Client library: "libaio.so.1: cannot open shared object file: No such file or directory". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help

this is my code line:-

mydb = cx_Oracle.connect("{0}".format(ConnectionDict['account_name']), "{0}".format(ConnectionDict['account_key']), "//{0}:{1}/{2}".format(ConnectionDict['hostname'],ConnectionDict['port'],ConnectionDict['location_name']))

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

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

发布评论

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

评论(1

安稳善良 2025-02-16 15:52:40

如果您查看链接错误,您会发现它注意到必须安装Libaio软件包。

但是,另一个选择是使用新驱动程序可以连接到数据库不必安装Oracle客户端库。

If you look at the installation guide that is linked in the error you will see that it notes that the libaio package must be installed.

Another option, though, is to make use of the new driver which can connect to the database without having to install the Oracle Client libraries.

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