Author |
Message
|
WBI_user |
Posted: Thu Aug 14, 2008 5:38 am Post subject: Delete a damaged queue object |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
I am running WebSphere MQ Version:6.0.2.1 on AIX in production
I have a queue which is damaged and I need to recreate it now. But I cannot interrupt the production system. I am using circular logging.
This damaged queue is only used when the application detects a probelm. So I am fine for now as long as the production application runs without any error.
$./amqsput ERROR.LOG PRDMQ1
Sample AMQSPUT0 start
target queue is ERROR.LOG
MQOPEN ended with reason code 2101
unable to open queue for output
Sample AMQSPUT0 end
When I tried to delete the queue under mqsc, I got
DELETE QL(ERROR.LOG )
1 : DELETE QL(ERROR.LOG )
AMQ8101: WebSphere MQ error (893) has occurred.
[1012, 20]
AMQ8148: WebSphere MQ object in use.
I llike to recreate the queue beofre it impact the prodcution application.
Any suggestion ? |
|
Back to top |
|
 |
exerk |
Posted: Thu Aug 14, 2008 5:48 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
WBI_user wrote: |
...This damaged queue is only used when the application detects a problem... |
I think you probably mean it only puts a message to the queue when there is a problem, and probably has the queue open ready 'just in case'.
Are you able to identify the process that is holding open the queue, and if so is it the application? Also, check for any FDC files that may have been cut.
Edit: DEFINE QL(<queue name>) REPLACE may be your salvation. _________________ 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 |
|
 |
WBI_user |
Posted: Thu Aug 14, 2008 6:22 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Here is the result for the define and display
DEFINE QL(ERROR.LOG) REPLACE
2 : DEFINE QLERROR.LOG) REPLACE
AMQ8101: WebSphere MQ error (893) has occurred.
[1012, 20]
AMQ8149: WebSphere MQ object damaged.
dis ql(ERROR.LOG)
1 : dis ql(ERROR.LOG)
AMQ8149: WebSphere MQ object damaged.
[2016, ERROR.LOG]
Because I cannot display it, I can only assume that no application actually have the queue open. My application developer told me that they will not open the queue until it is needed. However they cannot be sure if the queue was left opened at the time of error.
We cannot find any useful FDC pointing to the problem. We don't even know when the damage was done because the queue is not used all the time. |
|
Back to top |
|
 |
WBI_user |
Posted: Thu Aug 14, 2008 6:42 am Post subject: |
|
|
Partisan
Joined: 07 Aug 2001 Posts: 386
|
Problem solved
Thank you for tell me to check if the object was actually in used. I was able to tell from the QMGR display connections that another utility still have the q opened. Once I kill the connection. I can dleete the damaged q. Thanks a lot for the help. |
|
Back to top |
|
 |
guptavishesh6484 |
Posted: Thu Jun 04, 2009 10:55 am Post subject: Problem Solved |
|
|
Newbie
Joined: 04 Jun 2009 Posts: 3
|
I was getting exactly same problem with one queue VAATGW01. Problem is resolved by below
1) Deleted manually folder named as "VAATGW01" for Queue under location "C:\MQData\Qmgrs\VAATBK01\queues"
2) Restarted Queue Manager
3) Waited for 5 minutes (sometimes it takes time).
4) Then queue would automatically be deleted or u can attempt one ot two times to do same.
Njoy,
Vishesh |
|
Back to top |
|
 |
AkankshA |
Posted: Thu Jun 04, 2009 9:17 pm Post subject: Re: Problem Solved |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
guptavishesh6484 wrote: |
I was getting exactly same problem with one queue VAATGW01. Problem is resolved by below
1) Deleted manually folder named as "VAATGW01" for Queue under location "C:\MQData\Qmgrs\VAATBK01\queues"
2) Restarted Queue Manager
3) Waited for 5 minutes (sometimes it takes time).
4) Then queue would automatically be deleted or u can attempt one ot two times to do same.
Njoy,
Vishesh |
quite a destructive way....
better to do RCA and follow what our masters (IBM) says...  _________________ Cheers |
|
Back to top |
|
 |
|