Re: [cx-oracle-users] "Unable to acquire Oracle environment handle" with cx_Oracle 4.1.2 oracle 10g
Brought to you by:
atuining
From: Oliver-Mark C. <oc...@as...> - 2006-01-16 19:10:37
|
On Mon, 16 Jan 2006, Anthony Tuininga wrote: > This error occurs when the Oracle client that cx_Oracle was compiled > with does not match the client that is currently in use. You have to > make sure that these match. So perhaps you can give a little more > information. What Oracle client are you using. Are you building your > own cx_Oracle or using a precompiled one -- if so, which one. What are > the values for ORACLE_HOME and LD_LIBRARY_PATH and where is your > Oracle client installed. If you run "ldd cx_Oracle.so" what is the > result? Specifically which libclntsh.so is it linked against? Hope > this helps track it down. > > [...] No, this does not help :-( I just found the the solution. In the ORACLE_HOME variable an ending "/" will cause the problem. LD_LIBRARY_PATH and ORACLE_HOME has indeed the same value, but somehow the Oracle libs don't link ending slashes ... Is there a possibility to check the environment valiables in cx_Oracle first? The would help to track down the problem! Best wishes, Oliver |