ORA-24772: Cannot mix tightly-coupled and loosely-coupled branches

文档解释

ORA-24772: Cannot mix tightly-coupled and loosely-coupled branches

Cause: Application attempted to start a transaction with a global transaction identifier and a wrong option.

Action: Verify that all branches of a global transaction are started with either OCI_TRANS_TIGHT or OCI_TRANS_LOOSE option. If the application is correct and uses distributed updates, contact customer support.

ORA-24772:指在进行某些操作时,不能混合使用紧耦合和松耦合分支。

官方解释

常见案例

一般处理方法及步骤

步骤1:尝试将SQL提升为不涉及松耦合分支的语句;

步骤2:如果不能拆分语句,则需要应用绑定变量;

步骤3:如果以上步骤无法解决问题,则可以修改ORA选项参数来解决问题,具体参考DBMS_XDES保存的值。

你可能感兴趣的