oci_connect(): OCIEnvNlsCreate() failed的解决方法


错误:
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 /var/www/html/ecalconddb/db_functions.php on line 13


原因:
系统的环境变量没有设定oracle instantclient


解决方法:
#export LD_LIBRARY_PATH=LD_LIBRARY_PATH:/path/to/instantclient

红色部分为你的oracle instantclient的安装路径。

我的是没有安装ocacel

你可能感兴趣的:(oci_connect(): OCIEnvNlsCreate() failed的解决方法)