I'm getting the following error when trying to call a PL/SQL stored procedure from Java: ORA-02089: COMMIT is not allowed in a subordinate session
It tests fine from Oracle. Does anyone have any experience with this?
Try this ways;
What does the oracle documentation say about the error:
COMMIT was issued in a session that is not the two-phase commit global coordinator.
Basically you are executing a distributed transaction. As part of a distributed transaction you are trying to invoke an autonomous transaction. This is not possible as distributed transactions are required to do a 2PC.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With