問題描述
我已經將一些數據從模式 A(表 x)導出到 XML
,我正在讀取 XML
并將數據插入到模式 B(表 y)中.在 20000 條記錄之后插入數據時,它說
I have exported some data from schema A (table x)to XML
and I am reading the XML
and inserting the data into schema B(table y). while inserting the data after 20000 records it says
com.ibm.db2.jcc.am.SqlSyntaxErrorException: [jcc][t4][20111][11366][3.63.75] The value of a host variable is too large for its corresponding use. Host variable=1. ERRORCODE=-4461, SQLSTATE=42815
com.ibm.db2.jcc.am.BatchUpdateException: [jcc][t4][102][10040][3.63.75] Batch failure.
該批次已提交,但該批次的單個成員至少發生了一次異常.
The batch was submitted, but at least one exception occurred on an individual member of the batch.
我比較了表 x 和表 y 中對應列的數據類型,它們是相同的.源和目標中的標識(自動增量)col 和 LONG VARCHAR 都是 BIGINT..
I compared the data types of the corresponding columns in table x and table y they are the same. It is BIGINT for the identity(Auto increment) col and LONG VARCHAR in both source and destination..
請幫助解決此問題.
推薦答案
我曾經遇到過類似的問題.我解決了將隊列大小添加到 XML 中的問題.在我的情況下是這樣的:
I had a similar problem one time. I solved it adding to the XML the queue size. In my case was something like this:
<task>
<name>Ventas MCC</name>
<queueSize>100</queueSize>
<queueNames>trashQueue</queueNames>
<queryTasks>
<queryTask>...</queryTask>
</queryTasks>
</task>
使用 queueSize 批量啟動查詢.
With the queueSize the queries was launched in batch.
這篇關于DB2 中的 ERRORCODE=-4461,SQLSTATE=42815的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!