Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

When Current_Listener is set, can we operate other listeners

SOLVED
Go to solution
ezhilarasan_1
Occasional Advisor

When Current_Listener is set, can we operate other listeners

Hi,

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

Thanks
Ezhil
2 REPLIES
Indira Aramandla
Honored Contributor
Solution

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

Hi,

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,

c:\>lsnrctl
lsnrctl>set current_listener LSNR901
lsnrctl>status
Attached is a dicument that details a bit more.

I hope this helps.


Indira A
Never give up, Keep Trying
Yogeeraj_1
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
LSNRCTL> command [listener_name]

see also:
http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96581/lsnrctl.htm

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