python连接oracle的时候报错
DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: “The specified module could not be found”. See https://oracle.github.io/odpi/doc/installation.html#windows for help
解决方案
要求
①pycharm是64位
②oracle客户端是64位
③python是64位
接下来的操作,去oracle客户端安装目录找到三个文件,分别是
oci.dll、oraocci11.dll、oraociei11.dll
然后把这些文件复制到python的安装目录site-packages下,重启工具就可以了
本文解决Python连接Oracle时出现的DPI-1047错误,详细步骤包括确认PyCharm、Oracle客户端及Python均为64位,并将oci.dll等三个关键文件复制到Python的site-packages目录。
5068

被折叠的 条评论
为什么被折叠?



