You are on page 1of 11

CONFIGURE LISTENER USING NETCA

1) Login as oracle user


2) Set the SID and ORACLE_HOME
3) Go to directory $ORACLE_HOME/bin

Launch netca

$./netca

Choose “Listener Configuration” and click Next


Choose “Add” and click Next

Give the listener name .it can be any thing .In the example the listener name is
“LISTENER1”
Select protocol as TCP

Depending up on the Port number of the database select any of the option
Select “No” and click on next and then on Finish to exit netca

Now the listener is configured.


VIEW THE LISTEBER FILE AND START AND STOP THE LISTENER USING
lsnrctl

1) Open the file to the directory $ORACLE_HOME/network/admin/listener.ora

The file contents looks as below

2) Now Start the listener using the command line utility lsnrctl

[oracle@system2 admin]$ lsnrctl start LISTENER1

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 26-NOV-2010 14:58:08

Copyright (c) 1991, 2009, Oracle. All rights reserved.

Starting /oracle/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production


System parameter file is
/oracle/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /oracle/app/oracle/diag/tnslsnr/system2/listener1/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)
(HOST=system2.technorack.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)
(HOST=system2.technorack.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER1
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 26-NOV-2010 14:58:09
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/oracle/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /oracle/app/oracle/diag/tnslsnr/system2/listener1/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=system2.technorack.com)
(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@system2 admin]$

Similarly you can use

[oracle@system2 admin]$ lsnrctl stop LISTENER1

[oracle@system2 admin]$ lsnrctl status LISTENER1

CONFIGURE TNS USING NETCA

You might also like