How to force use of Hostname adapter?
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.