Unable to connect to Oracle db through oci_connect in PHP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Unable to connect to Oracle db through oci_connect in PHP

Postby arunothaya » 25. July 2016 07:50

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
arunothaya
 
Posts: 3
Joined: 25. July 2016 07:47
XAMPP version: 5.5.37-0
Operating System: Windows 7

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

Postby Nobbie » 25. July 2016 11:36

Did you follow the advice?
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

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

Postby arunothaya » 26. July 2016 11:02

Hi,

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

Regards
arunothaya
 
Posts: 3
Joined: 25. July 2016 07:47
XAMPP version: 5.5.37-0
Operating System: Windows 7

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

Postby Nobbie » 26. July 2016 11:15

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”.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04

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

Postby arunothaya » 26. July 2016 11:35

Hi,

We have checked that, the path includes the directory, Is there a way i can upload the screenshot to show the same.
arunothaya
 
Posts: 3
Joined: 25. July 2016 07:47
XAMPP version: 5.5.37-0
Operating System: Windows 7

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

Postby Nobbie » 26. July 2016 13:57

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.
Nobbie
 
Posts: 8772
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 40 guests