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 » IBM MQ Installation/Configuration Support » error when starting the QMGR

Post new topic  Reply to topic
 error when starting the QMGR « View previous topic :: View next topic » 
Author Message
balaji sr
PostPosted: Wed Jun 30, 2004 11:49 pm    Post subject: error when starting the QMGR Reply with quote

Apprentice

Joined: 07 Jan 2003
Posts: 28

Hi,
When I execute the following script to start the queue manager, I am getting the error AMQ9509: Program cannot open queue manager object.

But the queue manager and the command server are up & runing. Can any one help me on this ....


Script to start the queue manager:

#!/bin/ksh
# Startup script for the queue manager QMGR1

PATH=$PATH:/usr/local/mqm/bin:/opt/mqm/bin

for qmgr in "QMGR1"
do
# start the Queue Manager
strmqm $qmgr
sleep 5
# start the command server for the Queue Manager
strmqcsv $qmgr
sleep 5
# start the channel initiator for the Queue Manager
runmqchi -m $qmgr -q SYSTEM.CHANNEL.INITQ &
done



This is what I found out from the queue manager log

-------------------------------------------------------------------------------
06/30/04 04:40:11 AM
AMQ9509: Program cannot open queue manager object.

EXPLANATION:
The attempt to open either the queue or queue manager object
'SYSTEM.CHANNEL.INITQ' on queue manager 'PHXID004_T2' failed with reason code
2042.
ACTION:
Ensure that the queue is available and retry the operation.
-------------------------------------------------------------------------------
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
vennela
PostPosted: Thu Jul 01, 2004 4:16 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

That's because you don't have to explicitly start the channel initiator again. On UNIX platforms, if you start the QMGR then channel initiator will also be started for SYSTEM.CHANNEL.INITQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Thu Jul 01, 2004 7:24 am    Post subject: Reply with quote

Grand High Poobah

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

How do you handle your listeners ?

before starting the manager we start the listener:
Code:
runmqlsr -m $1 -t tcp -p $2 &

where $1 is the queue manager name and $2 is the port the listener runs on (default 1414)

Have fun.
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Thu Jul 01, 2004 9:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

fjb_saper wrote:
How do you handle your listeners ?

inetd is another option
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bbburson
PostPosted: Thu Jul 01, 2004 10:19 am    Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

fjb_saper wrote:
before starting the manager we start the listener:
Code:
runmqlsr -m $1 -t tcp -p $2 &



Is there a reason for starting the listener before starting the queue manager? We start the manager first, then the listener. On shutdown the manager has to be stopped first because the listener will not come down if the manager is still running.

Just curious if start order makes any difference.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Jul 01, 2004 10:51 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I don't think it really matters. However, I remember once hearing somebody at the conference indicate that you should have your listener running even when the queue manager wasn't. It had something to do with getting more graceful failures back to your client.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » error when starting the QMGR
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.