SSIS: ODBC Connection Issue in BIDS 2008 - oracle

I have an oracle DB i need to talk to so i installed the drivers and added it to the system DSN Data Sources. IM ON SQL SERVER 2008 R2 64bit
In BIDS, I can see the name of the DataSource, however when i go to enter it in the connection manager I get the following error:
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
Any Ideas on how to resolve this?
I can connect to the Oracle DB through SQL Plus so i know i have connectivity.
Thanks!

When you installed the 11g client, I assume you did a custom install and installed the ODBC driver, right? And you set your ODBC DSN up using the Oracle Driver, not the Microsoft Driver? Did you test the DSN with the ODBC wizard?

#kevin
The 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
this error can be resolved by using a 32 bit driver for oracle connectivity and setting the package runtime properties to set 64 bit runtime= false.
also create a odbc dsn by using the 32 bit oracle driver.on 64 bit machines search for odbc32.exe. the path for it is the following C:\Windows\SysWOW64\odbcad32.exe.
run this as an administrator and use this DSN in your SSIS package and the issue will be resolved.

Related

[Microsoft][ODBC Driver Manager ] Datasource name not found and no device driver specified

I am trying to open a Access db in oracle Sql developer. For the same I have added Microsoft access driver for both 32 and 64 bit at ODBC datasource administrator.
Now, while opening the Access file in SQL Developer tool, I am getting below error.
[Microsoft][ODBC Driver Manager ] Datasource name not found and no device driver specified
Please help.

ODBC connection through DSN

Specified driver could not be loaded due to system error 127: The specified procedure could not be found. (XODBC64, C:\WINDOWS\System32\xodbc\xodbc64.dll).
Unable to connect using the DSN named "XXXXXX". Check that the DSN exists and is a valid connection.
I am trying to connect to an ODBC through Tableau 9.2, does anyone know if this is possible or is this something I could solve?
I have tested the DSN and it works.

Oracle ODI JDBC driver for SQL Server 2005 connection error

I am using Oracle ODI 11.1.1.7 version on a Windows 7 64bit machine. I want to connect to a SQL Server 2005 database using the driver com.microsoft.sqlserver.jdbc.SQLServerDriver.
I have downloaded and installed from Microsoft the drivers
Microsoft JDBC Driver 4.1 for SQL Server
and also
Microsoft JDBC Driver 4.0 for SQL Server
But I still have a connection error:
ODI-26039: Connection failed
Java.lang.RuntimeException: java.lang.IllegalArgumentException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]
Did anyone else experience this issue?
Thank you in advance.
Kindly check this url. You need the specific driver depending upon the version of JDBC. You need to elaborate more on your question.
https://msdn.microsoft.com/en-us/library/ms378422(v=sql.110).aspx

Microdoft ODBC for oracle defined source not being picked up by application and throwing SQLConnect() failed

I have a 32 bit .net exe (on a win 7 machine) which runs and writes data to an oracle db. For this application to access the DB I have created a ODBC source (Microsoft ODBC for Oracle) under System DSN of odbcad32.exe from c:\windows\syswow64.
Instead of picking this source the application is picking a default connection source for the user. Please see below. (from sqlnet.ORA)
Fatal NI connect error 12560, connecting to:
(DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=D:\Projects\abc\Web\dll\reader.exe)(HOST=abc-43DGMX1)(USER=NGolia))))
The application (exe) is obviously not able to connect to the correct DB and throws a
ERROR SQLConnect() Failed.
Could anyone help let me know what could be missing? Am I missing any environment variables or
Are you able to test the connection in the Oracle ODBC Driver Configuration? If the application is 32bit, you're using the correct odbcad32.exe. I would check your tnsnames.ora in your $ORACLE_HOME and verify the database information looks correct there.

ORA-12154 error on server 2008

I'm moving a VB.NET 2010 app from a 32bit 2003 server to a 64bit 2008 server that connects to an Oracle 11g database, and am getting the following error message when executing it.
DefaultSource Error 2
ERROR [08004] [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
Here's some things I've done.
Added the TNS_ADMIN environment variable to the server.
Had server management install the 64bit "Oracle driver Oracle in OraClient11g_home1". They also uninstalled the 32bit "Microsoft ODBC for Oracle" driver.
Verified I can connect to the server using SQLPlus
Updated my connection string as I use to use the 32bit "Microsoft ODBC for Oracle"
Added the database to the ODBC System DNS, and verified the connection worked.
Here's my connection string from my config file under the node.
<add name="SCHEMA_NAME"
connectionString="Driver={Oracle in OraClient11g_home1};Dbq=DATABASE_NAME;uid=USER;pwd=PASSWORD;"/>
Any suggestions to what I can try, or what needs to be changed to get this working on the new server?
I fixed the problem by changing the way I connect to oracle. I'm using the Oracle.DataAccess reference, removing the driver reference in the connection string, and rebuilding the connection using OracleConnection and oracleCommand.

Resources