gpt4 book ai didi

db2 - 使用 Business Objects Data Integrator 11.7 更新 AS/400 上的 DB2 数据库表时出错

转载 作者:行者123 更新时间:2023-12-02 22:23:02 24 4
gpt4 key购买 nike

我们需要使用 Business Objects Data Integrator 11.7 更新 AS/400 上 DB2 数据库表中的记录。 Data Integrator Designer 版本为 11.7.3安装的驱动程序是 iSeries ACCESS ODBC Driver 11.0.2,CLIENT ACCESS ODBC DRIVER 11.0.2

我们能够对单个记录进行更新,但是在进行批量更新时,我们收到以下错误消息,任何人都可以提供帮助。

DBS-070401: ODBC DATA SOURCE <xxxx> Error Message for Operation
<SQLExecute>: <[IBM][iSeries Access ODBC Driver]Driver not capable.>
RUN-051005:
Execution of <Regular Load Operations> for target <XXX_XXXX> failed. Possible causes: (1) Error in the SQL syntax; (2) Database
connection is broken; (3) Database related errors such as transaction log is full, etc.; (4) The user defined in the datastore
has insufficient privileges to execute the SQL. If the error is for preload or postload operation, or if it is for regular load
operation and load triggers are defined, please check the SQL. Otherwise, for (3) and (4), please contact your local DBA.

如果 DI 作业的选择查询仅针对一条记录进行过滤,则会生成以下更新语句并通过 Data Integrator 执行。在这种情况下,不会显示驱动程序错误。

UPDATE TIBCO_STG.PUB_AREA SET ADB_L_DELIVERY = 'C'   WHERE ADB_SEQUENCE = 22849415 

如果select query没有被过滤,DI Job会生成下面4条update SQL,在这个Bulk records update上会显示Driver error。

UPDATE TIBCO_STG.PUB_AREA SET ADB_L_DELIVERY = 'C'   WHERE ADB_SEQUENCE = 22849415 
UPDATE TIBCO_STG.PUB_AREA SET ADB_L_DELIVERY = 'C' WHERE ADB_SEQUENCE = 22849416
UPDATE TIBCO_STG.PUB_AREA SET ADB_L_DELIVERY = 'C' WHERE ADB_SEQUENCE = 22849417
UPDATE TIBCO_STG.PUB_AREA SET ADB_L_DELIVERY = 'C' WHERE ADB_SEQUENCE = 22849418

最佳答案

我在您的 UPDATE 语句之间没有看到任何分号。

您可能还想考虑其他方法。例如:

UPDATE TIBCO_STG.PUB_AREA 
SET ADB_L_DELIVERY = 'C'
WHERE ADB_SEQUENCE in (22849415, 22849416, 22849417, 22849418)

UPDATE TIBCO_STG.PUB_AREA 
SET ADB_L_DELIVERY = 'C'
WHERE ADB_SEQUENCE in (select seq from someFullSelectOrWorkFile)

如果有某种方法将 WHERE 条件编码为 fullSelect,您将能够在单个 SQL 语句中完成此操作。一次设置处理比一次处理一行更有效。

关于db2 - 使用 Business Objects Data Integrator 11.7 更新 AS/400 上的 DB2 数据库表时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13410808/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com