Oracle Error ORA-39783: Invalid direct path transaction active

Oracle Error Message

ORA-39783: Invalid direct path transaction active

Reason for the Error

Direct path operations were not performed in the transaction started by the first OCIDirPathPrepare call.

Solution

Ensure the correct transaction is active prior to calling Direct Path API operations.