At 12:28 PM 12/20/2002, John Shaw wrote:
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).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?
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).
