1
I am unable to connect Python to my oracle database.
Displays the following error :
import cx_Oracle
con = cx_Oracle.connect('topm/[email protected]/xe')
print (con.version)
con.close()
Traceback (most recent call last):
File "<ipython-input-84-210d1be36a99>", line 2, in <module>
con = cx_Oracle.connect('topm/[email protected]/xe')
DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "C:\oracle\product\10.2.0\client_1\bin\oci.dll is not the correct architecture". See https://oracle.github.io/odpi/doc/installation.html#windows for help
Apparently you are using a 64-bit operating system but your Oracle Client is 32-bit. Please install Oracle Client in version 64 bits at https://www.oracle.com/technetwork/topics/winx64soft-089540.html
– Keven Carneiro