Author |
Message
|
Yannanlu |
Posted: Thu Mar 29, 2007 12:50 pm Post subject: How to recover the default channel definitions? |
|
|
Apprentice
Joined: 23 Jan 2002 Posts: 27
|
Due to security reason, we have removed most of the default channels. Now we want to create some of the channels. But we can not do that since the default channel is gone. We do not have any channels of the same type (RCVR). Is there any way to create the channel without the default definitions? How to recover the default channel definitions?
Thanks in advance |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Mar 29, 2007 10:21 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
Yannanlu |
Posted: Fri Mar 30, 2007 4:26 am Post subject: |
|
|
Apprentice
Joined: 23 Jan 2002 Posts: 27
|
Thanks. I tried and it works. But it is almost same as to recreate the qmgr and to restore the definitions. I guess there is no way to recover them without stopping the qmgr.
From now on, I will set mcauser to disable those default channels rather than deleting them.
Thanks for the help,
Yannan |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 30, 2007 4:55 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Well, you can also use saveqmgr against a different qmgr that has the default channels, and then use the resulting mqsc to recreate the definitions. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Yannanlu |
Posted: Sat Mar 31, 2007 1:00 pm Post subject: |
|
|
Apprentice
Joined: 23 Jan 2002 Posts: 27
|
I have tried that. It did not work. It complains about missing object.
Thanks for reply.
Yannan |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Mar 31, 2007 5:26 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Yannanlu wrote: |
Thanks. I tried and it works. But it is almost same as to recreate the qmgr and to restore the definitions. I guess there is no way to recover them without stopping the qmgr.
From now on, I will set mcauser to disable those default channels rather than deleting them.
Thanks for the help,
Yannan |
Good call
We set a non existant user in the mcauser field.
You have to remember however to put the right value into every channel you create...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Apr 01, 2007 2:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yannanlu wrote: |
I have tried that. It did not work. It complains about missing object. |
Try creating SYSTEM.DEFAULT.LOCAL.QUEUE with a LIKE clause that points to an existing queue.
Then ALTER that to match the definitions you need. This should allow you to at least create all the rest of the qlocals.
Similarly, if you can't create any MODEL queues, do the same with SYSTEM.DEFAULT.MODEL.QUEUE, and etc.
Or go back to strmqm -c. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Michael Dag |
Posted: Sun Apr 01, 2007 2:24 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Jeff,
he wants to create a receiver channel, but has no channels of type receiver anymore... so there is no LIKE to use...
using another channel type as model will result in:
AMQ8151: WebSphere MQ object has different type _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Apr 01, 2007 4:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Oh, yeah. I guess strmqm -c is about the only way. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|