note 16377 deleted from oci8.installation by sixd
| From: | sixd@php.net | Date: | Mon, 07 Dec 2009 21:55:00 +0000 |
| Subject: | note 16377 deleted from oci8.installation by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163694@lists.php.net to get a copy of this message | ||
Note Submitter: ruudb at stress dot utwente dot nl
----
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/data.
2. Make sure the ORA_NLS33 parameter is unset or alternatively pointing to the above directory
($ORACLE_HOME/ocommon/nls/admin/data).
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.