ORACLE .... And Tns
| From: | C.Chassagneux | Date: | Thu, 02 Aug 2001 15:09:32 +0000 |
| Subject: | ORACLE .... And Tns | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-10998@lists.php.net to get a copy of this message | ||
I have a simple script in php :
putenv("ORACLE_HOME=D:\\ORANT");
putenv("TNS_ADMIN=D:\\ORANT\\NETWORK\\ADMIN");
putenv("ORACLE_SID=xxxxxxxxx");
echo "Oracle : ". getenv("ORACLE_HOME")." \n";
echo "TNS_ADMIN : ". getenv("TNS_ADMIN")." \n";
echo "ORACLE_SID : ". getenv("ORACLE_SID")." \n";
$connect_oracle = ora_logon("xxxxx@xxxxxxx" ,
"xxxxxxxxx" );
But then i do :
e:\> php testoracle.php
the prog reply : ORA-12154 : TNS name not resolved
with apache server, I don't have this problem.
Can u help me ?
PHP4.0.6 - Win NT4W SP5