Database Networking (MOSC)

MOSC Banner

How to force use of Hostname adapter?

edited Jan 24, 2014 7:04AM in Database Networking (MOSC) 3 commentsAnswered
We are using database version 11.2.0.3

The tnsping locally to the host name takes a while to respond.

-bash-4.1$ tnsping stdb

TNS Ping Utility for Solaris: Version 11.2.0.3.0 - Production on 23-JAN-2014 14:42:06

Copyright (c) 1997, 2011, Oracle.  All rights reserved.

Used parameter files:
/ebs/stdata/oracle11g/db_home/network/admin/sqlnet.ora


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = stdb)))
OK (230 msec)
-bash-4.1$

I tried another way and found that use HOSTNAME adapter to resolve the alias is faster then the TNSNAMES adapter. How can I force the database to use HOSTNAME adapter? Gurus, please advise.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center