ls-status

I have to stop the listener process one by one..
Is there any way I can stop all the listener process in one shot..


[oracle@newmac db]$ cd dbs
[oracle@newmac dbs]$ ls
expdp_scott.par  init.ora        lkTPS       orapwtps       spfiletest.ora
hc_DBUA0.dat     initstand.ora   nohup.out   peshm_DBUA0_0
hc_stand.dat     initstand.ora~  orapwdest   peshm_dest_0
hc_test.dat      lkDEST          orapwstand  peshm_test_0
hc_tps.dat       lkTEST          orapwtest   peshm_tps_0
[oracle@newmac dbs]$ . oraenv stand
ORACLE_SID = [oracle] ? stand
The Oracle base for ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db is /oracle/app/oracle
[oracle@newmac dbs]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 12:37:08

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
[oracle@newmac dbs]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 12:37:15

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

Starting /oracle/app/oracle/product/11.2.0/db/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/network/admin/listener.ora
Log messages written to /oracle/app/oracle/diag/tnslsnr/newmac/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=newmac)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                13-SEP-2013 12:37:16
Uptime                    0 days 0 hr. 0 min. 2 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/app/oracle/product/11.2.0/db/network/admin/listener.ora
Listener Log File         /oracle/app/oracle/diag/tnslsnr/newmac/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=newmac)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@newmac dbs]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 12:37:24

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
[oracle@newmac dbs]$ . oraenv test
ORACLE_SID = [stand] ? test
The Oracle base for ORACLE_HOME=/oracle/app/oracle/product/11.2.0/db is /oracle/app/oracle
[oracle@newmac dbs]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 13:27:35

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
[oracle@newmac dbs]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 13:27:40

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
[oracle@newmac dbs]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 13:27:45

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

Starting /oracle/app/oracle/product/11.2.0/db/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/network/admin/listener.ora
Log messages written to /oracle/app/oracle/diag/tnslsnr/newmac/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=newmac)(PORT=1521)))

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                13-SEP-2013 13:27:46
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/network/admin/listener.ora
Listener Log File         /oracle/app/oracle/diag/tnslsnr/newmac/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=newmac)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@newmac dbs]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-SEP-2013 13:27:48

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
The command completed successfully
[oracle@newmac dbs]$
jcob_lAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DavidSenior Oracle Database AdministratorCommented:
Well, it depends :)  It seems simple enough to write a WHILE loop of some sort to cycle through each instance stop and include its listener.  Or even a FOR loop with the list of listeners to be acted upon.

If you're using a more complex environment, such as RAC, there's a lot of new (and confusing) options by using a net listener.  The following snippet is extracted from http://docs.oracle.com/cd/E11882_01/network.112/e10836/listenercfg.htm#i485371 .

 The SRVCTL utility enables you to stop and start the listener. If you do not specify the -l parameter, then SRVCTL starts and stops the default listener.

    Enter srvctl start listener to start a listener.

    For example, the first command starts the default listener, and the second command starts listener1 and listener2:

    % srvctl start listener
    % srvctl start listener -l listener1,listener2

    Enter srvctl stop listener to stop a listener.

    For example, the first command stops the default listener, and the second command stops listener1 and listener2:

    % srvctl stop listener
    % srvctl stop listener -l listener1,listener2
0
jcob_lAuthor Commented:
any command to list all the listeners in a server
0
DavidSenior Oracle Database AdministratorCommented:
A listener service may be named anything (usual kind of limits) from a to z.  Nothing comes to my mind.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jcob_lAuthor Commented:
ok
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.