|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-16 08:38 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 07:00:01 2025 UTC |
the php script: <?php putenv("ORACLE_HOME=/home/oracle/......."); putenv("ORACLE_SID=GAZZ"); $c1=ocilogon("gast", "gast123"); ---------------------- This line produces the bug -> ORA 3106 fatal two-task communication protocol error . . . ?> the listener, tnsnames etc works correct as I am able to connect to the instance via sqlplus (I have multible instances on the server). I have traced the apache server task and found that php is looking for the file tnsnav.ora. shouldnt this be tnsnames.ora ? The compile of apache and php3 was ok, no error encountered. The php module is compiled with the oracle home path. The php3.ini file was not changed in any way. removing the ORACLE_SID variable and rewriting the oracle login with $c1 = ocilogon("gast", "gast123", "gazz"); produces the error: ORA12154 TNS could not resolve service name. Removing the ORACLE_HOME variable from the script produces the error oci8_open_server: Error while trying to retrive text for ORA 12154. The strange thing is, that first the script worked for some time, after restarting apache the error occured. /mike