(Oracle only) This command returns information for use in troubleshooting a specified database transaction.
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)
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)
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)
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;
The ra_dumptran command dumps all operations for a specified transaction to an exclusive log file used in troubleshooting a failed operation or transaction. The log-file header consists of the result set returned by ra_dumptran and includes the following rows:
BEGIN OPERATION ID – the Replication Agent operation ID for the transaction begin operation. This field is in the format wrap.scn.subscn.thread.lsn.block.offset, where:
BEGIN SCN – the SCN for the transaction operation as logged in a redo log file.
TRANSACTION ID – the ID of the transaction that the operation is a part of.
USERNAME – the name of the user that executed the transaction.
EXECUTION TIME – the date and time at which the transaction was executed.
THREAD NUMBER – the Oracle thread that executed the transaction.
TRANSACTION SKIP COMMAND – the Replication Agent command that causes the transaction to be skipped by Replication Agent during replication.
DUMP FILE NAME – The name of the log file to which the transaction is written by ra_dumptran.
The log file specified by the DUMP FILE row also contains the operation results for the specified transaction:
SCN – the SCN for the operation as logged in a redo log file.
THREAD – the thread that executed the operation.
OPERATION ID – the Replication Agent operation ID for the transaction begin operation. This field is in the format wrap.scn.subscn.thread.lsn.block.offset.
OBJECT ID – the object ID of the affected object.
OBJECT NAME – the name of the affected object.
REPLICATE – whether or not (YES or NO) the object affected by the operation is marked for replication by Replication Agent.
OPERATION – the operation type.
SQL – the SQL statement for the operation.
The ra_dumptran command cannot operate properly unless the Oracle LogMiner script, $ORACLE_HOME/rdbms/admin/dbmslm.sql, has been installed at the primary database. If this script has not been installed, ra_dumptran will return an error.
CREATE PUBLIC SYNONYM DBMS_LOGMNR FOR SYS.DBMS_LOGMNR;
The following privileges must be granted to pds_username for the ra_dumptran command to function properly:
If the ra_dumptran command returns no result for a specified opid or locator value, the corresponding database operation may be one of many operations in a database transaction. In this case, you should instead specify the ID of the transaction to which the database operation belongs.