Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ORA-12154: TNS:could not resolve service name
gurinder.kabbay_at_gmail.com wrote:
> Frank van Bortel wrote:
>> 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...
What happens when you try 'tnsping userdb'?
Have you set the TNS_ADMIN environment variable to some value?
Cheers,
Brian
-- =================================================================== Brian Peasland dba_at_nospam.peasland.net http://www.peasland.net Remove the "nospam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three" - UnknownReceived on Thu Aug 10 2006 - 11:38:03 CDT
![]() |
![]() |