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:
[[email protected]:~]$ srvctl stop listener LISTENERPRKO-2002 : Invalid command line option: LISTENER [[email protected]:~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): mytestexa2,mytestexa4,mytestexa1,mytestexa3
Hmmmm. ok, then I tried this:
[[email protected]:~]$ srvctl stop listener LISTENER -n mytestexa1PRKO-2002 : Invalid command line option: LISTENER
Well, ummm ok, then I tried this one:
[[email protected]:~]$ srvctl stop listener -n mytestexa1[[email protected]:~]$ 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.
No comments