Warm tip: This article is reproduced from serverfault.com, please click

linux-如何将MQ队列记录卸载到可读格式的文件中?

(linux - How to unload the MQ queue records into the file which is of readable format?)

发布于 2021-01-08 16:46:12

我有一个 MQ 队列,它有 2K 奇数记录,需要将其卸载到一个文件中,并检查为什么我们的 INBOUND 进程没有使用这些记录。我尝试使用以下命令示例将记录卸载到文件中:

qload -m ABCDE -iQueue1 -f/var/tmp/Queue1.qload

此外,我尝试在 linux 中压缩文件。将其解压缩到 Windows 中,当我在 Windows 中打开文件时,它不可读。

你能否建议任何命令将队列卸载到具有可红色形式的文件中?

Questioner
Sneha
Viewed
0
8,876 2021-01-11 23:44:33

以下命令可用于使文件可读:

qload -fDEBVRPHV.CIBREP.DEAD.LETTER.qload_1 -fredable_file -dA 
qload -fDEBVRPHV.CIBREP.DEAD.LETTER.qload_1 -fredable_file_trial -da

where :
-d <Display Options>]
a         Add ASCII columns to HEX file
A         Write output file in ASCII lines rather than HEX