如何使用IBM MQ-在Linux中的队列上备份和清除消息? [英] How to IBM MQ - Backup and Clearing Messages on queues in linux?

查看:1021
本文介绍了如何使用IBM MQ-在Linux中的队列上备份和清除消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了saveqmgr和dmpmqcfg.我无法获得预期的输出.

I have tried saveqmgr and dmpmqcfg. i cannot get expected output.

dmpmqcfg -m qm.apple -t all -a -x all -o setmqaut

我正在使用MQ_7.5版本.哪个命令用于在Linux中备份MQ消息队列

I am using MQ_7.5 version. Which command is used to take backup of MQ Message queue in linux

推荐答案

您可以使用类似于以下命令的命令来备份特定队列的详细信息(在此示例中为TEST.QUEUE).输出将同时包含DEFINE Q命令和SET AUTHREC命令,以恢复授予该特定队列的所有OAM权限.请注意,此命令不会为其他任何队列或通配权限备份OAM.

You can use a command similar to the following to backup the details of a specific queue (TEST.QUEUE in this example). The output will include both the DEFINE Q command along with SET AUTHREC commands to restore any OAM permissions granted to that specific queue. Note that this command will not backup OAM for any other queue or wild carded permissions.

dmpmqcfg -m qm.apple -n TEST.QUEUE -t queue -a -x all -o 1line

要备份队列中的数据,可以使用 MO03 SupportPac (又名QLOAD).由于该产品的v8已集成并重命名为dmpmqmsg,因此已撤回了IBM的SupportPac.对于v8之前的MQ版本,您仍然可以通过上面的链接下载MQ03 SupportPac.现在,SupportPac的原始作者还维护了一个名为 QLOAD 的程序版本.

To backup the data in the queue you can use the MO03 SupportPac (aka QLOAD) from IBM. This SupportPac from IBM has been withdrawn because at v8 of the product it was integrated and renamed to dmpmqmsg. For versions of MQ prior to v8 you can still download the MQ03 SupportPac at the above link. The original author of the SupportPac also now maintains a version of the program called QLOAD.

下面的示例命令将备份一个名为TEST.QUEUE的队列,而不会从队列中删除消息(将-i更改为大写-I还将其从队列中删除).

Example command below will backup a queue called TEST.QUEUE with out removing the messages from the queue (change the -i to capital -I to also remove them from the queue).

qload -m qm.apple -i TEST.QUEUE -f TEST.QUEUE.qload

输出将显示已读取和写入了多少条消息,示例输出如下:

Output will show how many messages were read and written, example output is below:

Read    - Files:   0  Messages:     3  Bytes:         4
Written - Files:   1  Messages:     3  Bytes:         4

下面的示例命令会将文件中的消息放回队列中.

Example command below will put the messages from the file back onto the queue.

qload -m qm.apple -f TEST.QUEUE.qload -o TEST.QUEUE

这篇关于如何使用IBM MQ-在Linux中的队列上备份和清除消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆