Lob is closed. ERRORCODE=-4470, SQLSTATE=null

后端 未结 2 574
夕颜
夕颜 2020-12-19 03:24

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

Clob clobVar = null;
if (result.elementAt(3) != null)
    clobVar = (Clob) result.el         


        
相关标签:
2条回答
  • 2020-12-19 03:48
    If everything has worked earlier with same code...but the issue came up after db2 db change, then try below configuration..
    db2set DB2_RESTRICT_DDF=TRUE
    

    It worked for me..

    0 讨论(0)
  • 2020-12-19 03:53

    This issue can be solved by adding progressiveStreaming=2; argument to the connection 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;
    

    It is preferred to use db2jcc4.jar

    0 讨论(0)
提交回复
热议问题