Author |
Message
|
raam |
Posted: Sun May 15, 2011 12:12 am Post subject: How to Copy Msgs b/w Queues on Different QMgrs |
|
|
Apprentice
Joined: 14 May 2011 Posts: 29
|
Hello. I am more of a novice in MQ and currently using MQ v6.0.2.5.
I have gone through Q-Load (MO03) and Q-Program (MA01) tools. But I don't see a mention of how to Copy messages from a Queue (say, Prod Env) to another Queue (say, Dev Env) with an option to provide the host IP address. Both the Queue Managers are on AIX.
I could not find options useful other than the below-
-i<Q> The name of the Input Queue name (if any) to browse
See "QUEUE NAME FORMAT" for specific details.
-m<QMgr> The name of the Queue Manager to connect to if not the default.
-o<Q> The name of the Output Queue name (if any)
See "QUEUE NAME FORMAT" for specific details.
Copy messages between Queues : q -iQ1 -oQ2
Copy messages from QM1 to QM2 : q -xb -m QM1 -i Q1 -m QM2 -oQ2
The -xb parameter is required on some platforms to allow connection
to two difference Queue Managers from the same thread.
Can anyone suggest an effective way to perform the copy? I am not sure if copying the 'q' file is what I want.
Thanks a lot. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun May 15, 2011 12:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks like you need to read the MQ Clients manual. Check out the infocenter link at the top of the page.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
raam |
Posted: Sun May 15, 2011 2:30 am Post subject: |
|
|
Apprentice
Joined: 14 May 2011 Posts: 29
|
Oh Great! That was a pretty dumb question from me.
It worked just fine with the RFHUtilc for all the queues except one. Below is the error msg I received and it's related to allocating buffer. I was unable to do a 'save q' basically-
12.12.19 2010 Max msg length exceeded - check Q/QM/Channel defs - QMgr max=4194304 Queue max=4194304
2010 Max msg length exceeded - check Q/QM/Channel defs - QMgr max=4194304 Queue max=4194304
This particular queue has about 9630 msgs (there are others with a larger CurDepth) and with largest message length of 4209227. Some of the queue attributes are-
CURDEPTH(9630)
DEFPSIST(YES)
MAXDEPTH(1000000)
MAXMSGL(104857600)
Is there a way to pre-allocate the buffer to say, 5 MB for the RFHUtilc? I don't know if I should try changing the AMQSBCG source code and recompile it, etc.
Thanks a lot for the help. |
|
Back to top |
|
 |
zpat |
Posted: Sun May 15, 2011 3:00 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Qload also works in client mode, just unload to file from one QM and load from file to the other. It helps to have a CCDT set up.
MO71 can do it interactively without using files, if you have a xmit queue between the two queue managers.
Qload and MO71, like all of Paul's Clarke's programs, has many useful options if you explore the documentation. |
|
Back to top |
|
 |
exerk |
Posted: Sun May 15, 2011 3:35 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
raam wrote: |
12.12.19 2010 Max msg length exceeded - check Q/QM/Channel defs - QMgr max=4194304 Queue max=4194304
2010 Max msg length exceeded - check Q/QM/Channel defs - QMgr max=4194304 Queue max=4194304 |
This suggests to me that you have used the MQSERVER variable to set up the connection and below WMQ V7.0 there is a fixed maximum message length of 4MB, and as you need a larger buffer the use of a CCDT is the only option. _________________ 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 |
|
 |
suneel |
Posted: Tue May 17, 2011 9:06 am Post subject: |
|
|
Voyager
Joined: 06 Nov 2009 Posts: 89
|
Hello Ram,
can you please tell me how to use RFHUtilc and where to get this? |
|
Back to top |
|
 |
ramires |
Posted: Tue May 17, 2011 10:20 am Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
suneel wrote: |
Hello Ram,
can you please tell me how to use RFHUtilc and where to get this? |
Did you try Google and "RFHUtilc download"? It helps! |
|
Back to top |
|
 |
zpat |
Posted: Tue May 17, 2011 11:38 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Support pac IH03, take a look at MO71, MA01 and others as well. |
|
Back to top |
|
 |
|