Re: [cx-oracle-users] Unable to acquire Oracle environment handle
Brought to you by:
atuining
From: Mark H. <mh...@pi...> - 2011-02-16 18:57:33
|
On 2/16/11 8:54 AM, Marco De Paoli wrote: > everything works if I force the rebuild of a file named tests.pyc in a django folder > (via rm tests.pyc or via touch tests.pyc) > > if the file is already there I obtain "Unable to acquire Oracle environment handle" > > Maybe it's an issue on the django side, but I can't undestand what could be wrong... > > django is a pure python package and the question is: how can django influence the OCIEnvNlsCreate call in Environment.c that, as far as I know, doesn't get any login but just initialize a client data structure?!? that one is weird. maybe you can do something like this: edit one or more of the django files, and put in conn=cx_Oracle.connect(...) calls. hopefully, the one at the very top of the first django file will be successful. eventually you will hit one that fails. then you can move the connect lines around to narrow down where the bad thing is happening. |