Oracle® TimesTen In-Memory Database Reference Release 11.2.1 Part Number E13069-03 |
|
|
View PDF |
Description
Checks on the status of a RETURN RECEIPT or RETURN TWOSAFE replication transaction. Using the built-in procedure ttRepXactTokenGet, you can get the token of a RETURN RECEIPT or RETURN TWOSAFE transaction. This is then passed as an input parameter to this built-in procedure. Only a token received from ttRepXactTokenGet may be used. The procedure returns a list of rows each of which have three parameters, a subscriber name, the replication status with respect to the subscriber and an error string that is only returned in the case of a RETURN TWOSAFE replication transaction that has begun, but not completed, commit processing.
Note:
The error parameter is only returned for RETURN TWOSAFE transactions.This procedure requires no privilege.
Syntax
ttRepXactStatus(token)
Parameters
ttRepXactStatus has the parameter:
Parameter | Type | Description |
---|---|---|
xactID |
VARBINARY (10000) | If no parameter is specified, status is returned for one of the following:- If called in a transaction that has begun, but not completed, commit processing, it returns the status of the transaction.- If called at any other time, it returns status for the most recently committed transaction on the connection that was in RETURN RECEIPT or RETURN TWOSAFE mode. |
Result set
ttRepXactStatus returns the result set:
Column | Type | Description |
---|---|---|
subscriberName |
TT_CHAR (61) | The name of the data store that subscribes to tables updated in the transaction. The name returns as: store_name @ host_name . |
state |
TT_CHAR (2) | The state of the transaction with respect to the subscribing data store. The return values are one of the following:
|
errorString |
TT_VARCHAR (2000) | Error string retuned by the subscriber agent describing the error it encountered when applying the twosafe transaction. If no error is encountered, this parameter is NULL. Non-Null values are only returned when this procedure is called inside a twosafe replication transaction that has begun, but has not yet completed, processing a commit. |
See also