The XA_RECOVER function is used to retrieve a list of prepared, committed, or rolled back (but transaction information has not been discarded) transaction branches from the resource manager (RM).
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_XA.XA_RECOVER
RETURN DBMS_XA_XID_ARRAY;
Return value
The return value DBMS_XA_XID_ARRAY defines an xid array, which represents the list of global transaction branches.
The syntax is as follows:
TYPE DBMS_XA_XID_ARRAY as TABLE of DBMS_XA_XID
Considerations
The
TMSTARTSCAN,TMENDSCAN, andTMNOFLAGSflags are not supported.The user calling
XA_RECOVERmust be granted theSELECT ON DBA_PENDING_TRANSACTIONSprivilege.
