Page 1 of 1

Unable to connect to Oracle db through oci_connect in PHP

PostPosted: 25. July 2016 07:50
by arunothaya
Hi
I have installed XAMPP (xampp-win32-5.5.37-0-VC11-installer) in our machine for Oracle Database connection through PHP file.
Apache is running fine. I am trying to browse http://localhost/test/test.php for phpinfo. It is also working fine.
But when I am trying to connect Oracle database it is showing following warning error:
Error message “Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries inC:\xampp\htdocs\test\connect1.php on line 5”.
Kindly suggest me for further development.

Machine Details:
1. OS: Windows 7 [32 bit] with Service pack1
2. ORACLE Database Version 11.2.0.2.0

Re: Unable to connect to Oracle db through oci_connect in PH

PostPosted: 25. July 2016 11:36
by Nobbie
Did you follow the advice?

Re: Unable to connect to Oracle db through oci_connect in PH

PostPosted: 26. July 2016 11:02
by arunothaya
Hi,

I didn't get you as which advice are you referring to. Can you please elaborate ?

Regards

Re: Unable to connect to Oracle db through oci_connect in PH

PostPosted: 26. July 2016 11:15
by Nobbie
Dont you read the error messages??

arunothaya wrote:Error message “Warning: oci_connect(): OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries inC:\xampp\htdocs\test\connect1.php on line 5”.

Re: Unable to connect to Oracle db through oci_connect in PH

PostPosted: 26. July 2016 11:35
by arunothaya
Hi,

We have checked that, the path includes the directory, Is there a way i can upload the screenshot to show the same.

Re: Unable to connect to Oracle db through oci_connect in PH

PostPosted: 26. July 2016 13:57
by Nobbie
arunothaya wrote: Is there a way i can upload the screenshot to show the same.


I dont think so. instead you can apply an image from any Server via IMG-Tag (see above BBC Tags).

Anyway, this definately seems to be an Oracle Problem, i dont think that Xampp Forum is the right forum for this issue.