Oracle Error Message
ORA-24797: cannot promote the current transaction to a distributed transaction
Reason for the Error
An illegal attempt was made to promote the current transaction.
Solution
Verify that OCI_ATTR_XID, OCI_ATTR_INTERNAL_NAME, and OCI_ATTR_EXTERNAL_NAME attributes have been set properly, and verify that the current transaction has neither performed IDL or PDML operations, nor already been a distributed transaction. Also, verify that the local transaction is in the same isolation level if the isolation flag value is set.