If you are connecting an Oracle Database using an Apache2 webserver that runs on an Ubuntu machine, you might randomly have this error.

Warning: ocilogon() http://function.ocilogon: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries.

troubleshooting ld library path warning ocilogon httpfunctionocilogon ocienvnlscreate failed 01 Troubleshooting: LD LIBRARY PATH... Warning: ocilogon() http://function.ocilogon: OCIEnvNlsCreate() failed.
space Troubleshooting: LD LIBRARY PATH... Warning: ocilogon() http://function.ocilogon: OCIEnvNlsCreate() failed.

It can be solved setting properly the environment variable LD_LIBRARY_PATH in the configuration file /etc/apache2/apache2.conf

Add below the ServerRoot path:
ServerRoot "/etc/apache2"

the following line:
SetEnv LD_LIBRARY_PATH="/opt/oracle/instantclient_10_2"

Don’t forget to let us know if the solution is working also for you ;)




Other Posts
Comments

This entry was posted on Friday, February 20th, 2009 at 6:00 am and is filed under Oracle on Unix Server. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
7 Comments so far

  1. JAF on May 12, 2009 4:50 pm

    did it work?

    since some days i get randomly the same error message on my debian server ;(

  2. Danilo Vizzarro on May 12, 2009 5:09 pm

    well… it worked… at least for me… :P

  3. JAF on May 12, 2009 8:08 pm

    well…

    i had this problem about 1 years ago.
    I changed the server (because of other reasons) and also upgraded apache & php etc. and since then i didn’t have this problem any more.

    some days ago it started again … very strange here. i will see in some day if this is fixed now again.
    i’ll let you know.

  4. Danilo Vizzarro on May 13, 2009 6:44 am

    sure! let us know!
    Thank you

  5. Wildan Maulana on March 10, 2010 6:57 am

    Still error : :d

    Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system – please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in /home/wildan/jobstuff/OpenThinkLabs/webapps/sandbox/oracle.php on line 2

  6. chintan on April 20, 2010 11:38 am

    I am getting this kind of error on my site.

    Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system – please check that ORACLE_HOME is set and points to the right directory in

    Can u suggest the possible solution for the same?

  7. Tamas on January 24, 2012 1:35 pm

    Seems to be working:)Thanks

Name (required)

Email (required)

Website

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Share your wisdom