Listener port number as alias name in listener.ora file
654755Jun 8 2009 — edited Jun 8 2009Hi,
I heard that TCP/IP port number can be specified as either a number or the alias name mapped to the port in the /etc/services file.
I have added this port number in /etc/services file as follows
#######################################
listener 1521/tcp #oracle listener port number
#######################################
and i have added this alias name in listener.ora file as follows
################################################
(ADDRESS = (PROTOCOL = TCP)(HOST = 15.154.53.66)(PORT = listener))
################################################
but when i start the listener, it is giving me this error.
######################################################################################
$ lsnrctl start oracle
LSNRCTL for HPUX: Version 10.2.0.4.0 - Production on 08-JUN-2009 18:21:15
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Starting /opt/oracle/product/10.2.0.1.0/bin/tnslsnr: please wait...
TNSLSNR for HPUX: Version 10.2.0.4.0 - Production
System parameter file is /opt/oracle/product/10.2.0.1.0/network/admin/listener.ora
Log messages written to /opt/oracle/product/10.2.0.1.0/network/log/oracle.log
TNS-01150: The address of the specified listener name is incorrect
TNS-01153: Failed to process string: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=15.154.53.66)(PORT=listener)))
Listener failed to start. See the error message(s) above...
#####################################################################################
Could any one please let me know the mistake i did here or the right way of achieving this?
Thanks..