taolngyun 2016-08-25 06:32 采纳率: 0%
浏览 1018

DB2 -925 2D521 SQL的COMMIT语句不能从CICS或IMS/TM发布 如何解决

Java 调用dB2存储过程报了这个错误
Caused by: com.ibm.db2.jcc.c.SqlException: DB2 SQL error: SQLCODE: -925, SQLSTATE: 2D521, SQLERRMC: null
不知道如何处理,求大神解答

  • 写回答

1条回答 默认 最新

  • taolngyun 2016-08-25 10:38
    关注

    自己顶一下百度没看懂
    Explanation: COMMIT is disallowed in the following cases:
    In a Distributed Transaction Processing environment such as CICS, a static SQL COMMIT statement was attempted, but a commit statement specific to the environment is required. For example, in a CICS environment this would be the CICS SYNCPOINT command.
    A DB2 application precompiled or set to use CONNECT 2 in a non-TP Monitor environment has issued a dynamic SQL COMMIT statement, whereas only static SQL COMMITs are allowed.
    When issued from a stored procedure, SQL COMMIT is also not allowed if the calling program is executing in a distributed unit of work or Distributed Transaction Processing environment.
    User Response: Correct the problem by doing one of the following:
    Remove the statement issuing the COMMIT and replace it with a statement which does the valid equivalent for the environment
    In the case of a connect type 2 in a non-TP Monitor environment, use only static COMMIT.
    In the case of a stored procedure, remove the COMMIT

    评论

报告相同问题?

悬赏问题

  • ¥188 寻找能做王者评分提取的
  • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
  • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
  • ¥15 写论文,需要数据支撑
  • ¥15 identifier of an instance of 类 was altered from xx to xx错误
  • ¥100 反编译微信小游戏求指导
  • ¥15 docker模式webrtc-streamer 无法播放公网rtsp
  • ¥15 学不会递归,理解不了汉诺塔参数变化
  • ¥15 基于图神经网络的COVID-19药物筛选研究
  • ¥30 软件自定义无线电该怎样使用