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 » MQ Series Export

Post new topic  Reply to topic Goto page 1, 2  Next
 MQ Series Export « View previous topic :: View next topic » 
Author Message
vineet.rawat
PostPosted: Mon Oct 10, 2005 5:41 am    Post subject: MQ Series Export Reply with quote

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
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Mon Oct 10, 2005 6:13 am    Post subject: Reply with quote

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
View user's profile Send private message
vineet.rawat
PostPosted: Mon Oct 10, 2005 6:54 am    Post subject: But how to import it to other queue server Reply with quote

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
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Mon Oct 10, 2005 7:03 am    Post subject: Reply with quote

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
View user's profile Send private message
sebastianhirt
PostPosted: Mon Oct 10, 2005 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message
vineet.rawat
PostPosted: Mon Oct 10, 2005 7:19 am    Post subject: I could see the script for Alias and Trans Q but no errors Reply with quote

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
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Mon Oct 10, 2005 7:26 am    Post subject: Reply with quote

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
View user's profile Send private message
BARIKAS
PostPosted: Thu Aug 27, 2009 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Aug 27, 2009 7:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Sam Uppu
PostPosted: Thu Aug 27, 2009 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message
BARIKAS
PostPosted: Thu Aug 27, 2009 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message
BARIKAS
PostPosted: Wed Sep 02, 2009 12:59 am    Post subject: Reply with quote

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
View user's profile Send private message
BARIKAS
PostPosted: Wed Sep 02, 2009 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Wed Sep 02, 2009 1:24 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Wed Sep 02, 2009 2:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ Series Export
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.