Monday, September 10, 2012

Re: Can't Find libclntsh.so.11.1 With Oracle Backend

set the ORACLE_HOME  variable of the user who run site
SuexecUserGroup inof inof
env |grep ORA
ORACLE_BASE=/usr/lib/oracle
ORACLE_HOME=/usr/lib/oracle/11.2/client64/

On 11 September 2012 03:05, Jon Blake <jc.blake3@gmail.com> wrote:
Thanks, Jani and Ian. I've used the ldconfig approach to fix this problem. Now getting a "ImportError at /" page, for which I'll post another question.


On Tuesday, September 11, 2012 6:15:57 AM UTC+10, Jani Tiainen wrote:
I've been using ldconfig to handle libs. It's easy as runnig following few commands as a root. (Though I always use oracle instantclient, it's just simpler in many cases):

$ echo  /oracle/product/11.1.0/db_1/lib  > /etc/ld.so.conf.d/oracle.conf
$ ldconfig

On Mon, Sep 10, 2012 at 7:11 PM, Ian <ian.g...@gmail.com> wrote:
On Sunday, September 9, 2012 10:41:00 PM UTC-6, Jon Blake wrote:
It looks like I have to tell my app what my path to libclntsh.so.11.1 is. I have added:

os.environ['LD_LIBRARY_PATH'] = '/oracle/product/11.1.0/db_1/lib'

to my app's wsgi.py file, but this does resolve my problem.


LD_LIBRARY_PATH has to be set before the process starts to be honored.  So it's not sufficient to set it in the wsgi file with os.environ; you need to use an Apache SetEnv directive, or use a script to export it in the Apache process's environment variables when Apache is started.  Or as a third option, use ldconfig to make the Oracle library path globally visible.

Cheers,
Ian

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/z8aKjhUtm3QJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/imnCF82L9_EJ.

To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
С уважением, Иван

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate