Re: [cx-oracle-users] Unable to acquire Oracle environment handle
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2011-02-15 17:33:34
|
Hi, This has always been some problem with a missing value for ORACLE_HOME and/or LD_LIBRARY_PATH. Check your environment variables. Since this is running in Django, a web server, sometimes these environment variables are not set globally. You can always "force" this issue by issuing calls like this prior to creating a connection with cx_Oracle. os.environ["ORACLE_HOME"] = /the/path/to/your/oracle/home LD_LIBRARY_PATH (or equivalent method of setting the shared library search path) __must__ be set prior to starting a process so you'll need to make sure that is done globally or in your web server configuration files somewhere. Hope that helps. Anthony On Tue, Feb 15, 2011 at 9:20 AM, Marco De Paoli <dep...@gm...> wrote: > Hi, > the problem is not systematic and I wasn't able to infere a "pattern" for it > > CentoOS 5.4 > oracle-instantclient-basic-10.2.0.4-1.i386.zip > oracle-instantclient-devel-10.2.0.4-1.i386.zip > cx_Oracle 5.4 > Django 1.2.5 > > any idea? > I wolud be gratefull for any hint > > Marco > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users > > |