ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » How to clear local queue

Post new topic  Reply to topic Goto page Previous  1, 2
 How to clear local queue « View previous topic :: View next topic » 
Author Message
AnAtomist.NoElectrons
PostPosted: Wed Mar 26, 2014 8:10 am    Post subject: Object is in use (open exclusive) by Omegamon/Candle Reply with quote

Newbie

Joined: 11 Mar 2014
Posts: 4

Our production QMgrs are monitored by Omegamon/Candle. I cannot stop them without affecting entire alerts function. Please suggest alternatives.
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Mar 26, 2014 8:26 am    Post subject: Re: Object is in use (open exclusive) by Omegamon/Candle Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

AnAtomist.NoElectrons wrote:
Our production QMgrs are monitored by Omegamon/Candle. I cannot stop them without affecting entire alerts function. Please suggest alternatives.

You could temporarily remove access to the affected queues (setmqaut) then use MO71 to select and delete the messages you wish gone, and re-enable authorities after. Situations like this are one good reason to use a QALIAS as a first-resolution object.
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
suneel
PostPosted: Thu Mar 27, 2014 7:14 am    Post subject: Reply with quote

Voyager

Joined: 06 Nov 2009
Posts: 89

What is the OS you are using?
If it is Linux or solaris you can use qload.
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Thu Mar 27, 2014 7:23 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You can use Qload on more than that - and also, with a client connection you can attach to any QM.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Thu Mar 27, 2014 9:11 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

suneel wrote:
What is the OS you are using?
If it is Linux or solaris you can use qload.

You missed the part where GET is disabled, so no it can't.
Back to top
View user's profile Send private message AIM Address
bruce2359
PostPosted: Thu Mar 27, 2014 9:48 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

JosephGramig wrote:
suneel wrote:
What is the OS you are using?
If it is Linux or solaris you can use qload.

You missed the part where GET is disabled, so no it can't.

This is perhaps the best reason for applications to always MQOPEN QAlias (or QRemote) definition, rather than a QLocal. This allows us to get(disable) the alias while we do our evil deed on the get(enabled) TARGET of the alias.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Thu Mar 27, 2014 10:52 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

bruce2359 wrote:
JosephGramig wrote:
suneel wrote:
What is the OS you are using?
If it is Linux or solaris you can use qload.

You missed the part where GET is disabled, so no it can't.

This is perhaps the best reason for applications to always MQOPEN QAlias (or QRemote) definition, rather than a QLocal. This allows us to get(disable) the alias while we do our evil deed on the get(enabled) TARGET of the alias.
Back to top
View user's profile Send private message AIM Address
AnAtomist.NoElectrons
PostPosted: Fri Mar 28, 2014 11:20 am    Post subject: Thank you for all suggestions. Reply with quote

Newbie

Joined: 11 Mar 2014
Posts: 4

Hi all,
Thank you for all the great suggestions. I will try to convince my team to have QAliases for all Qs, to prevent future issues. I appreciate all your quick help.
Thanks.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Mon Mar 31, 2014 1:25 pm    Post subject: Re: Thank you for all suggestions. Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

AnAtomist.NoElectrons wrote:
Hi all,
Thank you for all the great suggestions. I will try to convince my team to have QAliases for all Qs, to prevent future issues. I appreciate all your quick help.
Thanks.

Or design the app to avoid the need to clear local queues, or request the app to develop their own capability to clear / process quques.
_________________
Glenn
Back to top
View user's profile Send private message
alexf400
PostPosted: Thu Apr 10, 2014 3:26 am    Post subject: Reply with quote

Newbie

Joined: 10 Apr 2014
Posts: 8

Try using the rfhutil tool. That can delete messages when processes are still attached to the queue.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Apr 10, 2014 3:37 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

So can MO71 or MQ explorer - just choose the MQGET option. But it can be painfully slow over a client connection with many messages.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » How to clear local queue
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.