Author |
Message
|
SimplyAniket |
Posted: Sat Sep 13, 2008 2:54 am Post subject: MQ Objects damaged |
|
|
 Novice
Joined: 13 Sep 2008 Posts: 13
|
Hi,
I am trying to understand the hoe to recover damaged objects.
1.My queue manager is using circular logging.
2.Its on windows
3. Version 6.0
What i did is i deleted one queue file. I got the error as object damaged when i tried to display the queue. Then i stopped queue manager. Deleted q folder. started queue manager again and tried to recreate by using define ql command but still i am getting the same error as object damaged. I want to know how to create damaged objects in case of circular logging on both windows and linux platforms |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Sep 13, 2008 3:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
before trying to redefine the damaged object try deleting it again.
In order to recover damaged objects you need media recovery => linear logging. To get to linear logging use MS03 to record your qmgr config and delete and recreate your qmgr.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
SimplyAniket |
Posted: Sat Sep 13, 2008 3:31 am Post subject: |
|
|
 Novice
Joined: 13 Sep 2008 Posts: 13
|
hi,
thanx for suggestion but there is nothing to delete again. I have already deleted the folder. Is there any way to create damaged object again. If i simply give define ql it says object already exists. and when i give define ql (XXX) REPLACE it says object damaged. It means queue manages still has the log stored some where about that queue. Any suggestions? |
|
Back to top |
|
 |
Michael Dag |
Posted: Sat Sep 13, 2008 6:10 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
SimplyAniket wrote: |
hi,
thanx for suggestion but there is nothing to delete again. I have already deleted the folder. Is there any way to create damaged object again. If i simply give define ql it says object already exists. and when i give define ql (XXX) REPLACE it says object damaged. It means queue manages still has the log stored some where about that queue. Any suggestions? |
listen to fjb_saper.
first delete the object (using DELETE QL(....) NOT delete the folder!)
then recreate using DEFINE etc... _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Sep 13, 2008 11:17 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
This is why you should not allow anyone or anything (except WMQ internals) to access to the file path. _________________ 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.
Last edited by bruce2359 on Mon Sep 15, 2008 5:32 am; edited 1 time in total |
|
Back to top |
|
 |
Gaya3 |
Posted: Mon Sep 15, 2008 5:25 am Post subject: Re: MQ Objects damaged |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
SimplyAniket wrote: |
Hi,
I am trying to understand the hoe to recover damaged objects.
What i did is i deleted one queue file. I got the error as object damaged when i tried to display the queue. Then i stopped queue manager. Deleted q folder. started queue manager again and tried to recreate by using define ql command but still i am getting the same error as object damaged. I want to know how to create damaged objects in case of circular logging on both windows and linux platforms |
most probably you could see the image of the deleted queue while doing mqsc scripts, but the link have been broken.
Thats the reason you are getting queue manager object damage error
stop the queue manager
start using -c option again start the queue manager as usually this will resolve the issue _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
exerk |
Posted: Mon Sep 15, 2008 5:32 am Post subject: Re: MQ Objects damaged |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Gaya3 wrote: |
...start using -c option again start the queue manager as usually this will resolve the issue... |
And just what would this do to resolve SimplyAniket's issue with a user queue?
SimplyAniket - when you tried to redefine the queue, did you specify the REPLACE option? _________________ 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 |
|
 |
PeterPotkay |
Posted: Mon Sep 15, 2008 5:40 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I dug up my notes from the last time we had to do this ( a few years ago):
Quote: |
1. (company specific prep work in this step)
2. Leave the QM running.
3. Delete the damaged queue file from the Queue Manager's queue directory in the file system.
4. Stop and restart the Queue Manager.
5. Delete the damaged queue using MQExplorer.
6. Recreate the queue via MQExplorer. Refer to previous MS03 backups to make sure you recreate it exactly as it was before.
7. If the damaged queue was a transmit queue, other queue definitions (Remote Queue Defs, QMAliases) were altered to use a temporary backup queue that replaced the damaged queue. Now is the time to alter all those to point back at the real queue you just recreated.
8. If the damaged queue was a transmit queue, alter the channel to refer to the correct transmit queue, and not the temporary backup transmit queue.
9. Close MQExplorer.
10. Have the QM brought down and up (use MSCS if it is a HA QM) to see if the QM is happy with the new queue. Open up MQ Explorer to verify.
|
_________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
SimplyAniket |
Posted: Fri Sep 19, 2008 12:27 pm Post subject: |
|
|
 Novice
Joined: 13 Sep 2008 Posts: 13
|
Thanks for all your suggestions.. I used delete qlocal command .. and then was able to create the queue again... and yes i use REPLACE command..
I have one question left... Does it work same on Linux.. I deleted the queue file. when i fire display ql command i can see the queue ..but in windows i got object damaged.. Hows des? |
|
Back to top |
|
 |
|