Re: [phplib] Database Problem From: Philip Strnad (philip <email protected>)
Date: 03/17/01

Murthy,

This looks like some sort of TNS problem. Either the $Database variable
doesn't contain a valid net service name, or it's a problem with the way
your TNS listener is setup. Make sure configuration files like
listener.ora and tnsnames.ora are setup properly and that the entries in
tnsnames.ora actually point to valid databases.

Philip

Murthy wrote:
>
> Hello,
> When i am accessing the file in which i have just written the coed to link to database it is giving me error like this.
>
> Warning: Unable to connect to ORACLE (ORA-12154: TNS:could not resolve service name) in
> c:/www/phplib/php/db_oracle.inc on line 48
> Database error: connect() Link-ID == false (), ora_plogon failed
> Oracle Error: 0 ()
> Session halted.
>
> I have given the parameters for the database as
>
> var $Host = "localhost";
> database is oracle and it is installed in my system.
> var $Database = "horde";
> I have created the DSN as horde.
> var $User = "horde";
> I have created the user as horde
> var $Password = "horde";
> I have given the password as horde
>
> Are these values i have given for the parameters are right or not.Why it is giving me the error.CAn any one please help me....
> Thanks in advance
> Murthy.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>