Re: [PHP-GTK] [PHP-GTK-ORACLE] - Erreur TNS

[email protected] (Markus Fischer)
Newsgroups php.db,php.gtk
Message-ID <[email protected]>
Such questions are best asked at [email protected] .

I've defined them in the envoironent throgh a shell script
looking like this

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/8.1.7
export ORACLE_SID=home
export PATH=/u01/app/oracle/product/8.1.7/bin:$PATH
export CLASSPATH=.:/u01/app/oracle/product/8.1.7/jdbc/lib/classes111.zip
export LD_LIBRARY_PATH=/u01/app/oracle/product/8.1.7/lib
export ORA_NLS33=/u01/app/oracle/product/8.1.7/ocommon/nls/admin/data
export NLS_LANG=german

and I had no problems whatsoever to access oracle database
within my php-gtk application.

- Markus

On Tue, Jul 31, 2001 at 04:06:16PM +0100, Christophe Chassagneux wrote : 
> 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"   ,
>                             "SERETI"        );
> 
> 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 ?
> 
> 
> 
> 

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail:         [email protected]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.