Solved

Oracle tnsping error TNS-03505: Failed to resolve name

Posted on 2014-02-20
7
34,786 Views
Last Modified: 2014-02-21
I'm re-learning client connectivity but obviously I've missed something.

I have two instances, ORACLE_SIDs= omf and orcl, both are using the same ORACLE_HOME.
I believe I've included all the relevant info in accompanying files.

I've designated a connect identifier "tns" in tnsnames.ora.
I cannnot > tnsping tns    nor > tnsping tns.websmiths.com.  I get 'failed to resolve name'.

Is it possible the instances retaining UNKNOWN status in listener are picking up the tnsping request and failing there?

On those UNKNOWN statuses, I (believe I've) tried every possible combination of initialization parameters LOCAL_LISTENER and DB_DOMAIN, and sqlnet.ora's NAME.DOMAIN_NAME, yet I can't stop/start listener and not have those after 'register'ing or waiting for auto registration.

ANY assistance to correct or that's beyond what I have shown here would be deeply appreciated.  I've put 20+ hours into this.  Generated a lot of my own documentation and more, but I'm obviously missing something.

Thank you.
host--Listener--and-InstanceS-st.txt
tnsnames.ora.txt
listener.ora.txt
sqlnet.ora.txt
initorcl.ora.txt
initomf.ora.txt
0
Comment
Question by:Ralph
[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
  • 3
  • 3
7 Comments
 
LVL 22

Accepted Solution

by:
Steve Wales earned 500 total points
ID: 39875640
Your sqlnet.ora has this:

NAMES.DEFAULT_DOMAIN = websmiths.com

Your tnsnames.ora alias is:

tns =

I believe that since you've included a default domain, it's looking to append websmiths.com to your tns aliases.

Change the tns alias to be tns.websmiths.com (and then tnsping tns) or remove default_domain.
0
 

Author Comment

by:Ralph
ID: 39875717
That worked!
But why?  I'd tried tnsping-ing both "tns" and "tns.websmiths.com".

> tnsping tns.        Apparently the NAMES.DOMAIN_NAME value  append to this "tns"?

If so, can you tell me where else does that domain designation get appended?

Thank you!
0
 

Author Closing Comment

by:Ralph
ID: 39875728
I can generate another question, but if you/anyone happen(s) to have a quick answer as to how to not have those additional service instances whose status remains UNKNOWN, MY remaining unknown will be resolved.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 22

Expert Comment

by:Steve Wales
ID: 39875737
Domain designation gets appended to the end of the alias in tnsnames.ora.

You type "tnsping tns" and if you have default_domain set it is looking for an alias in tnsnames.ora called tns.websmiths.com.

Can't answer your remaining UNKNOWN at the moment, sorry
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 39875745
Actually, the UNKNOWN is because you've static definitions of them in SID_LIST in listener.ora rather than having the listener auto detect them, I believe.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (ORACLE_HOME = /oraeng/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME = orcl.websmiths.com)
    )
    (SID_DESC =
      (ORACLE_HOME = /oraeng/app/oracle/product/11.2.0/dbhome_1)
      (SID_NAME = omf.websmiths.com)
    )
  )
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39876636
>>than having the listener auto detect them, I believe

Just for information:  The listener doesn't auto detect.  The instance registers itself with the listener when it starts.  The instance looks for a default listener or for whatever the local_listener spfile parameter is set to.
0
 

Author Comment

by:Ralph
ID: 39878234
Thank you very much for your assistance.  Moving on now to master other interesting  features.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Make the most of your online learning experience.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

627 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