How to IBM MQ - Backup and Clearing Messages on qu

2019-07-30 08:59发布

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

标签: ibm-mq
1条回答
对你真心纯属浪费
2楼-- · 2019-07-30 09:45

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
查看更多
登录 后发表回答