Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: TNSPING another question
At 12:28 PM 12/20/2002, John Shaw wrote:
>It's probably in the fine manual somewhere - but I haven't found it yet
> From my pc:
>I can ping the IP address of the server and response time is 10 ms
>ping the name of the server and response time is 10 ms
>tnsping of IP is 10 ms
>but tnsping of the name is 1000 ms
>any reason why this would be?
Note that for most people "ping hostname" and "tnsping hostname" are rather different animals. "ping hostname" resolves hostname through DNS (generally). "tnsping hostname" looks up hostname in your tnsnames.ora file and then resolves the server name specified there through DNS (generally).
Assuming you're aware of these differences, the first thing I'd look at is how you've set up TNS, particularly the order you've specified to try to resolve things. I would guess that TNS is set up to try to resolve a host name through some method other than DNS (assuming ping hostname is resolved by DNS and not some other protocol, /etc/hosts, etc) and then to use DNS.
For example, if you set up TNS to use Oracle Names first and DNS second, and the hostname in question wasn't in your Oracle Names server, you'd have to wait for the Names server to come back saying it couldn't find the host name before querying DNS.
Justin Cave
Distributed Database Consulting
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Justin Cave INET: jcave_at_cableone.net Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Sat Dec 21 2002 - 05:43:37 CST
![]() |
![]() |