Closed Priyanka493-My closed 2 years ago
Look carefully at what you posted. You claim to be running Python 3.7.6 64-bit but you are actually running Python 3.7.2 32-bit! Make sure you are actually running the 64-bit version of Python!
Closing - no activity.
Give your database version. sqldeveloper-21.4.1.349.1822-x64
Also run Python and show the output of:
platform.platform: Windows-10-10.0.18362-SP0 sys.maxsize > 2**32: False platform.python_version: 3.7.2
And:
cx_Oracle.version: 8.3.0 Then getting this error print("cx_Oracle.clientversion:", cx_Oracle.clientversion()) cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 32-bit Oracle Client library: "The specified module could not be found".
-->
cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 32-bit Oracle Client library: "The specified module could not be found". Even installed instantclient-basiclite-windows.x64-21.3.0.0.0 . Mine is a 64 bit laptop. Kindly help.
import cx_Oracle
Connect as user "hr" with password "welcome" to the "orclpdb1" service running on this computer.
connection = cx_Oracle.connect(user="c##scott", password="XXXXXX", dsn="localhost:1521/orcl") print(connection.version)