Python - Oracle 11g connection



我想连接python和oracle 11g。Python版本-3.6.1/64位,Windows 7 -64位。

我已经从https://oracle.github.io/python-cx_oracle/安装了cx_oracle代码如下 -

import cx_Oracle
con = cx_Oracle.connect('sde/sde@orcl')
print (con.version)
con.close()

但我要低于错误 -

C:PythonPython36python.exe 
D:/Automation/Python_WP/practice/database/db_connection.py
Traceback (most recent call last):
File "D:/Automation/Python_WP/practice/database/db_connection.py", line 1, in <module>
import cx_Oracle
ImportError: DLL load failed: The specified module could not be found.
Process finished with exit code 1

请让我知道连接Python 3.6.1和Oracle 11g的步骤,用于Windows-7 64位。

1. Download msvcp71.dll and msvcr71.dll from the web.
2. Save them to your C:WindowsSystem32 folder.
3. Save them to your C:WindowsSysWOW64 folder as well (if you have a 64-bit operating system).

现在尝试在Python中运行代码文件,并将在几秒钟内加载图形。

最新更新