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.
Because it's IIS, I set the env vars manually. That means --> my computer/.../advanced/environment vars/etc.
After every change, I rebootet the IIS Service. Problem consists.
Let's have a look, if your links could help...
########## EDIT ##########
Ok, your links WERE INDEED REALLY helpful!
My problems were caused by missing access-rights.
How to solve this problem:
* reinstall your Oracle-client
* inet-user needs now access rights for
+ "oracle"- folder
+ "oracle\bin"- folder
+ "tnsnames.ora"- file
* set environment vars
+ NLS_LANG = AMERICAN
+ ORACLE_HOME = "C:\oracle\ora92"
+ TNS_ADMIN = "C:\oracle\ora92\network\ADMIN"
* restart IIS