Author |
Message
|
nareshm1310 |
Posted: Sat Apr 02, 2011 6:29 am Post subject: Purging The Queue |
|
|
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 |
|
 |
fjb_saper |
Posted: Sat Apr 02, 2011 7:32 am Post subject: |
|
|
 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 |
|
 |
nareshm1310 |
Posted: Sat Apr 02, 2011 10:18 pm Post subject: Re Queue Purging |
|
|
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 |
|
 |
fjb_saper |
Posted: Sun Apr 03, 2011 4:38 am Post subject: Re: Re Queue Purging |
|
|
 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 |
|
 |
smdavies99 |
Posted: Sun Apr 03, 2011 5:06 am Post subject: Re: Re Queue Purging |
|
|
 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 |
|
 |
sankritya |
Posted: Sun Apr 03, 2011 9:58 pm Post subject: |
|
|
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 |
|
 |
zpat |
Posted: Sun Apr 03, 2011 11:05 pm Post subject: |
|
|
 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 |
|
 |
Mr Butcher |
Posted: Mon Apr 04, 2011 12:55 am Post subject: |
|
|
 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 |
|
 |
Pradeep_S |
Posted: Tue Apr 05, 2011 9:31 pm Post subject: |
|
|
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 |
|
 |
smdavies99 |
Posted: Tue Apr 05, 2011 10:18 pm Post subject: |
|
|
 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 |
|
 |
|