<tfoot id='BdQFE'></tfoot><legend id='BdQFE'><style id='BdQFE'><dir id='BdQFE'><q id='BdQFE'></q></dir></style></legend>

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

    • <bdo id='BdQFE'></bdo><ul id='BdQFE'></ul>

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

        Lob 已关闭.错误代码=-4470,SQLSTATE=null

        时间:2023-05-27

        1. <legend id='cQPUz'><style id='cQPUz'><dir id='cQPUz'><q id='cQPUz'></q></dir></style></legend>

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

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

                  本文介绍了Lob 已关闭.错误代码=-4470,SQLSTATE=null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 IBM websphere commerce 和 db2,有以下代码

                  I am using IBM websphere commerce and db2, have following piece of code

                  Clob clobVar = null;
                  if (result.elementAt(3) != null)
                      clobVar = (Clob) result.elementAt(3);
                  
                  if (clobVar == null) {
                      infoTable.put("EInfo", "");
                  } else {
                      stringTemp = clobVar.getSubString(1, (int) clobVar.length());
                      infoTable.put("EInfo", stringTemp); 
                  }
                  

                  代码运行良好,直到

                  clobVar = (Clob) result.elementAt(3);
                  

                  但是一旦执行到

                  stringTemp = clobVar.getSubString(1, (int) clobVar.length());
                  

                  系统抛出异常

                  [jcc][10120][11936][4.3.111] 无效操作:Lob 已关闭.ERRORCODE=-4470,SQLSTATE=null

                  我做错了什么?

                  如何解决这个问题?

                  推荐答案

                  这个问题可以通过在连接url中添加progressiveStreaming=2;参数来解决

                  This issue can be solved by adding progressiveStreaming=2; argument to the connection url

                  完整指定的连接 URL 如下所示:

                  The fully specified Connection URL was to be given as below:

                  jdbc:db2://localhost:50000/SAMPLE:progressiveStreaming=2;
                  

                  如果您对该参数有异常,请在其中添加以下内容:

                  Incase you have exception on that parameter add the following to it:

                  jdbc:db2://localhost:50000/SAMPLE:driverType=4;fullyMaterializeLobData=true;fullyMaterializeInputStreams=true;progressiveStreaming=2;progresssiveLocators=2;
                  

                  首选db2jcc4.jar

                  这篇关于Lob 已关闭.错误代码=-4470,SQLSTATE=null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在eclipse中通过jdbc连接DB2数据库 下一篇:db2jcc4.jar 无效参数:未知列名

                  相关文章

                • <legend id='qi67d'><style id='qi67d'><dir id='qi67d'><q id='qi67d'></q></dir></style></legend>

                      <bdo id='qi67d'></bdo><ul id='qi67d'></ul>
                  1. <small id='qi67d'></small><noframes id='qi67d'>

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