如何使用 IBM MQ - 在 linux 中备份和清除队列中的消息?
How to IBM MQ - Backup and Clearing Messages on queues in linux?
我试过 saveqmgr 和 dmpmqcfg。我无法获得预期的输出。
dmpmqcfg -m qm.apple -t all -a -x all -o setmqaut
我正在使用 MQ_7.5 版本。在linux
中使用哪个命令备份MQ消息队列
您可以使用类似于以下的命令来备份特定队列的详细信息(本例中为TEST.QUEUE)。输出将包括 DEFINE Q
命令和 SET AUTHREC
命令以恢复授予该特定队列的任何 OAM 权限。请注意,此命令不会为任何其他队列或通配符权限备份 OAM。
dmpmqcfg -m qm.apple -n TEST.QUEUE -t queue -a -x all -o 1line
要备份队列中的数据,您可以使用 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 也可以将它们从队列中删除)。
qload -m qm.apple -i TEST.QUEUE -f TEST.QUEUE.qload
输出将显示读取和写入了多少消息,示例输出如下:
Read - Files: 0 Messages: 3 Bytes: 4
Written - Files: 1 Messages: 3 Bytes: 4
下面的示例命令会将文件中的消息放回队列中。
qload -m qm.apple -f TEST.QUEUE.qload -o TEST.QUEUE
我试过 saveqmgr 和 dmpmqcfg。我无法获得预期的输出。
dmpmqcfg -m qm.apple -t all -a -x all -o setmqaut
我正在使用 MQ_7.5 版本。在linux
中使用哪个命令备份MQ消息队列您可以使用类似于以下的命令来备份特定队列的详细信息(本例中为TEST.QUEUE)。输出将包括 DEFINE Q
命令和 SET AUTHREC
命令以恢复授予该特定队列的任何 OAM 权限。请注意,此命令不会为任何其他队列或通配符权限备份 OAM。
dmpmqcfg -m qm.apple -n TEST.QUEUE -t queue -a -x all -o 1line
要备份队列中的数据,您可以使用 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 也可以将它们从队列中删除)。
qload -m qm.apple -i TEST.QUEUE -f TEST.QUEUE.qload
输出将显示读取和写入了多少消息,示例输出如下:
Read - Files: 0 Messages: 3 Bytes: 4
Written - Files: 1 Messages: 3 Bytes: 4
下面的示例命令会将文件中的消息放回队列中。
qload -m qm.apple -f TEST.QUEUE.qload -o TEST.QUEUE