note 7877 added to OCILogon

From: Date: Fri, 18 Aug 2000 04:48:19 +0000
Subject: note 7877 added to OCILogon
Groups: php.notes 
Request: Send a blank email to php-notes+get-2410@lists.php.net to get a copy of this message
Help!!! i have install oracle8 client, and i can connect remote oracle server by sqlplus with TNS: server9 but when i use it in php files, it tell me that "Warning: _oci_open_server: ORA-12154: TNS:could not resolve service name in database.inc on line 8" the database.inc file: <? putenv("NLS_LANG=simplified chinese_china.zhs16cgb231280"); putenv("ORA_NLS33=/ul/oracle/product/8.1.5/ocommon/nls/admin/data"); putenv("TNS_ADMIN=/ul/oracle/product/8.1.5/network/admin"); putenv("ORACLE_SID=ORCL"); putenv("ORACLE_HOME=/ul/oracle/product/8.1.5"); $db="server9"; $conn=ocilogon("sa","ousigui",$db); ?> who can tell me the reason http://www.php.net/manual/function.ocilogon.php

« previous php.notes (#2410) next »