Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Listener port number as alias name in listener.ora file

654755Jun 8 2009 — edited Jun 8 2009
Hi,
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..
This post has been answered by unknown-698157 on Jun 8 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 6 2009
Added on Jun 8 2009
6 comments
713 views