How do I connect to Oracle with SSIS? I am getting the error: “tns listener was not given the service_name in connect_data”

女生的网名这么多〃 提交于 2019-12-10 13:36:03

问题


I am trying to connect to an Oracle DB through the Oracle Provider for OLE DB in SSIS, but am getting the following error when testing the connection: "tns listener was not given the service_name in connect_data". I am not too familiar with Oracle, so could someone provide me some direction for how to fix this error?


回答1:


You can add the service name after the host name with a forward slash between them. This has worked in both the Microsoft and Oracle OLE DB providers.

IP/Service_Name also works, "12.12.123.123/Server1.domain.com"




回答2:


First of all, always use Oracle driver. Not the Microsoft one.

Then, when connecting, supply the TNSNAME, USERNAME and PASSWORD to a OLEDB Connection.

That's all!




回答3:


Ok ok, been here, and this is what works:

You need oracle data access components http://www.oracle.com/technetwork/topics/dotnet/utilsoft-086879.html

Download the one that applies to you (11g, 12c...) It installs an OLE DB provider which is FAST and also .NET connectors (wich also work really well), so I recommend using OLEDB (also, attunity connector works wonders aswell after you installed ODAC).

Then just connect using ip/service name + credentials, for example

Image




回答4:


You need to type "Servername/ServiceName" to Server Name Field .



来源:https://stackoverflow.com/questions/13199181/how-do-i-connect-to-oracle-with-ssis-i-am-getting-the-error-tns-listener-was

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!