PHP Oracle XE - Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate()
613687Jul 24 2008 — edited Jul 30 2008Hello everyone,
I have:
- Apache 2.0.63 and PHP 5.2.6 set up on Windows Professional XP SP3.
- Both are working correctly, and I am able to connect to/use MySQL without any problems.
- I have installed: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
- I am trying to access Oracle LOCALLY (Apache, PHP, and Oracle XE are all on the same machine).
When I attempt to connect to the database using the oci8test.php script located near the bottom of this page: http://www.oracle.com/technology/tech/php/htdocs/inst_php_apache_windows.html), I get the following error:
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in C:\Apache\Apache2\htdocs\oci8test.php on line 3
RE: "please check that PATH includes the directory with Oracle Instant Client libraries" - The page listed previously where oci8test.php is on did not specify setting paths to connect to Oracle locally.
Can you please point me in the right direction as to what I am doing incorrectly here.
Thank you for your help!