This quick and short blog post is a reminder to remember the syntax. I was just trying to bring down local listeners at half rack of Exadata (11gR2) to perform some maintenance. The best way to shutdown resources in RAC is to use srvctl so was trying to run following after setting Grid home as Oracle home, from where the local listeners were running: [oracle@mytestexa1:~]$ srvctl stop listener LISTENER PRKO-2002 : Invalid command line option: LISTENER [oracle@mytestexa1:~]$ srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): mytestexa2,mytestexa4,mytestexa1,mytestexa3 Hmmmm. ok, then I tried this: [oracle@mytestexa1:~]$ srvctl stop listener LISTENER -n mytestexa1 PRKO-2002 : Invalid command line option: LISTENER Well, ummm ok, then I tried this one: [oracle@mytestexa1:~]$ srvctl stop listener -n mytestexa1 [oracle@mytestexa1:~]$ srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): mytestexa2,mytestexa4,mytestexa3 And it worked. Yes, if the default listener name is not in use, then -l listener_name should be used. So need to remember the syntax :) . Small things, but in emergencies they cast large shadows for a while.
Share this
Previous story
← The value of Pythian’s internship program
You May Also Like
These Related Stories
Removing SQL Reporting Services instances from scale out deployment
Removing SQL Reporting Services instances from scale out deployment
Dec 19, 2023
2
min read
How to find unused indexes and drop them safely in MongoDB
How to find unused indexes and drop them safely in MongoDB
Sep 27, 2018
2
min read
How to Support Your Remote Workforce by Improving Access to Information With Cloud Based Tools
How to Support Your Remote Workforce by Improving Access to Information With Cloud Based Tools
Apr 7, 2020
2
min read
No Comments Yet
Let us know what you think