Can not connect php 5 to oracle 9i
Posted: Mon Nov 03, 2008 10:43 am
Hi, all
Is there anyone who knows how to config for connection php 5 to oracle 9i?
We used to have php4.3 with oracle 8 on our sun solaris2.10. Now I installed latest php 5.2.6 on apache 1.3.34. Php 5 is working well. but could not connect to oracle 9i.
When I am compiling php5, I tried --with-oci8=[both $ORACLE_HOME and 'path of $ORACLE_HOME']. But, I still get error:
/***************************************/
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 /apache/htdocs/fxfrevplan/db_connection.php on line 8
Connection failed
Warning: ocierror() expects parameter 1 to be resource, boolean given in
/apache/htdocs/fxfrevplan/db_connection.php on line 13
Error Message: []
/***************************************/
How should I fix it? Is there any idea? I really appreciate you for your helps in advance.
Helen
Is there anyone who knows how to config for connection php 5 to oracle 9i?
We used to have php4.3 with oracle 8 on our sun solaris2.10. Now I installed latest php 5.2.6 on apache 1.3.34. Php 5 is working well. but could not connect to oracle 9i.
When I am compiling php5, I tried --with-oci8=[both $ORACLE_HOME and 'path of $ORACLE_HOME']. But, I still get error:
/***************************************/
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 /apache/htdocs/fxfrevplan/db_connection.php on line 8
Connection failed
Warning: ocierror() expects parameter 1 to be resource, boolean given in
/apache/htdocs/fxfrevplan/db_connection.php on line 13
Error Message: []
/***************************************/
How should I fix it? Is there any idea? I really appreciate you for your helps in advance.
Helen