Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

When Current_Listener is set, can we operate other listeners

Go to solution
Occasional Advisor

When Current_Listener is set, can we operate other listeners


When Current_Listener is set, can we operate
other listeners. Will Oracle execute or
popup error message ? I do not have mutiple
isteners to test. If someone has, please test
and reply me.

lsnrctl> set current_listener DEVDB_listener
lsnrctl> stop UAT_listener

Indira Aramandla
Honored Contributor

Re: When Current_Listener is set, can we operate other listeners


Yes you can operate multiple listeners, as long as you specify the listener name or set the CURRENT_LISTENER in the lsnrctl prompt.

The LSNRCTL utility will require that you specify the non-default listener name
when issuing commands:

The following example shows a listener nonfigured for 2 non-default listener names.
LSNR817 and LSNR901. LSNR817 is servicing a pre-8i database installed in a separate
ORACLE_HOME. ORACLE_HOME value in the SID_DESC section should be the correct one.

C:\> lsnrctl start LSNR901
C:\> lsnrctl status LSNR817

Or alternatively,

lsnrctl>set current_listener LSNR901
Attached is a dicument that details a bit more.

I hope this helps.

Indira A
Never give up, Keep Trying
Honored Contributor

Re: When Current_Listener is set, can we operate other listeners

hi Ezhil,

The Listener Control utility enables you to administer listeners.You can use its commands to perform basic management functions on one or more listeners. Additionally, you can view and change parameter settings.

The basic syntax of Listener Control utility commands is as follows:

lsnrctl command [listener_name]

where listener_name is the name of the listener to be administered. If no name is specified, then the default name, LISTENER, is assumed.

You can also issue Listener Control utility commands at the LSNRCTL> program prompt. To obtain the prompt, enter lsnrctl with no arguments at the operating system command line. When you run lsnrctl, the program is started. You can then enter the necessary commands from the program prompt. The basic syntax of issuing commands from LSNRCTL> program prompt is as follows:

LSNRCTL> command [listener_name]

see also:

hope this helps too!
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)