<bdo id='sdmIv'></bdo><ul id='sdmIv'></ul>
<i id='sdmIv'><tr id='sdmIv'><dt id='sdmIv'><q id='sdmIv'><span id='sdmIv'><b id='sdmIv'><form id='sdmIv'><ins id='sdmIv'></ins><ul id='sdmIv'></ul><sub id='sdmIv'></sub></form><legend id='sdmIv'></legend><bdo id='sdmIv'><pre id='sdmIv'><center id='sdmIv'></center></pre></bdo></b><th id='sdmIv'></th></span></q></dt></tr></i><div id='sdmIv'><tfoot id='sdmIv'></tfoot><dl id='sdmIv'><fieldset id='sdmIv'></fieldset></dl></div>

<small id='sdmIv'></small><noframes id='sdmIv'>

<legend id='sdmIv'><style id='sdmIv'><dir id='sdmIv'><q id='sdmIv'></q></dir></style></legend>

    1. <tfoot id='sdmIv'></tfoot>

        更新 DB2 for iSeries 表时出错 SQL7008

        Error SQL7008 while updating a DB2 for iSeries table(更新 DB2 for iSeries 表时出错 SQL7008)
        <legend id='cZlW7'><style id='cZlW7'><dir id='cZlW7'><q id='cZlW7'></q></dir></style></legend>
          <i id='cZlW7'><tr id='cZlW7'><dt id='cZlW7'><q id='cZlW7'><span id='cZlW7'><b id='cZlW7'><form id='cZlW7'><ins id='cZlW7'></ins><ul id='cZlW7'></ul><sub id='cZlW7'></sub></form><legend id='cZlW7'></legend><bdo id='cZlW7'><pre id='cZlW7'><center id='cZlW7'></center></pre></bdo></b><th id='cZlW7'></th></span></q></dt></tr></i><div id='cZlW7'><tfoot id='cZlW7'></tfoot><dl id='cZlW7'><fieldset id='cZlW7'></fieldset></dl></div>
              <tfoot id='cZlW7'></tfoot>

              <small id='cZlW7'></small><noframes id='cZlW7'>

                  <tbody id='cZlW7'></tbody>

                  <bdo id='cZlW7'></bdo><ul id='cZlW7'></ul>
                  本文介绍了更新 DB2 for iSeries 表时出错 SQL7008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个使用 Hibernate 和 DB2 for iSeries 的 Java Web 应用程序,在更新表期间我收到以下错误:-

                  I have a Java Web application using Hibernate and DB2 for iSeries and during update of a table I get he following error:-

                  更新 DB2 时出错 SQL7008iSeries 表

                  Error SQL7008 while updating a DB2 for iSeries table

                  推荐答案

                  通过对该错误消息进行一些谷歌搜索,我注意到当您在非事务模式下运行插入/更新时会发生这种情况.这里给出了解释.

                  From doing some googling on this error message I noticed that it happens when you are running an insert/update in a non-transactional mode. The explanation is given here.

                  发生这种情况是因为您所在的表试图更新不是已记录,您的更新正在在事务中运行.

                  This occurs because the table you are trying to update is not being journalled, and your update is being run within a transaction.

                  通常,您应该始终提交(并在发生异常时回滚)您的事务.通常我从不将自动提交设置为 true,但在这种情况下,我想了解它是否真的需要,如上面链接中所述.您可以在连接中将自动提交设置为 true 以查看这是否会消失吗?

                  Generally, you should always commit (and rollback if an exception occurs) your transactions. Usually I never set auto commit to true but in this case I would like to understand if it's truly needed as mentioned in the link above. Can you set the auto commit to true in your connection to see if this goes away?

                  <property name="hibernate.connection.autocommit" value="true"/>

                  这个链接还有一些关于hibernate事务管理的教程.

                  Also this link has some tutorials on transaction management with hibernate.

                  这篇关于更新 DB2 for iSeries 表时出错 SQL7008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How can I detect integer overflow on 32 bits int?(如何检测 32 位 int 上的整数溢出?)
                  Local variables before return statements, does it matter?(return 语句之前的局部变量,这有关系吗?)
                  How to convert Integer to int?(如何将整数转换为整数?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在给定范围内创建一个随机打乱数字的 int 数组)
                  Inconsistent behavior on java#39;s ==(java的行为不一致==)
                  Why is Java able to store 0xff000000 as an int?(为什么 Java 能够将 0xff000000 存储为 int?)

                      1. <i id='f2PVZ'><tr id='f2PVZ'><dt id='f2PVZ'><q id='f2PVZ'><span id='f2PVZ'><b id='f2PVZ'><form id='f2PVZ'><ins id='f2PVZ'></ins><ul id='f2PVZ'></ul><sub id='f2PVZ'></sub></form><legend id='f2PVZ'></legend><bdo id='f2PVZ'><pre id='f2PVZ'><center id='f2PVZ'></center></pre></bdo></b><th id='f2PVZ'></th></span></q></dt></tr></i><div id='f2PVZ'><tfoot id='f2PVZ'></tfoot><dl id='f2PVZ'><fieldset id='f2PVZ'></fieldset></dl></div>
                        <tfoot id='f2PVZ'></tfoot>

                        <small id='f2PVZ'></small><noframes id='f2PVZ'>

                          <tbody id='f2PVZ'></tbody>
                        <legend id='f2PVZ'><style id='f2PVZ'><dir id='f2PVZ'><q id='f2PVZ'></q></dir></style></legend>
                            <bdo id='f2PVZ'></bdo><ul id='f2PVZ'></ul>