ID: 10206
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: OCI8 related
Assigned To: 
Comments:

Just wondering if you have all the necessary environment
variables set? Check the manual page http://www.php.net/oci8

--Jani


Previous Comments:
---------------------------------------------------------------------------

[2001-04-06 08:47:51] [EMAIL PROTECTED]
When I use php in CGI mode any script can't connect to the Oracle DB throught the 
OCILogon call.
When I switch to the ISAPI mode these scripts work OK.
the sample script:
<?php
 $dbuser="scott";
 $dbpass="tiger";
 $dbhost="devnt01";
 if (! $dbconn=OCILogon($dbuser,$dbpass,$dbhost)) 
      print("Cannot connect to oracle db '$dbhost' as user '$dbuser'");
?>
oracle reports:
ORA-12154: TNS:could not resolve service name in C:InetPubwwwroottest.php4 on line 5


---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10206&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to