sysadmin dump_tran

Dumps the statements of a specific stable queue transaction into a log file.

Syntax

sysadmin dump_tran {{, q_number, | server [,database]},
        q_type, lqid
        [, num_cmds]
        [, {L0 | L1 | L2 | L3}]
        [, {RSSD | client | “log” | file_name}] |
        “next” [, num_cmds]}

Parameters

Examples

Usage

  • Use sysadmin dump_tran to dump the contents of a stable queue transaction identified by the LQID.

  • Output from sysadmin dump_tran goes to one of these:
    • Replication Server log

    • Alternate log file

    • RSSD

    • Client issuing the command

    To dump a stable queue transaction into the RSSD or a client, the last argument of sysadmin dump_tran must be RSSD or client.

    If the RSSD or client option is not specified, or if the log option is specified, output goes to the Replication Server log.

    If an alternative log file for dumping the stable queue transaction is specified through the sysadmin dump_file command or through the file_name option, the output goes to the alternative dump file.

  • Specify the maximum sysadmin dump_tran 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 in two system tables in the RSSD, rs_queuemsg and rs_queuemsgtxt.

If the transaction is dumped to the RSSD, the system tables are first cleared of the segments with the same q_number, q_type, seg, and blk as the transaction 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.

Permissions

sysadmin dump_tran requires “sa” permission.

Related reference
admin who
rs_queuemsg
rs_queuemsgtxt
sysadmin dump_file