Connection verification failed for data source? - 32bit-64bit

I am using your trial product InterBase ODBC Driver to connect remote borland interbase 7 database.I have verified the connection using Easysoft Interbase ODBC DSN setup(refer attached DSN_connection.png ) and test show connection successfully,but when i tried to refer same System DSN into coldfusion server 11 data source settings,we received the following error message:
Connection verification failed for data source: GarrettDB
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
Client System Configuration:
Here we install InterBase ODBC Driver and create System DSN.
Operating system: Window 2012 server, standard 64-bit
Coldfusion server 11 - 64-bit
Interbase server System Configuration:
Operating system : window 2000 server 32-bit
Borland Interbase database - 7
I didn't figure out why we are getting this error message,Please suggest if you have any solution.
Thanks

You need to check the OBDC driver version you installed on your computer. You need to create a DSN pointing to the 32 bit version of ODBC or to 64 bit version ODBC, depending on which version of ColdFusion you are using. Here are the paths to search for the ODBC Drivers.
C:\Windows\SysWOW64 or
C:\Windows\System32 (Depends on the version).
After that please search for the obbcad32 application file and create a DSN there.
If the configuration is good, you can give a try by setting the datasource in another way. Log into the CFAdmin and go to datasources. Create a datasource by selecting DB2 Universal Database driver. Specify the same Server Name that you had given when creating in the ODBC Drivers DSN. Hope this helps you.

Related

Facing error 'NZOLEDB' provider is not registered on this local machine

I am using Aginity 4.8.0.2551(build 6/14/2016) for connecting Netezza server and the Netezza ODBC driver 6.0.2.0 but still i am getting the error when trying to connect data base server from visual studio platform
Error message: The 'NZOLEDB' provider is not registered on this local machine.
Even though the ODBC driver 6.0.2.0 is installed i am facing this issue. please help me on this.
It’s possible to install ODBC and OLEDB drivers separately. Having one is no guarantee for the other

SSIS package does not run when called from a SQL Server Agent job step

I need to do Data Migration task from MySQL database to SQL Server Database 2012. I have created SSIS package for doing it. I have installed ODBC drivers of version 5.2.7 for both 32 bit and 64 bit. I have created DSN for connecting with MySQL database. This SSIS package is running successfully using Visual Studio.I have deployed SSIS package to Integration Service Catalogs and created SQL Server Agent job to run this package.But I am getting following error while running SQL Server Agent job:
"Acquireconnection method call to the connection manager failed with error code 0xc0014009"
"odbc source failed validation and returned error code 0x80004005."
I am connecting MySQL database and SQL Server using VM. I have tried to run this SSIS package with 32 bit runtime marked and changed Run64BitRuntime property to False. But still I am facing the same error.
Please note that, there is no odbc driver for MySQL is installed on the Server where SQL Server is residing but on the VM, both 32bit and 64 bit MySQL ODBC drivers are installed.
Is this the cause of mentioned error?
Please check whether you are using User DSN or system DSN in the odbc driver configuration. When deploying your packages user DSN may not work. Try creating a System DSN. That should work. I have faced the same issue. Please check my notes.
https://jyothishbhaskaran.wordpress.com/2017/09/07/how-to-create-and-use-data-source-for-mysql-using-odbc-driver/
Within the SQLAgent Job's TASK settings, I had to go into the "Advanced" tab and set it to run with the 32-bit system.

ASP.NET application is not able to find or connect to DSN of 64 bit Oracle Driver with error Data source name not found

I have developed ASP.Net application which is connecting to Oracle Database using ODBC via DSN connection.
Everything works on my local development environment but after I deployed in IIS, it is unable to connect to database & logs below error.
***[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified***
Then I started looking for solution & tried below things but nothing worked.
Checked the application is developed using Platform Any CPU.
DSN is configured & Tested Connection using Oracle client 64 bit ODBC Data Source. On 64 bit server DSN can be configured for 64 bit & 32 bit also.
Tried with setting permissions to DSN in registry for the apppool identity user.
Tried AppPool Setting for Enable 32Bit Application to True, in this case it give another error that ODBC & application architecture mismatch.
Please let me know if any more alternative is there, otherwise I am thinking of installing 32bit oracle client & try to connect using 32bit ODBC DSN.
Thanks for your help in advance.
Found this link very helpful.
https://support.microsoft.com/en-in/kb/942976
It says about the visibility of DSN connections for 32bit & 64bit applications.
Tried with small test utility (winform) & the behaviour for 32bit & 64 bit application can be distinquished.
But unable to find the solution for ASP.Net application.
I have built the code using X64 platform & then deployed it in IIS.
I was using 11.2.0 client so it started reading the DSN but Arithmetic operation resulted in an overflow exception. This is issue in the driver need to install the patch.
https://blogs.msdn.microsoft.com/mariae/2012/07/05/arithmetic-operation-resulted-in-an-overflow-error-running-a-report-that-uses-a-connection-data-source-to-oracle-10/

Informix data source name not found and no default driver specified error

I have setup a Wallboard for our Cisco Call Center connecting to the ccx database and everything works fine when I run it through Visual Studio however when I publish it out to IIS and try to view the page I am getting an:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
when it goes to access the dataSource. In my searches all I can find is that I need to add the driver to my connections string which I have attempted to do but still no luck. What am missing?
connectionString="Dsn=Wallboard-1;driver={INFORMIX 3.50 32 BIT};server=uccx1_uccx;host=xxxx;service=1504;protocol=onsoctcp;database=db_cra;uid=xxx;pwd=xxxx"
Got it! When running on a 64-bit environment you need to go into the app pool your site is running on through IIS an enable 32-Bit Applications so it can access the SysWOW64 folder. It couldn't find the driver because it couldn't find the odbc dsn.

Coldfusion 9.0.1 Standard 64bit and Oracle 11g 64bit ODBC connection results in "architecture mismatch"

I have a freshly built 64-bit Windows Server 2008 R2 box that I have installed 64-bit Coldfusion 9 Standard on. I've upgraded and hotfixed it up to the most current version of CF. I also had 64-bit Oracle 11g (11.1.0.7.0) Client installed on the box. I've created a System DSN using the 64-bit ODBC Data Source Administrator in Windows and can successfully test the connection of the data source.
All of these installations went smoothly, however, when I went to add a datasource in the Coldfusion Administrator I receive the error:
Connection verification failed for data source: myDatabaseName
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
I am having a hard time understanding exactly where this architecture mismatch is coming from since the box is entirely 64-bit. I see while looking at all the processes that are running, some related CF processes are running in 32-bit (Verity related processes, SOLR and CFDotNetSVC). I am not sure if those could cause this issue but I am at a loss to explain were this mismatch would come from otherwise.
Anyone have any ideas?
Using Dan's advice I grabbed a JDBC Driver from Oracle here:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-111060-084321.html
I then moved the JAR (ojdbc6.jar in my case) and added it to my Coldfusion Class Path.
Determining the correct settings for using the datasource to Coldfusion was slightly harder but here are the settings I ended up going with:
JDBC URL: jdbc:oracle:thin:#//dbsrv.mydomain.com:1521/myDB.world
Driver Class: oracle.jdbc.driver.OracleDriver
Driver Name: Oracle Thin Driver
Then the username and password for the DB.
Sure enough it worked like a charm.
Dan, I want to give you a check mark because you definitely put me in the right direction, but I can only mark one correct.
I believe you need to either step down to the 32-bit drivers, or use native JDBC drivers to connect to Oracle successfully. My suggestion would be to go the JDBC route, and connect directly through a native Oracle JDBC driver by using the "other" selection on the Datasource screen. You'll get better performance that way, and have more control over your connection via ColdFusion.
Connecting to Oracle information in ColdFusion Livedocs.
i found an alternate way to do this
install the ODBC drivers for 64bit and 32bit (in that order) on your win2008 64bit OS
thereafter create the DSNs on both the System32 folder and SysWow64 folder by running the odbc32ad32.exe
ensure your tnsnames are setup fine in the respective network/admin folder (if you use tnsnames to maintain your sids)
now on the CF admin you creaet a new ODBC source with aODBC Socket and name. the next page should show you a drop down of all DSNs that exists in the 64bit DSN setup. When you go and test it in CF, it will strangely use the config of the 32bit DSN setup for validationb
voila....your connections should work. No worries of those architectural failures etc
We needed to setup 64 bit ODBC connections for a ColdFusion 11 server to query against 2012 SQL Server instance on Windows 2008 R2 Server. The ODBC connections would show up but would never work. We received so many various messages when verifying such as "needing SSL connections to work" and also timeout messages as it was having problems logging into SQL Server.
I stumbled across this post and we decided to follow setting up 64bit ODBC connections and then effectively overwriting them--preserving the name using the 32bit ODBC. Thank you again fellow developers, especially Souzam! My instructions are below:
For Windows 2008R2 Server you must disguise 64bit ODBC socket configurations for 32 bit in order for them to appear in CF Admin as datasources (obvious bug in CF 11):
Creating 64bit ODBC connections via 2008 R2 ODBC application, follow a naming convention that will allow you to recall in 32 bit configuration.
Configure ODBC 32bit connection in SYSWOW64 (C:\Windows\SysWOW64) using the odbcad32.exe using the previous 64bit names in Step #1.
Create data sources in CF Admin as these should appear in a dropdown when creating ODBC Socket Type connections.

Resources