ra_dumptran

Description

This command returns information for use in troubleshooting a specified database transaction.

NoteThis command is available only for Oracle.

Syntax

ra_dumptran “[opid | locator | tranid]”

Parameters

opid

The Replication Agent operation ID for a database operation.

locator

The Replication Agent locator for a database operation.

tranid

The Oracle transaction ID for the database transaction.

Examples

Example 1

ra_dumptran
0x0000.01783d95.0000:0001.000003fe.00000031.0010
go

This command returns information about the operation specified by the Replication Agent operation ID:

Name                Value
------------------  ---------------------------------------------- 
BEGIN OPERATION ID  0x0000.01783d95.0000:0001.000003fe.00000031.0010 
BEGIN SCN           24657302
TRANSACTION ID      0004.0016.00000016
USERNAME            AUSER 
EXECUTION TIME      2010-07-12 10:28:14.0 
THREAD NUMBER       1
TRANSACTION SKIP 
COMMAND             pdb_skip_op add, 24657301, 1, 1022.49.16
DUMP FILE NAME      C:\somepath\XID0004.0016.00000016.log
(8 rows affected)

Example 2

ra_dumptran
0000000001783d9600020001000003fe0000003400e8000001783d9500000000
go

This command returns information about the operation specified by the Replication Agent locator:

Name                Value
------------------  ---------------------------------------------- 
BEGIN OPERATION ID  0x0000.01783d95.0000:0001.000003fe.00000031.0010 
BEGIN SCN           24657302
TRANSACTION ID      0004.0016.00000016
USERNAME            AUSER 
EXECUTION TIME      2010-07-12 10:28:14.0 
THREAD NUMBER       1
TRANSACTION SKIP 
COMMAND             pdb_skip_op add, 0.24657301.0, 1, 1022.49.16
DUMP FILE NAME      C:\somepath\XID0004.0016.00000016.log
(8 rows affected)

Example 3

ra_dumptran 0x0004.0016.00000016
go

This command returns information about the transaction specified by the Oracle transaction ID:

Name                Value
------------------  ---------------------------------------------- 
BEGIN OPERATION ID  0x0000.01783d95.0000:0001.000003fe.00000031.0010 
BEGIN SCN           24657302
TRANSACTION ID      0004.0016.00000016
USERNAME            AUSER 
EXECUTION TIME      2010-07-12 10:28:14.0 
THREAD NUMBER       1
TRANSACTION SKIP 
COMMAND             pdb_skip_op add, 0.24657301.0, 1, 1022.49.16
DUMP FILE NAME      C:\somepath\XID0004.0016.00000016.log
(8 rows affected)

Example 4

The following is an example of log-file output from the ra_dumptran command. The log file contains both transaction information and information about all operations in the transaction:

File name: C:\somepath\XID0004.0016.00000016.log
File contents:
BEGIN OPERATION ID  0x0000.01783d95.0000:0001.000003fe.00000031.0010 
BEGIN SCN           24657302
TRANSACTION ID      0004.0016.00000016
USER NAME         AUSER 
EXECUTION TIME   2010-07-12 10:28:14.0 
THREAD NUMBER    1
TRANSACTION SKIP
COMMAND          pdb_skip_op add, 24657301, 1, 1022.49.16
SCN      THREAD OPERATION ID                                     OBJECT ID OBJECT NAME REPLICATE OPERATION SQL
-------- ------ ------------------------------------------------ --------- ----------- --------- --------- ----------------------------------------------------------------------------------------------------------------------------
24657301 1      0x0000.01783d95.0000:0001.000003fe.00000031.0010 0         NULL        NO        START     set transaction read write;
24657301 1      0x0000.01783d95.0000:0001.000003fe.00000031.0010 51809     BLL$TEST    YES       INSERT    insert into "QA7USER"."BLL$TEST"("QUANTITY","ORDER_NUMBER") values ('85','1234567890');
24657302 1      0x0000.01783d96.0000:0001.000003fe.00000033.010c 51809     BLL$TEST    YES       DELETE    delete from "QA7USER"."BLL$TEST" where "QUANTITY" = '85' and "ORDER_NUMBER" = '1234567890' and ROWID = 'AAAMphAAEAAAYrWAAC';
24657303 1      0x0000.01783d97.0000:0001.000003fe.00000035.00c4 0         NULL        NO        COMMIT    Commit;

Usage