Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: ORA-12154: TNS:could not resolve service name

Re: ORA-12154: TNS:could not resolve service name

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Thu, 10 Aug 2006 12:31:04 +0200
Message-ID: <ebf1kv$upl$1@news6.zwoll1.ov.home.nl>


gurinder.kabbay_at_gmail.com schreef:
> Hi,
> I am using Oracle 10g with windows XP. I've a service name USERDB and
> the database userdb is in shared server configuration. I works fine if
> I try to connect from SQL*PLUS. But when I try to connect from sqlplus
> D:\Set Oracle_SID=userdb
> D:\sqlplus /nolog
> SQL>conn scott/tiger_at_userdb
> SQL>ORA-12154: TNS:could not resolve service name.
>
> SQL>
>
> Anybody having some idea to resolve this....
> Thanks in advance
>

Almost correct:
SQL>conn scott/tiger
should do the trick.

No need for a listener, as a bequeath connection is used. @userdb requires a userdb entry in tnsnames.ora in your network directory (%ORACLE_HOME\network\admin).

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Thu Aug 10 2006 - 05:31:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US