本文介紹了Lob 已關(guān)閉.錯(cuò)誤代碼=-4470,SQLSTATE=null的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!
問題描述
我正在使用 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);
}
代碼運(yùn)行良好,直到
clobVar = (Clob) result.elementAt(3);
但是一旦執(zhí)行到
stringTemp = clobVar.getSubString(1, (int) clobVar.length());
系統(tǒng)拋出異常
[jcc][10120][11936][4.3.111] 無效操作:Lob 已關(guān)閉.ERRORCODE=-4470,SQLSTATE=null
我做錯(cuò)了什么?
如何解決這個(gè)問題?
推薦答案
這個(gè)問題可以通過在連接url中添加progressiveStreaming=2;
參數(shù)來解決
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;
如果您對該參數(shù)有異常,請?jiān)谄渲刑砑右韵聝?nèi)容:
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
這篇關(guān)于Lob 已關(guān)閉.錯(cuò)誤代碼=-4470,SQLSTATE=null的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!