首页 > 解决方案 > SSIS 错误代码 DTS_E_OLEDBERROR 0x80004005

问题描述

我正在运行一个 SSIS 包,它使用 OLEDB 连接从 Oracle 10.2.0.5.0 数据库中获取数据并将其插入 SQLServer 2012 (11.0.6260)

我收到以下错误。

Time: 2021-02-05 01:13:55 AM
Task: Data Flow Task
Error Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.

其次是

Time: 2021-02-05 01:13:55 AM
Task: Data Flow Task
Error Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on OLE DB Source returned error code 0xC0202009.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

目标表上没有键或约束。

两个数据流任务都CommandTimeout设置为0.

具有相同源和目标数据库的所有其他包都可以正常运行。

编辑 2

这个特定的包在我们的测试/开发环境中运行良好。

我已经多次运行该包,并注意到源查询返回大约 4500 条记录,但只有大约 500 条被插入到目标数据库中。

结束编辑 2

还有什么我可以检查的吗?

编辑 1

错误消息与服务管理器中显示的一样。

错误信息

错误之前的日志文件如下。

在此处输入图像描述

源查询与运行查询相当。大约需要 9 分钟。

结束编辑 1

标签: sql-serverssisoledb

解决方案


使用用于我们的集成的用户直接登录到 oracle 数据库并运行查询会出现以下错误。

oracle 错误 ORA-02392

增加用户配置文件的大小后,查询返回数据并且集成正确运行。


推荐阅读