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 » WebSphere Message Broker (ACE) Support » Purging The Queue

Post new topic  Reply to topic
 Purging The Queue « View previous topic :: View next topic » 
Author Message
nareshm1310
PostPosted: Sat Apr 02, 2011 6:29 am    Post subject: Purging The Queue Reply with quote

Newbie

Joined: 01 Apr 2011
Posts: 3

Hi,

Can any one tell me how to purge the queue. Because when i am using this command its showing the below message.


clear ql (ABCD.REPLY)
2 : clear ql (ABCD.REPLY)
AMQ8148: WebSphere MQ object in use.



Thanks in Advance
Naresh
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sat Apr 02, 2011 7:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

There is another option in MQExplorer that says clear queue by getting the messages or something like it. Use that one.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
nareshm1310
PostPosted: Sat Apr 02, 2011 10:18 pm    Post subject: Re Queue Purging Reply with quote

Newbie

Joined: 01 Apr 2011
Posts: 3

Hi ,

How can we do it Sun Solaris Box and AIX box???



Thanks in Advance
Naresh
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sun Apr 03, 2011 4:38 am    Post subject: Re: Re Queue Purging Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

nareshm1310 wrote:
Hi ,

How can we do it Sun Solaris Box and AIX box???



Thanks in Advance
Naresh


Same way... destructive MQGet...

Do you have a little more background? Why do you need to clear the queue? Is the application not consuming?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Sun Apr 03, 2011 5:06 am    Post subject: Re: Re Queue Purging Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

nareshm1310 wrote:
Hi ,

How can we do it Sun Solaris Box and AIX box???



Thanks in Advance
Naresh


The 'Q' program. Another Support Pack (in the MQ Section)
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
sankritya
PostPosted: Sun Apr 03, 2011 9:58 pm    Post subject: Reply with quote

Centurion

Joined: 14 Feb 2008
Posts: 100

Use rfhutilc.exe or MQ Explorer to connect to Queue Manager and clear the Queue. In rfhutilc.exe you need to use purge Q and in MQ Explorer clear using MQGetAPI Calls.
Back to top
View user's profile Send private message
zpat
PostPosted: Sun Apr 03, 2011 11:05 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

The QLOAD program is another way to do it. Support pac MO03. This is particularly useful for taking a backup of the messages as they are removed from the queue.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Mon Apr 04, 2011 12:55 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

if you are in a hurry and none of these supportpacs at hand also sample amqsget may do, but i dont know if the "accept truncated messages" option is set so it mail fail due to your message length
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Pradeep_S
PostPosted: Tue Apr 05, 2011 9:31 pm    Post subject: Reply with quote

Newbie

Joined: 05 Apr 2011
Posts: 1

try dis qs(<Q Name>) type(handle) all (will show holding app details wih PID)

grep PID for more details -- kill PID to clear or use QLOAD.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Apr 05, 2011 10:18 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Pradeep_S wrote:
try dis qs(<Q Name>) type(handle) all (will show holding app details wih PID)

grep PID for more details -- kill PID to clear or use QLOAD.


This is very dangerous. Please do not use it UNLESS you are very sure that the process you are killing is one of Defunct, hung, looping out of control.

What would happen if you killed a process that was
- called 'DataFlowEngine'
- That was also processing data from another input at the time you killed it?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Purging The 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.