Author |
Message
|
Robertm |
Posted: Wed Dec 31, 2003 5:32 am Post subject: Delete Cluster Queue |
|
|
Newbie
Joined: 27 Aug 2003 Posts: 8
|
Hi,
How to delete a queue in a cluster where there are two queues with the same name.
Regards,
Robert |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Dec 31, 2003 5:39 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Go to the Qmgr hosting the queue you want to delete and then delete.
It will be removed from the cluster automatically and only one will remain.
Michael |
|
Back to top |
|
 |
Robertm |
Posted: Wed Dec 31, 2003 5:53 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2003 Posts: 8
|
I tried the same on MQ Series 5.2 on windows 2000 using command RUNMQSC command DELETE QLOCAL(q-name), but i am getting message saying AMQ8147: MQSeries object TEST5 not found.
TEST5 is my queue manager name
thanks,
Robert |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Dec 31, 2003 6:03 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
on the machine where TEST5 Qmgr resides:
runmqsc TEST5
then in runmqsc window type: DELETE QLOCAL(thequeuetodelete)
Michael |
|
Back to top |
|
 |
Robertm |
Posted: Wed Dec 31, 2003 6:14 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2003 Posts: 8
|
Thanks for Reply Michael,
Sorry my Queue Name is TEST5,
i have issued following commands,
runmqsc <queue manager name>
then DELETE QLOCAL(TEST5) i have issued the error message i am getting is AMQ8147: MQSeries object TEST5 not found.
this is a queue in a cluster queue manager, there are two queues named TEST5.
i want to delete this queues issuing command.
thanks,
robert |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Dec 31, 2003 6:21 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
you need to go to the queuemanager that is HOSTING the actual Queue.
on your Queuemanager that did not find TEST5 do:
DIS QCLUSTER(TEST5) ALL
this will show you where the TEST5 queues actually reside (CLUSQMGR)
find the machine that hosts that queuemanager and delete the TEST5 queue there.
Michael |
|
Back to top |
|
 |
Robertm |
Posted: Fri Jan 02, 2004 1:15 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2003 Posts: 8
|
Thanks once again Michael for your reply.
The problem i faced while deleting a queue in a cluster queue manager on windows 2k platform using a runmqsc command DELETE QLOCAL, the queues created in same cluster through MQ explorer are not getting deleted, but queues created in the cluster using command DEFINE QLOCAL i am able to delete the queues through runmqsc command.
Is it a bug in MQ 5.2 product?? or i am doing any mistake.
pl. give your suggestion.
thanks
robertm |
|
Back to top |
|
 |
Robertm |
Posted: Mon Jan 05, 2004 9:19 pm Post subject: |
|
|
Newbie
Joined: 27 Aug 2003 Posts: 8
|
Is ther any way to delete a cluster queue by using date of creation of queue or using UID.
thanks,
robert |
|
Back to top |
|
 |
bduncan |
Posted: Tue Jan 06, 2004 11:26 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Robert,
If you issue DIS QCLUSTER(TEST5) from runmqsc, you should see the name of the queue manager that is hosting each instance of the queue. Remember, while there may be more than one instance of TEST5 in your cluster, only ONE instance can exist on each queue manager. The fact that you are seeing two instances means that there are two different queue managers hosting each instance. To delete each instance, you have to run runmqsc on that specific machine. You cannot delete a clustered queue from any node (queue manager) in the cluster except for the node where it is defined. And all this is pretty much a rehash of what Michael is saying.
Hope that explains it... _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|