python-oracledb

python-oracledb module fails to use instantclient in a docker container

python-oracledb module fails to use instantclient in a docker container Question: I’m trying to build a docker image to access an oracle database at runtime, I’m having the following error message: DPI-1047: Cannot locate a 64-bit Oracle Client library: "/oracle/instantclient/libclntsh.so: cannot open shared object file: No such file or directory". Inside the container, there actually …

Total answers: 3

python-oracledb thin client returns DPY-6005

python-oracledb thin client returns DPY-6005 Question: I’m trying to connect to a 21c ATP and 19c ADP (free tier, ACL enabled/configured with "My Address", TLS enabled (mTLS set to "Not required"), connection string contains "ssl_server_dn_match=yes") using Python’s thin client but at the point of making a connection or setting up a connection pool, I get: …

Total answers: 1

How to reuse bind variables in oracledb-python?

How to reuse bind variables in oracledb-python? Question: I’m trying to do an upsert with below query but I’m getting oracledb.exceptions.DatabaseError: DPY-4009: 11 positional bind values are required but 5 were provided. Meaning I’m unable to reuse my bind variables. UPDATE Competition SET abbreviation = :1, descriptions = :2, levels = :3, source = :4, …

Total answers: 1

Error Connecting virtual machine to oracle, using python (error DPY-4011)

Error Connecting virtual machine to oracle, using python (error DPY-4011) Question: I’m using the oracledb library to connect my python application to an oracle database. I can connect normally using python on my computer, but I have a virtual machine, running Ubuntu, which is using the same network as the computer, that cannot connect. here …

Total answers: 1

With python-oracledb what does 'DPY-4027: no configuration directory to search for tnsnames.ora' mean

With python-oracledb what does 'DPY-4027: no configuration directory to search for tnsnames.ora' mean Question: With the python-oracledb driver the code: import oracledb cs = "MYDB" c = oracledb.connect(user=’cj’, password=mypw, dsn=cs) gives the error: oracledb.exceptions.DatabaseError: DPY-4027: no configuration directory to search for tnsnames.ora The same error also occurs in a second case: import oracledb cs = …

Total answers: 1