Skip Headers
Oracle® Database Reference
11g Release 1 (11.1)

Part Number B28320-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

V$STREAMS_TRANSACTION

V$STREAMS_TRANSACTION displays information about transactions that are being processed by capture processes or apply processes. This view can be used to identify long running transactions and to determine how many logical change records (LCRs) are being processed in each transaction. This view only contains information about captured LCRs. It does not contain information about user-enqueued LCRs or user messages.

This view only shows information about LCRs that are being processed because they satisfied the rule sets for the Streams process at the time of the query. For capture processes, this view only shows information about changes in transactions that the capture process has converted to LCRs. It does not show information about all the active transactions present in the redo log. For apply processes, this view only shows information about LCRs that the apply process has dequeued. It does not show information about LCRs in the apply process's queue.

Information about a transaction remains in the view until the transaction commits or until the entire transaction is rolled back.

Column Datatype Description
STREAMS_NAME VARCHAR2(30) Name of the Streams process
STREAMS_TYPE VARCHAR2(10) Type of the Streams process:
  • CAPTURE

  • APPLY

XIDUSN NUMBER Transaction ID undo segment number of the transaction
XIDSLT NUMBER Transaction ID slot number of the transaction
XIDSQN NUMBER Transaction ID sequence number of the transaction
CUMULATIVE_MESSAGE_COUNT NUMBER Number of LCRs processed in the transaction. If the Streams process is restarted while the transaction is being processed, then this column shows the number of LCRs processed in the transaction since the Streams process was started.
TOTAL_MESSAGE_COUNT NUMBER Total Number of LCRs processed in the transaction by an apply process. This column does not pertain to capture processes.
FIRST_MESSAGE_TIME DATE Timestamp of the first LCR processed in the transaction. If a capture process is restarted while the transaction is being processed, then this column shows the timestamp of the first LCR processed after the capture process was started.
FIRST_MESSAGE_NUMBER NUMBER System change number (SCN) of the first message in the transaction. If a capture process is restarted while the transaction is being processed, then this column shows the SCN of the first message processed after the capture process was started.
LAST_MESSAGE_TIME DATE Timestamp of the last LCR processed in the transaction
LAST_MESSAGE_NUMBER NUMBER SCN of the most recent message encountered for the transaction