[DB-SIG] cx_Oracle doesn't like me

Anthony Tuininga anthony at computronix.com
Mon Jan 19 22:20:21 EST 2004


You should state what Oracle client you are using, what Python version
you are using and what cx_Oracle version you are using. That might help
clarify things. :-)

On Mon, 2004-01-19 at 18:06, Manus Hand wrote:
> On Linux:
> 
>  
> 
> >>> import cx_Oracle
> 
> >>> cx_Oracle.connect('user', pwd', 'hostStr')
> 
> Traceback (most recent call last):
> 
>   File "<stdin>", line 1, in ?
> 
> RuntimeError: Unable to acquire Oracle environment handle
> 
>  
> 
> The 'user', 'pwd', and 'hostStr' are all correct, as verified thru
> sqlplus.
> 
>  
> 
> The only thing I found about this error online was that $ORACLE_HOME
> and $LD_LIBRARY_PATH must match.
> 
> Both of them had no value when I echoed them.  So I set them both to:
> 
>  
> 
> /apps/oracle/product/9.2/lib (which is where my libclntsh.so.9.0 is –
> I softlinked it into /usr/lib)
> 
>  
> 
> and exported both environment variables.  Then I went back into the
> Python interpreter and got
> 
> the same error (pasted above).
> 
>  
> 
> Help?
> 
>  
> 
> Thanks, and PLEASE REPLY TO ME AT MY ADDRESS – I AM NOT SUBSCRIBED TO
> THE LIST.
> 
>  
> 
> Manus Hand
> 
>  
> 
> 
> 
> ______________________________________________________________________
> _______________________________________________
> DB-SIG maillist  -  DB-SIG at python.org
> http://mail.python.org/mailman/listinfo/db-sig
-- 
Anthony Tuininga <anthony at computronix.com>





More information about the DB-SIG mailing list