Database Error Messages

DIA-26212

OCI_ATTR_XID or OCI_ATTR_TRANS_NAME should be set.

Cause

The transaction handle does not have the OCI_ATTR_XID or OCI_ATTR_TRANS_NAME attribute set. The GTRID of the flex transaction to be started needs to be set in either attribute.


Action

Set GTRID of the flex transaction to be resumed in either the OCI_ATTR_XID or OCI_ATTR_TRANS_NAME attribute:

  • OCI_ATTR_XID: Set the GTRID and its length in the XID struct and set the XID as the handle of the transaction OCI_ATTR_XID attribute.
  • OCI_ATTR_TRANS_NAME: Set the GTRID as the handle of the transaction OCI_ATTR_TRANS_NAME attribute.