note 16377 added to ref.oci8

From: Date: Fri, 26 Oct 2001 20:28:17 +0000
Subject: note 16377 added to ref.oci8
Groups: php.notes 
Request: Send a blank email to php-notes+get-19489@lists.php.net to get a copy of this message
I had big problems to get an Oracle 7 server working with the OCI8 client and PHP under Linux, while connection to an Oracle 8 server worked great (In fact I got an ORA-01005 when connecting to Oracle 7). I see that more people have this problem, so here is the solution: 1. Make sure the NLS files are in your ORACLE_HOME subtree under $ORACLE_HOME/ocommon/nls/admin. 2. Make sure the ORA_NLS33 parameter is unset or alternatively pointing to the above directory ($ORACLE_HOME/ocommon/nls/admin). 3. Add "export ORACLE_HOME=/usr/local/oracle" (for example) to your apache startup script. This is important!! Adding this variabele in the httpd.conf OR in your PHP script will _NOT_ solve the problem: the directory has to be known before the Oracle library is loaded. Thanks to Ron Reidy for helping to tackle this problem. -- http://www.php.net/manual/en/ref.oci8.php http://master.php.net/manage/user-notes.php?action=edit+16377 http://master.php.net/manage/user-notes.php?action=delete+16377 http://master.php.net/manage/user-notes.php?action=reject+16377

« previous php.notes (#19489) next »