The XA_PREPARE procedure prepares the transaction branch specified by xid for commit.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_XA.XA_PREPARE (
xid IN DBMS_XA_XID)
RETURN PLS_INTEGER;
Parameters
| Parameter | Description |
|---|---|
| xid | See DBMS_XA_XID object type. |
Return value
See Possible constant return values of DBMS_XA.
The procedure may return the following values: XA_OK, XA_RDONLY, XA_RB\*, XAER_RMERR, XAER_RMFAIL, XAER_NOTA, XAER_INVAL, or XAER_PROTO.
Considerations
- An application must track all branches of a global transaction and prepare each branch. An application can call
XA_COMMITonly after all branches of the global transaction have been successfully prepared andXA_PREPAREreturnsXA_OK.
