Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ERROR: ORA-12154 TNS:could not resolve the connect identifier specified

Posted on 2006-06-29
13
Medium Priority
?
2,968 Views
Last Modified: 2012-05-05
We are getting an error when using Oracle SQL*Plus:
ERROR: ORA-12154 TNS:could not resolve the connect identifier specified

However, before saying "obviously the problem is the tnsnames.ora file" please read the following:

We have the tnsnames.ora file set up correctly.  How do I know?  Well it worked not 2 minutes ago with our default assigned password.  We got in.  However, we are required to change our password from the default.  So we issued the password command and changed the password.  When we then tried to connect using the new password we get the above error.  If we try to connect using the old password we get ERROR: ORA-01017: invalid username/password; logon denied.

Therefore it indicates to us that the problem is due to something in the new password.  Does this sound correct?  Any idea what characters are not accepted in Oracle passwords through Oracle SQL*Plus, which are accepted otherwise?  Also the new password does working connecting through SQL Server 2005 - just not through Oracle SQL*Plus.
0
Comment
Question by:mrichmon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 3
13 Comments
 
LVL 19

Expert Comment

by:actonwang
ID: 17010888
can you log in as another user?
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17010892
in command line, try:

tnsping <tns name>

is it ok?
0
 
LVL 35

Author Comment

by:mrichmon
ID: 17011047
We could log in as THIS user until we changed the password.  And this user with this password works through MS SQL Server 2005 - same tns file.  It just doesn't work throught Oracle SQL*Plus beginning immediately when we changed the password.

Yes it pings fine.  The tnsfile is not the problem.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 35

Author Comment

by:mrichmon
ID: 17011123
Okay I have confirmed it is the password.  Apparently there are certain special characters that do not work.  In our case the @ was causing a problem.  However simply enclosing the password in " also works.  Note the " are not needed except for in SQL*Plus
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17011215
I C. your password contains @!

sqlplus user/pass@<sid>


@ is a special character there.!
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17011227
you also would do:

sqlplus user


then let sqlplus prompt password for you then type in. you should be  ok then.
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17011238
or should be:

sqlplus user@<sid>
0
 
LVL 35

Author Comment

by:mrichmon
ID: 17011864
actonwang,

You are only repeating what I already stated I discovered was the problem - the @ sign.  I also stated the solutions we came up with.

I have requested this question to be closed.
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17011890
yes. exactly.  you can close it.
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17011895
just give you an alternative way to log in. is that not good?
0
 
LVL 19

Expert Comment

by:actonwang
ID: 17014393
agree.
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 17047174
Closed, 250 points refunded.

GhostMod
Community Support Moderator
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question