note 7877 deleted from OCILogon by ronabop
| From: | ronabop@php.net | Date: | Sat, 19 Aug 2000 04:09:40 +0000 |
| Subject: | note 7877 deleted from OCILogon by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2619@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