ttLogHolds
Applications should monitor log holds and the accumulation of log files. For more information, see Show Replicated Log Records in the Oracle TimesTen In-Memory Database Replication Guide and Monitoring Accumulation of Transaction Log Files in the Oracle TimesTen In-Memory Database Operations Guide.
Required Privilege
This procedure requires no privilege.
Usage in TimesTen Scaleout and TimesTen Classic
This procedure is supported in TimesTen Classic.
TimesTen Scaleout applications can call this built-in procedure.
This procedure returns a row for the element from which it was called. To see information about other elements, query the SYS.GV$LOG_HOLDS system table.
Syntax
ttLogHolds()
Parameters
ttLogHolds
has no parameters.
Result Set
ttLogHolds
returns the result set:
Column | Type | Description |
---|---|---|
|
|
Returns the transaction log file number of the hold. |
|
|
Returns the transaction log file offset of the hold. |
|
|
Returns the type of hold, one of:
|
|
|
Describes the type-specific object for which the hold was created. Each description corresponds with the Type returned. Descriptions are one of:
|
Examples
Command> call ttLogHolds(); < 0, 1148544, Long-Running XA Transaction , 0x1-476c6f62616c-5861637431 > < 0, 1149752, Long-Running Transaction, 4.2 > < 0, 1149992, Checkpoint , sample.ds1 > < 0, 1150168, Checkpoint , sample.ds0 >
The following example shows the output of ttLogHolds
built-in procedure for an active standby pair replication scheme, where the active master is master1
and the standby master is master2
with a single subscriber, subscriber1
.
Command> call ttLogHolds(); < 0, 3569664, Checkpoint , master1.ds0 > < 0, 15742976, Checkpoint , master1.ds1 > < 0, 16351496, Replication , ADC6160529:SUBSCRIBER1 > < 0, 16351640, Replication , ADC6160529:MASTER2 > 4 rows found.
The following example shows the progress of the asynchronous propagation for an AWT cache group to the Oracle database. The description field contains "_ORACLE
" to identify the transaction log hold for the AWT cache group propagation.
Command> call ttLogHolds(); < 0, 18958336, Checkpoint , cachealone1.ds0 > < 0, 19048448, Checkpoint , cachealone1.ds1 > < 0, 19050904, Replication , ADC6160529:_ORACLE > 3 rows found.