SQL7008N SQLSTATE=55019 when doing insert/update on a DB2 for iSeries table

Problem

You may get error an like below when doing an insert or update operation on a DB2 for iSeries table SQL7008N  REXX variable "" contains inconsistent data. SQLSTATE=55019

在DB2 for iSeries表执行插入或更新操作时,可能会出现类似以下的错误。SQL7008N  REXX variable "" contains inconsistent data. SQLSTATE=55019

Cause

The DB2 for iSeries table does not have journaling enabled.

DB2 for iSeries表未启用日志功能。

Resolving The Problem

To resolve this issue, do one of the following:

  • Enable journaling for the DB2 for iSeries table. You may contact your DB2 for iSeries DBA.
  • If you are getting this error from your application, specify application specific Isolation level property with value NO COMMIT.
    • For CLI/ODBC applications:
      Update TXNIsolation CLI keyword with value 32 in your db2cli.cfg.
      'db2 update cli cfg for section <dsn> using TXNIsolation 32'.
      Restart the application.
    • For .NET applications:
      Update IsolationLevel to 'chaos' in your connection string. Or if you are using db2dsdriver.cfg, you can specify it in db2dsdriver.cfg.
    • For JDBC applications:
      DB2 JDBC Driver does not support Isolation level NONE or NO COMMIT. You may need to use option (1) or (3) in this case.
  • Alter your SQL statement to include 'WITH NONE' or 'WITH NC' at the end for example:
    insert into <tableName> values ('a', 'b') with NC
    insert into <tableName> values ('a', 'b') with NONE
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值