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下,重啟工具就可以了