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 IBM MQ Support » Killing queue connection from console

Post new topic  Reply to topic
 Killing queue connection from console « View previous topic :: View next topic » 
Author Message
deb
PostPosted: Wed Sep 26, 2007 12:59 am    Post subject: Killing queue connection from console Reply with quote

Novice

Joined: 18 Jul 2007
Posts: 18
Location: Germany

Hello,

I am using MQSeries 5.3 in AIX.
My question is, How is it possible to kill a queue connection
from the AIX console.
I get a connection problem MQJE001: Completion Code 2, Reason 2042
which says the queue is already open.
This is a NOSHARE queue and i can have only one get connection which
is the requirement.
I dont want to restart the queue manager so i want to kill this queue
connection directly from console.
Can someone suggest how to do so?

Regards
Deb
Back to top
View user's profile Send private message Yahoo Messenger
Nigelg
PostPosted: Wed Sep 26, 2007 1:21 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Discover which app has the queue open, and end it. Try DIS QS(QUEUE) TYPE(HANDLE).
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
deb
PostPosted: Wed Sep 26, 2007 1:26 am    Post subject: Reply with quote

Novice

Joined: 18 Jul 2007
Posts: 18
Location: Germany

I have killed the application which had this connection, but still the queue connection seem to be open and getting 2042 error.

The qstatus command gives me the below output:

DISPLAY QSTATUS(MQ.QUEUE1) TYPE(HANDLE)
1 : DISPLAY QSTATUS(MQ.QUEUE1) TYPE(HANDLE)
AMQ8450: Display queue status details.
QUEUE(MQ.QUEUE1)
AMQ8450: Display queue status details.
QUEUE(MQ.QUEUE1)
AMQ8450: Display queue status details.
QUEUE(MQ.QUEUE1)
Back to top
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Wed Sep 26, 2007 2:48 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

  • In 6.0 only
    Code:
    dis conn(*) where(objname eq myqname)
    stop conn(conname from above)


  • In 5.3
    Code:
    dis qs(myqname) type(handle) all


    Make sure you kill/stop the pid/channel shown in the response....

  • Clusters
    Code:
    stop chl(myclusterchl) mode(quiesce) status(inactive)
    works wonders with cluster sender channels once the destination qmgr has been suspended from the cluster. Yes you need to find who the sender is and execute it on the sender qmgr...
    Code:
    dis chs(to.mydestqmgr)
    on the destqmgr will give you that information as should the queue status...
    You can also do a hard suspend and close the cluster receiver ....
    Code:
    suspend qmgr cluster(mycluster) mode(force)

    Don't forget to start the cluster receiver chl again when you're done and to resume the qmgr to the cluster...



Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
deb
PostPosted: Wed Sep 26, 2007 3:09 am    Post subject: Reply with quote

Novice

Joined: 18 Jul 2007
Posts: 18
Location: Germany

Thanks,

the command dis qs(myqname) type(handle) pid

gave me the PID which i killed and now things are working fine.

The lock is released.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Killing queue connection from console
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.