Re: PHP+Oracle: could not resolve service name

From: joel garry <joel-garry_at_home.com>
Date: Wed, 9 Apr 2008 14:22:54 -0700 (PDT)
Message-ID: <612d179a-20e8-4bd5-acfa-aff4514f99c4@m1g2000pre.googlegroups.com>


On Apr 9, 4:35 am, "Álvaro G. Vicario" <alvaro_NOS..._at_demogracia.com> wrote:
> I'm developing a PHP 4 application in a Windows Server 2003 box. I'm
> connecting to a remote Oracle 10g server using ODBC (with a system-wide
> DSN). I didn't install any of the software and my Oracle experience doesn't
> got further than writing queries ;-)
>
> My issue is that PHP scripts cannot connect to the database server when I
> run them from the *command line*. I get this error message:
>
>     SQL error: [Microsoft][ODBC driver for Oracle][Oracle]ORA-12154: TNS:no
> se ha podido resolver el nombre del servicio, SQL state 08001 in SQLConnect
>

Try http://www.oracle.com/technology/pub/notes/technote_php_instant.html

jg

--
@home.com is bogus.
Oops!  http://www.computerworld.com.au/index.php/id;314715708
Received on Wed Apr 09 2008 - 16:22:54 CDT

Original text of this message