Dumps the transaction cache for an inbound queue or a DSI queue.
sysadmin sqt_dump_queue {, q_number | server[, database]}, q_type, reader [, {open | closed | read}] [, num_cmds] [, {L0 | L1 | L2 | L3}] [, {RSSD | client | “log” | file_name}]
sysadmin sqt_dump_queue, 103, 1, 0
sysadmin sqt_dump_queue, SYDNEY_DS, pubs2, 1, 0
sysadmin sqt_dump_queue, 103,1, 0, open
sysadmin sqt_dump_queue, 103,1, 0, closed
sysadmin sqt_dump_queue, 103,1, 0, read
sysadmin sqt_dump_queue, 103,1, 0, 10
sysadmin sqt_dump_queue, 103,1, 0, L1
sysadmin sqt_dump_queue, 103,1, 0, L2
sysadmin sqt_dump_queue, 103,1, 0, L3, SYDNEY_RS.log
sysadmin sqt_dump_queue, 103,1, 0, RSSD
sysadmin sqt_dump_queue, 103,1, 0, client
Before using sysadmin sqt_dump_queue, execute admin who, sqt to make sure the transaction cache for the database exists.
This command dumps all the statements of transactions in the transaction cache.
To dump transactions into the RSSD or client, the last argument of sysadmin sqt_dump_queue must be RSSD or client.
If an alternative log file for dumping transactions is specified through the sysadmin dump_file command or through the file_name option, the output goes into the alternative dump file.
If the RSSD or client option is not specified, or the log option is specified, output goes into the Replication Server log.
The output from the sysadmin sqt_dump_queue indicates the state of transactions in the transaction cache as open, closed, or read. Open transactions are transactions that do not have a commit yet. Closed transactions have a commit but have not been completely read out yet. Read transactions have been completely read out but have not been deleted yet.
You can modify the cache size by setting the configuration parameter, sqt_max_cache_size.
sysadmin sqt_dump_queue requires “sa” permission.