I want to connect python and oracle 11g. Python Version- 3.6.1 / 64 bit, Windows 7 -64 bit.
I have installed cx_Oracle from https://oracle.github.io/python-cx_Oracle/ The Code is as below -
import cx_Oracle
con = cx_Oracle.connect('sde/sde@orcl')
print (con.version)
con.close()
But I am getting below Error -
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
Please let me know the steps to connect Python 3.6.1 and Oracle 11g for Windows-7 64 bit.