Author |
Message
|
andyz |
Posted: Fri Jul 26, 2002 9:52 am Post subject: how to delete a damaged dynamical queue |
|
|
Newbie
Joined: 26 Jul 2002 Posts: 3
|
When I display queue in my queue manger, I have some damaged queues.
I knew those queues created dynamically when a user log on.
My question:
1. What causes those queue damaged?
2. How to delete those queues?
Thanks.
Here are the display result:
....
AMQ8149: MQSeries object damaged.
[2016, R0912322_GI_Endoscopy_24908456]
AMQ8149: MQSeries object damaged.
[2016, R0912323_GI_Endoscopy_26117685]
AMQ8149: MQSeries object damaged.
[2016, R0912323_GI_Endoscopy_26117685]
AMQ8149: MQSeries object damaged.
[2016, R0912360_GI_Endoscopy_97189691]
AMQ8149: MQSeries object damaged. |
|
Back to top |
|
 |
mgrabinski |
Posted: Sun Jul 28, 2002 9:23 pm Post subject: damaged queues |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi!
The message "queue damaged" is usually issued when the physical file representing the queue has been damaged or is missing.
If you are using linear log, you can recover the damaged object - use rcvmqobj
HTH _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
andyz |
Posted: Mon Jul 29, 2002 4:24 am Post subject: Re: damaged queues |
|
|
Newbie
Joined: 26 Jul 2002 Posts: 3
|
No, I used CIRCULAR log. So the damaged queue can't be recovered.
I want to delete and recreate it.
Thanks  |
|
Back to top |
|
 |
mgrabinski |
Posted: Mon Jul 29, 2002 4:50 am Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
You cannot do anything with an object marked by MQSeries as 'damaged' if don't using linear logs...
I'll think on it, but for now I don't have any good answer.. _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
GMcCarthy |
Posted: Mon Jul 29, 2002 9:28 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
Are you are asking how a damaged queue can be deleted? What platform? What release? _________________ Regards,
Gina
IBM Certified MQSeries Specialist |
|
Back to top |
|
 |
arinduer |
Posted: Tue Jul 30, 2002 12:09 am Post subject: |
|
|
 Acolyte
Joined: 13 Aug 2001 Posts: 50 Location: Phuket, Thailand
|
It might be quicker using "saveqmgr" support pack (MS03) to save all the good objects, and then recreating the QMGR. After the QMGR is recreated, then you can recreate the damaged queue.
The support pac is located here:
http://www-3.ibm.com/software/ts/mqseries/txppacs/txpm2a.html#cat2
In any case, maybe now is a good opportunity to cron saveqmgr so that in the future, it'll be alot easier to recover from a corrupt object or QMGR.
--
Eric (arinduer)
phuketsmile.com
info@phuketsmile.com |
|
Back to top |
|
 |
GMcCarthy |
Posted: Tue Jul 30, 2002 2:47 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
There is no need to rebuild the qmgr. You can delete the object and recreate it by deleting the object directory. If you let me know the platform and release, I'll walk you thru it.
Also, if you use saveqmgr, you will lose your messages without additional work. _________________ Regards,
Gina
IBM Certified MQSeries Specialist |
|
Back to top |
|
 |
mgrabinski |
Posted: Tue Jul 30, 2002 9:45 pm Post subject: damaged queues |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi Gina!
Have you tried this? I've done some experiments on Win2K without any success. I think that MQSeries "marks" the object as damaged and doesn't allow any operations on it unless it is recovered by means of the rcvmqobj command.
If you however have made, please share the details with us - it's always good to learn something new  _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
GMcCarthy |
Posted: Wed Jul 31, 2002 3:44 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
I've experimented with this on AIX several times with success.
Example:
QMGR=AIXQM1
QName=QL.AIX
cd var/mqm/qmgrs/AIXQM1/queues/QL!AIX
rm q
cd..
rmdir QL!AIX
mkdir QL!AIX
cd QL!AIX
vi q <====create file
This will allow you to delete the queue:
runmqsc AIXQM1
delete ql(QL.AIX)
You may get an unexpected error along with a message that the queue WAS deleted. Then you can define the queue.
Try this on a test system and post your results. Thanks!
I'm going to attempt this on WNT and let you know if I was successful!
I was able to do this on Windows NT as well. A bit quirky but, it eventually let me delete the queue. _________________ Regards,
Gina
IBM Certified MQSeries Specialist |
|
Back to top |
|
 |
mgrabinski |
Posted: Wed Jul 31, 2002 4:14 am Post subject: damaged queues |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi Gina!
Thank you for your recipe! I've tried it on Win2K - it's worked exactly as you said. I've got "unexpected error" message, but the queue has been deleted and I was able to recreate it.
Thanks! _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
|