Dumps the contents of a Replication Server stable queue.
sysadmin dump_queue {, q_number | server[,database]}, qtype { , seg, blk, cnt [, num_cmds] [, {L0 | L1 | L2 | L3}] [, {RSSD | client | “log” | file_name}] | “next” [, num_cmds] }
Setting seg to -1 starts with the first active segment in the queue.
Setting seg to -2 starts with the first segment in the queue, including any inactive segments retained by setting a save interval.
Setting seg to -1 and blk to -1 starts with the first undeleted block in the queue.
Setting seg to -1 and blk to -2 starts with the first unread block in the queue.
If you use "next"[, num_cmds] without a prior invocation of sysadmin dump_queue, the dump starts from the beginning of the queue with the default values of seg -1, blk -1, and cnt -2, and num_cmds is treated as the number of commands.
sysadmin dump_queue, 103, 1, 0, 15, 65
sysadmin dump_queue, 103, 1, -1, 1, -2, RSSD
sysadmin dump_file, SYDNEY_RS.log sysadmin dump_queue, 103, 1, -1, 1, -2 sysadmin dump_file
sysadmin dump_queue, SYDNEY_DS, pubs2, 1, -1, 1, -2, 10, “log”
sysadmin dump_queue, 103, 1, -1, 1, -2, 10, "log"
sysadmin dump_queue, 103, 1, -1, 1, -2, L1
sysadmin dump_queue, 103, 1, -1, 1, -2, "next"
sysadmin dump_queue, 103, 1, -1, 1, -2, 10 sysadmin dump_queue, 103, 1, "next" sysadmin dump_queue, 103, 1, "next", 20
Use sysadmin dump_queue to dump the contents of a Replication Server stable queue.
To dump queues into the RSSD or client, the last argument of sysadmin dump_queue must be RSSD or client.
If the RSSD or client option is not specified, or if the "log" option is specified, output goes into the Replication Server log.
If an alternative log file for dumping queues is specified through the sysadmin dump_file command or through the file_name option, the output goes into the alternative dump file.
Specify the maximum sysadmin dump_queue command length by setting the queue_dump_buffer_size configuration parameter.
Dumping to the RSSD
If the RSSD option is used, the dump is written into two system tables in the RSSD, rs_queuemsg and rs_queuemsgtxt.
If the queue is dumped into the RSSD, the system tables are first cleared of the segments with the same q_number, q_type, seg, and blk as the blocks being dumped.
For information about the contents of the rs_queuemsg system table, see "Replication Server System Tables."
The rs_queuemsgtxt system table holds the text of commands dumped from the stable queue. If the text of a command exceeds 255 characters, it is stored in multiple rows numbered with the q_seq column.
Dumping to the client
If the client option is used, the dump is written to the client issuing the command, such as isql or Replication Server Manager.