Configuring tnsnames.ora / listener.ora with HOST = localhost
Dear Oracle experts,
presently I'm trying to configure an Oracle installation on a Win2k server
to work with HOST = localhost entries in my tnsnames.ora and listener.ora.
I have to do that because I want to use that Oracle installation as an image
for several computers which will get different IPs and computer names.
My problem is, taht I only can configure my entries with a real IP adres (127.0.0.1 does not work ) or with the present name of the system but not with localhost or 127.0.0.1.
My listener.ora looks like below :
# listener.ora Network Configuration File: D:\oracle\product\10.1.0\Db_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SDU = 4096)
(SID_NAME = EMS)
(ORACLE_HOME = D:\oracle\product\10.1.0\Db_1)
(PRESPAWN_MAX = 10)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost )(PORT = 1521))
)
)
The listener above lead to a
ERROR - ORA-12541: TNS:no listener
if I try to connect via iSQLPlus. If I exchange HOST = localhost with HOST = mydnsname the I can connect to the computer via isqlplus.
Is there any possibility to configure the listener and tnsnames without using real IP adresses ?
Best regards,
Daniel Wetzler