|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to delete broker when QM does not exist? |
« View previous topic :: View next topic » |
Author |
Message
|
zpat |
Posted: Tue Aug 16, 2011 2:01 am Post subject: How to delete broker when QM does not exist? |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
WMB 7002 on AIX
I accidentally deleted the queue manager associated with a WMB 7 broker, before deleting the broker.
I want to delete both, but when I now try to delete the broker, I get this:
Quote: |
mqsideletebroker XXXXXX
AMQ8118: WebSphere MQ queue manager does not exist.
BIP8052E: Unable to delete WebSphere MQ object 'SYSTEM.BROKER.ADMIN.QUEUE' from queue manager 'XXXXXX'.
This command attempts to delete a WebSphere MQ object but was unable to do so.
Locate and resolve the problem and retry the command. This could be because a WebSphere MQ channel is still running. If this is the case, stop all WebSphere MQ channels running on behalf of this queue manager. If any applications are connected to your broker, you may need to stop these as well.
|
Any idea what is the easiest way to delete the broker in this case?
If the answer is to first recreate the queue manager (I don't have a backup of its definitions) then how can most easily I re-create the broker queues etc? |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Aug 16, 2011 2:27 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
How about this
1) Find another QM that is used by Broker
2) run saveqmgr and get ALL the SYSTEM.BROKER queue defs
3) Create a dummy qm for the broker you are going to have to trash
4) add the SYSTEM.BROKER defs from 2) above
5) delete broker
6) stop and delete qmgr
Start again _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
zpat |
Posted: Tue Aug 16, 2011 2:31 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Thanks
Presumably I will have to add the broker svrconn channel as well.
What about broker topic objects? Subscriptions?
Could do with an option on mqsideletebroker to skip the MQ object deletion part. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 16, 2011 5:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I don't think you need to recreate any SYSTEM.BROKER objects.
in fact, I just tried it... I created a test broker, stopped it's qmgr, deleted it's qmgr, created a new one with the same name, and was able to run mqsideletebroker with no issues.
Of course, that was version 7.0.0.3.... |
|
Back to top |
|
 |
zpat |
Posted: Tue Aug 16, 2011 5:21 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Thanks, I did that and used "mqsideletebroker XXXXXX -q" to delete both at once. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|