我在尝试使用cx_oracle从Azure Databricks Notebook连接Oracle时遇到错误
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']
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看链接错误,您会发现它注意到必须安装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.