Python - Oracle 11g连接

时间:2017-05-05 09:31:02

标签: python

我想连接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:\Python\Python36\python.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 for Windows-7 64位的步骤。

0 个答案:

没有答案