dbTalk Databases Forums  

[Oracle] ORA-12154: TNS:could not resolve service name in sqlplus

comp.databases comp.databases


Discuss [Oracle] ORA-12154: TNS:could not resolve service name in sqlplus in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tomek
 
Posts: n/a

Default [Oracle] ORA-12154: TNS:could not resolve service name in sqlplus - 04-02-2009 , 04:53 AM






Hi
I don't no why when I logging in sqlplus on user "baza" I look error:

ORA-12154: TNS:could not resolve service name

But when I logging on user sys as sysdba its OK



My tnsnames.ora file:

baza =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = oracle)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = baza)
)
)




My sqlnet.ora file:

NAMES.DEFAULT_DOMAIN = mydomain.com

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)




Listing:

$sqlplus

SQL*Plus: Release 9.2.0.7.0 - Production on Fri Mar 20 15:25:00 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Enter user-name: sys as sysdba
Enter password:

Connected to:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production

SQL> exit

$ sqlplus

SQL*Plus: Release 9.2.0.7.0 - Production on Fri Mar 20 15:25:17 2009

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Enter user-name: baza
Enter password:
ERROR:
ORA-12154: TNS:could not resolve service name





Reply With Quote
  #2  
Old   
Tomek
 
Posts: n/a

Default Re: [Oracle] ORA-12154: TNS:could not resolve service name in sqlplus - 04-02-2009 , 06:10 AM






Thanx All !!!!


In my password inclide character "@" - Oracle thing after tchese character
is database name



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.