cx_Oracle.Connection throws cx_Oracle.InternalError: No Oracle error?
NickName:user1042361 Ask DateTime:2012-09-19T01:47:25

cx_Oracle.Connection throws cx_Oracle.InternalError: No Oracle error?

I have installed the python Oracle module cx_Oracle on my Linux machine. The oracle user and root user can both import cx_Oracle and create a database connection using cx_Oracle.Connection(...).

Other users on the server can also import cx_Oracle but when they try to create a connection object the following exception is thrown:

>>> cx_Oracle.Connection('....')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cx_Oracle.InternalError: No Oracle error?

I have confirmed that the user I am trying to get to work has all the correct system variables set, ORACLE_HOME, LD_LIBRARY_PATH, ORACLE_SID and PATH. This user also has no problem using sqlplus and connecting to databases that way.

I assume this is a file permissions problem since both the oracle and root users have no problems. I am just not sure which file could be causing the issue.

Copyright Notice:Content Author:「user1042361」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12482299/cx-oracle-connection-throws-cx-oracle-internalerror-no-oracle-error

More about “cx_Oracle.Connection throws cx_Oracle.InternalError: No Oracle error?” related questions

cx_Oracle.Connection throws cx_Oracle.InternalError: No Oracle error?

I have installed the python Oracle module cx_Oracle on my Linux machine. The oracle user and root user can both import cx_Oracle and create a database connection using cx_Oracle.Connection(...). O...

Show Detail

Cannot connect to Oracle using python 3.4

I just started to learn python and try to connect to oracle 11g, but I always get following error cx_Oracle.InternalError: No Oracle error? Here is my simple script to connect to oracle import

Show Detail

cx_oracle Unable to acquire Oracle environment handle

When trying to get a connection to an Oracle Database I´m getting the following error: File "test.py", line 5, in &lt;module&gt; conn = cx_Oracle.Connection('dbuser/dbpass@fqdn') cx_Oracle.

Show Detail

python cx_Oracle.Connection proxying to share between process - I get an error when creating a cursor on a shared connection object

I am trying to write a load app on Oracle using python and I neeed some concurrency. I am doing this by sharing a connection pool to be used by child processes but before going into that I tried to

Show Detail

Cx_oracle is cutting year in a date field in some specific cases

I am stuck with next problem when working with dates using python &amp; cx_Oracle. This one works fine: In [29]: cursor.execute("SELECT TO_DATE('23.09.2015','DD.MM.YYYY') FROM dual") Out[29]: &lt

Show Detail

AWS Python Lambda with Oracle - OID Generation Failed

I'm trying to connect to an Oracle DB using AWS Lambda Python code. My code is below: import sys, os import cx_Oracle import traceback def main_handler(event, context): # Enter your database

Show Detail

How to run parallel queries using multiporcessing pool and cx_oracle

Am trying to run multiple processes using python's Pool, each process will be inquiring database this is why am trying to pass the connection to each process and then initiating a new cursor for qu...

Show Detail

Call oracle stored procedure with cursor output parameter from python script

I am trying to call a oracle stored procedure with 2 in and 1 out parameter from python script. The problem I am having is passing a cursor out-parameter. The Oracle stored procedure is essentiall...

Show Detail

django oracle setup throws error

oracle_home is mandatory while setting django with oracle, i have two machine in one ip address Oracle is installed and in other Ip address setting up django webapp, when i try to install pip ins...

Show Detail

Error while connecting to oracle DB from a python code in java (cx_Oracle)

I'm trying to run a python script from java code in order to connect to an Oracle DB (using cx_oracle). I'm coding in intellij IDEA 14. When I run my python code alone, everything is ok, but when I...

Show Detail