Author |
Message
|
vineet.rawat |
Posted: Mon Oct 10, 2005 5:41 am Post subject: MQ Series Export |
|
|
Apprentice
Joined: 08 Aug 2005 Posts: 36
|
Is it possible to export a Queue Manager along with its queue (and Other Objects like channels) and related settings to another MQ server with same configuration. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Oct 10, 2005 6:13 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
check saveqmgr supportpac (ms03), this one is able to export the object definitions of one queuemanager so they can be importet into another.
if you want to copy queue contents there are several copy utilities, one is mqmon (mo71)
but there is no tool to export a "queuemanager" (all of it) _________________ Regards, Butcher |
|
Back to top |
|
 |
vineet.rawat |
Posted: Mon Oct 10, 2005 6:54 am Post subject: But how to import it to other queue server |
|
|
Apprentice
Joined: 08 Aug 2005 Posts: 36
|
Thanks Butcher I have done the way you have instructed. But Alias Queues and Transmission queues were not imported to other queue manager . Though I can see its defination in the script. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Oct 10, 2005 7:03 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
if not "imported" (i assume you use runmqsc with the saveqmgr created file) then you should see a proper message why not.
do the objects already exist? if so, replace is required.
do the objects already exist and are in use? if so, you must stop applications and channels first. _________________ Regards, Butcher |
|
Back to top |
|
 |
sebastianhirt |
Posted: Mon Oct 10, 2005 7:04 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
amqoamd will export you the OAM Settings.
When you applied the script to your 'new' queue manager, did it throw any error? |
|
Back to top |
|
 |
vineet.rawat |
Posted: Mon Oct 10, 2005 7:19 am Post subject: I could see the script for Alias and Trans Q but no errors |
|
|
Apprentice
Joined: 08 Aug 2005 Posts: 36
|
I have seen the script it has defination of all the objects. But when exectued only Local Queue defination was picked. Not even any error in the output. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Mon Oct 10, 2005 7:26 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
ahhh.... no
cut-paste one of the qalias definitions into a seperate file and test again with that file. it should work. if not, then there is an error shown.
post it please if you still think it does not work. (the input file and the command).
how do you check that the new queues exist? mq explorer? if so, make sure you used a refresh on all queues and that you display all queues. _________________ Regards, Butcher |
|
Back to top |
|
 |
BARIKAS |
Posted: Thu Aug 27, 2009 7:37 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2009 Posts: 7
|
Hi Vineet,
I am facing a problem in similar line as of you. I have one QUEUE Manager and it's objects on one server. I have to copy the QUEUE Manager with QUEUEs and Channels etc. (messages not required) to the new server.
I have used saveqmgr utility to take back up of the Queue Manager to create a .mqsc file. i have copied this file to new server.
I was trying to restore this Queue Manager from the file using
runmqsc QUEUE_MANAGER_NAME > QUEUE_MGR_BKP_FILE_NAME from command prompt. This is a windows server.
How did you export and import your Queue Manager ? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 27, 2009 7:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
BARIKAS wrote: |
I was trying to restore this Queue Manager from the file using
runmqsc QUEUE_MANAGER_NAME > QUEUE_MGR_BKP_FILE_NAME from command prompt. This is a windows server.
|
I think you mean
runmqsc QUEUE_MANAGER_NAME < QUEUE_MGR_BKP_FILE_NAME _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Sam Uppu |
Posted: Thu Aug 27, 2009 7:50 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
BARIKAS wrote: |
Hi Vineet,
I am facing a problem in similar line as of you. I have one QUEUE Manager and it's objects on one server. I have to copy the QUEUE Manager with QUEUEs and Channels etc. (messages not required) to the new server.
I have used saveqmgr utility to take back up of the Queue Manager to create a .mqsc file. i have copied this file to new server.
I was trying to restore this Queue Manager from the file using
runmqsc QUEUE_MANAGER_NAME > QUEUE_MGR_BKP_FILE_NAME from command prompt. This is a windows server.
How did you export and import your Queue Manager ? |
You should use:
runmqsc QUEUE_MANAGER_NAME < QUEUE_MGR_BKP_FILE_NAME from command prompt
You need to start the listener manually.
If your backup contains any queue names same as default SYSTEM.* queues, then you need to delete the SYSTEM.* queues before providing the saveqmgr backup to the runmqsc .
Here are teh steps:
1. Create the QMgr.
2. Start the qmgr
3. runmqsc QMgr name < qmgr_backup file
If you see an error for creating a queue, plz check in in the backup file whether that queue has been defined as a different object than the object exist on the qmgr.
If it is defined as a different object, then deleete the default SYSTEM. object and re-issue the command:
runmqsc QMgr name < qmgr_backup file
Hope this helps. |
|
Back to top |
|
 |
BARIKAS |
Posted: Thu Aug 27, 2009 7:51 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2009 Posts: 7
|
Brilliant Grand. How wonderful i was actually not using the < sign before file name. when i had given it restored all Queues. Now next thing is i would check putting message.
Thanks a lot for your single line but very valuable |
|
Back to top |
|
 |
BARIKAS |
Posted: Wed Sep 02, 2009 12:59 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2009 Posts: 7
|
Hello Experts,
With help of you guys my QUEUE Manager had been completely copied to the new server. I was doing this excercise again for another Queue Manager.
Queue Manager restore command runmqsc is running successfully. However when i am trying to view the Queues from explorere i am getting following error.
Coded character-set ID error.
Can not convert a command message to the CCSID of the target queue manager (AMQ4052)
It would be big help if someone can help me in resolving this error. |
|
Back to top |
|
 |
BARIKAS |
Posted: Wed Sep 02, 2009 1:13 am Post subject: |
|
|
Newbie
Joined: 27 Aug 2009 Posts: 7
|
Hello Sam uppu,
Thanks for your advice. i am in fact seeing the objects SYSTEM.* are not appearing on the new server where i restored from Queue Manager.
There was many channels and server connection objects with name as SYSTEM.*. Why i am not being able to restore these using runmqsc command ? Can i restore these some way ? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Sep 02, 2009 1:24 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
the saveqmgr does an alter for the ccsid accourding to the settings of the "old" qmgr, you should verify if that matches your installation.
"my" saveqmgr dumps SYSTEM* objects too. Maybe they are there, but not displayed in MQ explorer (there is a button you can toggle the display of SYSTEM* objects)?
check that or check the input file if it contains SYSTEM* objects or use runmqsc to check instead of MQ explorer. _________________ Regards, Butcher |
|
Back to top |
|
 |
exerk |
Posted: Wed Sep 02, 2009 2:19 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
And, if you don't want SYSTEM objects in the back-up, run it with the -s switch... _________________ 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 |
|
 |
|