How to IBM MQ - Backup and Clearing Messages on queues in linux?

半城伤御伤魂 提交于 2019-12-14 02:29:25

问题


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

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

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


回答1:


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

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.

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


来源:https://stackoverflow.com/questions/41517793/how-to-ibm-mq-backup-and-clearing-messages-on-queues-in-linux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!