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 Discussion » purging an MQ local Queue from AIX

Post new topic  Reply to topic
 purging an MQ local Queue from AIX « View previous topic :: View next topic » 
Author Message
hin3407
PostPosted: Mon Nov 19, 2012 10:35 am    Post subject: purging an MQ local Queue from AIX Reply with quote

Centurion

Joined: 17 Oct 2006
Posts: 120

How can I purge a local MQ queue from AIX if I am unable to do it via PCF command or locally via a clear ql(QUEUE) command?

My command hangs when I try it via MQSC. Can I purge a local queue file to purge just the data but not the queue and properties?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Nov 19, 2012 11:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Use the amsmqget sample program to read all the messages.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
hin3407
PostPosted: Mon Nov 19, 2012 11:17 am    Post subject: Reply with quote

Centurion

Joined: 17 Oct 2006
Posts: 120

Still hangs, any other suggestions?

What about purging a local queue file somewhere?
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Nov 19, 2012 11:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Support pac MA01
Back to top
View user's profile Send private message
Andyh
PostPosted: Mon Nov 19, 2012 11:35 am    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 239

If an MQ command hangs you should contact IBM support.
Were any FDC's produced, in particular were any long lock wait FDC's produced ?
If the queue is extremely deep and the index for this queue is being loaded into memory, then no other operation can complete against this queue until the index is fully loaded. In these circumstances the load is likely to be I/O (read) intensive.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Nov 19, 2012 11:45 am    Post subject: Reply with quote

Poobah

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

hin3407 wrote:
Still hangs...

What do you mean by this? Exactly what command(s) did you issue?
_________________
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
hin3407
PostPosted: Mon Nov 19, 2012 12:11 pm    Post subject: Reply with quote

Centurion

Joined: 17 Oct 2006
Posts: 120

Here is a copy:

server****:/var/mqm/errors#runmqsc QMGR***
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
Starting MQSC for queue manager QMGR***.


clear ql(QUEUEU NAME)



----------
It just hangs and does not process anything after that.
Back to top
View user's profile Send private message
exerk
PostPosted: Tue Nov 20, 2012 12:49 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

lancelotlinc wrote:
Use the amsmqget sample program to read all the messages.

Would that be the amqsget sample, or something else?
_________________
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
lancelotlinc
PostPosted: Tue Nov 20, 2012 6:43 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

exerk wrote:
lancelotlinc wrote:
Use the amsmqget sample program to read all the messages.

Would that be the amqsget sample, or something else?


So sorry, its been a while since I've used it.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Tue Nov 20, 2012 6:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

hin3407 wrote:
Still hangs, any other suggestions?

What about purging a local queue file somewhere?


Impossible,
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Tue Nov 20, 2012 6:44 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

lancelotlinc wrote:
exerk wrote:
lancelotlinc wrote:
Use the amsmqget sample program to read all the messages.

Would that be the amqsget sample, or something else?


So sorry, its been a while since I've used it.

No worries, I was wondering whether it was a third-party offering or similar.
_________________
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
bruce2359
PostPosted: Tue Nov 20, 2012 7:16 am    Post subject: Reply with quote

Poobah

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

Other than this symptom, does the qmgr work at all?

Do application programs run successfully?
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » purging an MQ local Queue from AIX
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.