如何从 SSIS/SQL Server Data Tools 连接到 Oracle db?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13623779/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to connect to Oracle db from SSIS/SQL Server Data Tools?
提问by Sarah
I have Oracle 11g r2 client installed on my 64 bit machine running Windows Server 2008 r2. Have the following installed: SQL Server 64 bit MS Office 64 bit
我在运行 Windows Server 2008 r2 的 64 位机器上安装了 Oracle 11g r2 客户端。安装以下软件: SQL Server 64 位 MS Office 64 位
I tried connecting from excel/powerpivot to the oracle db, it works perfectly fine.
我尝试从 excel/powerpivot 连接到 oracle db,它工作得很好。
However, when I try to connect from SSIS to the Oracle db, I get a mismatch between the driver and application.
但是,当我尝试从 SSIS 连接到 Oracle 数据库时,我发现驱动程序和应用程序之间不匹配。
(TITLE: Connection Manager
Test connection failed because of an error in initializing provider. ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application )
(标题:连接管理器
由于初始化提供程序时出错,测试连接失败。错误 [IM014] [Microsoft][ODBC 驱动程序管理器] 指定的 DSN 包含驱动程序和应用程序之间的体系结构不匹配)
How do I overcome this issue? Thanks!
我如何克服这个问题?谢谢!
回答by Justin
You need configure Oracle ODBC Driver 32 bit on:
您需要在以下位置配置 Oracle ODBC 驱动程序 32 位:
c:\windows\sysWOW64\odbcad32.exe
c:\windows\sysWOW64\odbcad32.exe
SSIS of server 2008 r2 is always running on 32 bit no matter what SSIS say:)
无论 SSIS 怎么说,服务器 2008 r2 的 SSIS 始终在 32 位上运行:)
You need to edit runtime of SSIS package and set it to false to find 32 bit ODBC driver (first window) http://sqlblog.com/blogs/john_paul_cook/archive/2010/03/24/running-32-bit-ssis-in-a-64-bit-environment.aspx
In "Agent" Job Step properties "Execution options" tab you need check "Use 32bit runtime" option.
您需要编辑 SSIS 包的运行时并将其设置为 false 以找到 32 位 ODBC 驱动程序(第一个窗口) http://sqlblog.com/blogs/john_paul_cook/archive/2010/03/24/running-32-bit-ssis -in-a-64-bit-environment.aspx
在“代理”作业步骤属性“执行选项”选项卡中,您需要选中“使用 32 位运行时”选项。