AcquireConnection方法调用连接管理器Oracle Connector失败

时间:2016-11-16 18:25:42

标签: oracle ssis

我已经将连接管理器从SSIS设置为Oracle:

enter image description here

在Oracle资源中:

enter image description here

我可以成功预览数据: enter image description here

但是,在尝试执行packge时,erorr显示为:

SSIS package "C:\Users\kakah\Documents\Visual Studio 2015\Projects\TestExcel\TestExcel\INV_MTL_SYSTEM_ITEMS_TL.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x802092A7 at Data Flow Task, OLE DB Destination [17]: Truncation may occur due to inserting data from data flow column "DESCRIPTION" with a length of 600 to database column "DESCRIPTION" with a length of 150.
Warning: 0x802092A7 at Data Flow Task, OLE DB Destination [17]: Truncation may occur due to inserting data from data flow column "LONG_DESCRIPTION" with a length of 2000 to database column "LONG_DESCRIPTION" with a length of 150.
Error: 0x2C0 at INV_MTL_SYSTEM_ITEMS_TL: OCI error encountered. ORA-12154: TNS:could not resolve the connect identifier specified
Error: 0x20F at Data Flow Task, Oracle Source [62]: The AcquireConnection method call to the connection manager Oracle Connector failed with error code 0x80004005.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at Data Flow Task, SSIS.Pipeline: Oracle Source failed validation and returned error code 0x80004005.
Error: 0xC004700C at Data Flow Task, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at Data Flow Task: There were errors during task validation.
SSIS package "C:\Users\kakah\Documents\Visual Studio 2015\Projects\TestExcel\TestExcel\INV_MTL_SYSTEM_ITEMS_TL.dtsx" finished: Failure.

我能错过什么?怎么解决这个问题?

3 个答案:

答案 0 :(得分:0)

执行包裹到底是什么意思?从BIDS / SSDT或SQL Server代理执行它?

您使用的是否有任何配置文件/动态配置?从它看来,连接管理器在运行时使用的tnsnames.ora文件具有错误的连接信息。

答案 1 :(得分:0)

SSDT 2017连接到Oracle 9i。

问题:在Windows 10笔记本电脑上,我安装了10G 32位和11G 64位客户端

解决方案:删除所有客户端,仅安装32位和64位客户端的一个版本的Client 11G,而SSIS就像一个魅力

答案 2 :(得分:0)

如果右键单击项目并转到属性->配置属性->调试,您是否确定Run64BitRuntime为False?有时会切换为True并将其破坏。