This discussion is archived
5 Replies Latest reply: May 2, 2006 6:39 AM by 508651 RSS

Problems with connection from PHP to Oracle DB

508651 Newbie
Currently Being Moderated

I have a Win2k3 Server with IIS 6.0 and PHP 5.1.2. and an Oracle Client 9i installed.

Recently I tried to connect via PHP to the DB but it failed with the following message:
"Warning: ocilogon() [function.ocilogon]: OCIEnvInit() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in ...\php-skript\test\funk_test.php on line 54"

So I started looking in the internet for help and found a lot, but nothing that solved my problem. I tried everything (I think):
* Oracle Client 9i regular Client- environment vars in all variations
* Oracle Client 10g Instant Client- all variations again
* I tried to delete all spaces in the "tns.ora" after a hint in another PHP-forum
* I looked in this forum and found some hints

BUT: Nothing helped me to solve my problem.

So I changed my PHP-version from 5.1.2 to 5.0.4 and I got a different failure:
"[26-Apr-2006 17:58:15] PHP Warning: ocilogon() [<a href='function.ocilogon'>function.ocilogon</a>]: _oci_open_server: ˜Õ‚ in ...\php-skript\test\funk_test.php on line 56"

This message is really strange, because it contains no information about the failure.

Has ANYONE another hint for me?? I really don't know what I should do.