|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-25 08:26 UTC] sasha at it-energy dot ru
[2007-04-25 08:29 UTC] tony2001@php.net
[2007-04-25 09:02 UTC] sasha at it-energy dot ru
[2007-04-25 09:11 UTC] tony2001@php.net
[2007-04-25 09:39 UTC] sasha at it-energy dot ru
[2007-04-25 09:47 UTC] sasha at it-energy dot ru
[2007-04-25 09:59 UTC] tony2001@php.net
[2007-04-25 10:14 UTC] sasha at it-energy dot ru
[2007-04-25 10:24 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 12:00:02 2025 UTC |
Description: ------------ 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 /opt/apache2/htdocs/dbtest01.php on line 24 Reproduce code: --------------- $ORACLE_HOME = getenv("ORACLE_HOME"); echo "ORACLE_HOME=$ORACLE_HOME<br>\n"; $NLS_LANG = getenv("NLS_LANG"); echo "NLS_LANG=$NLS_LANG<br>\n"; $LD_LIBRARY_PATH = getenv("LD_LIBRARY_PATH"); echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH<br>\n"; $ORA_NLS33 = getenv("ORA_NLS33"); echo "ORA_NLS33=$ORA_NLS33<br>\n"; $username = "*******"; $paswd = "******"; $dbstring = "******************"; $db_conn = ocilogon($username, $paswd, $dbstring ); if (!$db_conn){ echo "...FAILED</p>"; } Expected result: ---------------- Connect to database. Actual result: -------------- ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/client_1 NLS_LANG=american_america.CL8MSWIN1251 LD_LIBRARY_PATH=/opt/oracle/oracle/product/10.2.0/client_1/lib:/opt/apache2/lib:/opt/oracle/oracle/product/10.2.0/client_1/lib ORA_NLS33=/opt/oracle/oracle/product/10.2.0/client_1/nls/data 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 /opt/apache2/htdocs/dbtest01.php on line 24 ...FAILED