IBM informix ODBC driver to OLEDB - odbc

We are doing a lift and shift of SSIS package through ADF. In this package, there is a connection between IBM Informix ODBC (DSN) to SQLDB(OLEDB). While we are migrating it through ADF, we see a issue with DSN, so tried creating a Connection string for DSN and we are using below connection string.
Driver={IBM INFORMIX 3.82 32 BIT};Host=xxxxx;Server=xxxxx;Service=1528;Protocol=olsoctcp;Database=d7main;Uid=xxxx;Pwd=xxxxx;DB_LOCALE=en_US.819;CLIENT_LOCALE=en_US.819;UNICODE=TRUE;
But there is issue in connection with the above connection string. "The error is Infoxmix ODBC connection string is asking for OLEDB provider."

Related

Using ODBC package to access SQL Express from R on Mac vs PC

I've been trying to set up a remote SQL Express database to test analysis work I've been doing (the full dataset is a full SQL Server build but for IG purposes I'm trying to do a minimal test setup in-house). I have a copy of the latest version of SQL Express set up on an old PC. My primary development environment is on the Mac, but I've got Bootcamp installed on it.
I installed the MS SQL ODBC driver for Mac from the Microsoft website, and have been trying to use the ODBC package following the instructions on https://db.rstudio.com.
After initial attempts failed, I tested the local setup of the SQL Server, following Microsoft's troubleshooting guide.
I then switched using Bootcamp to Windows, installed RStudio on there, and ran the same line of code (below) with the Windows version of the driver name, with success.
I've disabled the firewall to ensure that this wasn't interfering. I've pinged Test-PC and confirmed that the IP address works as expected. The error I get is as below.
Could anyone suggest where to go / look next?
library(odbc)
> odbc::odbcListDrivers()
name attribute value
1 ODBC Driver 13 for SQL Server Description Microsoft ODBC Driver 13 for SQL Server
2 ODBC Driver 13 for SQL Server Driver /usr/local/lib/libmsodbcsql.13.dylib
3 ODBC Driver 13 for SQL Server UsageCount
> con <- dbConnect(odbc::odbc(), Driver="ODBC Driver 13 for SQL Server", Server = "Test-PC/SQLEXPRESS", UID = "my_user", PWD = "my_password", Port = 1433)
Error: nanodbc/nanodbc.cpp:950: HYT00: [Microsoft][ODBC Driver 13 for SQL Server]Login timeout expired

Oracle instant client ODBC connection

I have a problem connecting to Oracle DB using ODBC library. ODBC drivers are installed and when I test connection through ODBC admin tool in windows it is ok. However, in R I'm running into the following problem:
con <- dbConnect(odbc::odbc(), "ORACLEDNS")
Error: nanodbc/nanodbc.cpp:950: 28000: [Oracle][ODBC][Ora]ORA-01005: null password given; logon denied
Adding PWD results in R session being unresponsive without providing any type of error.
con <- dbConnect(odbc::odbc(), "ORACLEDNS", PWD = "password")
How can I debug the issue, what might be the problem?
DB Version:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

I can't connect Netezza with microsoft ODBC (VS 2013)

I install netezza ODBC drivers and configure data sources(ODBC) in Adminitstrative tools by add user DSN as NZSQL.
Next I connect with Visual studio 2013 using DSN in Server Explorer, in Datasource I select Microsoft ODBC data source and data provider I select .Net framework data provider for ODBC. The connection test is successful and I copy connectionstring from connection string in server explorer and paste it in web.config:
<add name="cn" connectionString="Dsn=NZSQL;Driver={NetezzaSQL};uid=kbanke2e"/>
When I compile the error is:
Additional information: A network-related or instance-specific error
occurred while establishing a connection to SQL Server. The server was
not found or was not accessible. Verify that the instance name is
correct and that SQL Server is configured to allow remote connections.
(provider: Named Pipes Provider, error: 40 - Could not open a
connection to SQL Server
I successfully managed to create a Netezza datasource in VS2013 by specifying the full connection string manually:
Driver={NetezzaSQL};server=a.b.c.d;port=5480;database=SYSTEM;uid=myname;password=mypwd;
The only problem I had was due to VS looking for the 32-bit driver (nsqlodbc.dll) in C:\Windows\SysWOW64. Initially I only had the 64-bit driver installed.

Sybase login error, using ODBC Driver, system error 127, specified procedure could not be loaded

I am tring to connect to Sybase server through an application which uses ODBC Drivers to connect, but when I attempt to login it was throwing an error saying
ERROR ESTABLISHING CONNECTION, SPECIFIED DRIVER COULD NOT BE LOADED
DUE TO SYSTEM ERROR 127: THE SPECIFIED PROCEDURE COULD NOT BE
FOUND.(SYBASE ASE ODBC DRIVER, C:\PROGRA`2\SYBASE\ODBC\SYODASE.DLL).
MICROSOFT OLEDB PROVIDER FOR OBDC DRIVERS.
I am using Sybase ASE 15.7 AND Sybase Open Client ODBC Driver 15.
In my experience this error indicates that some dependencies could not be loaded. Assuming your PATH is all the right locations on it you may be missing some files from the client.

File DSN for iSeries AS400 ODBC connection

How can I create a file dsn for connecting to an AS400 system using the iSeries ODBC driver?
The iSeries ODBC driver allows many settings to be configured. Where can I find a list of all properties that can be set in the file DSN?
Driver={iSeries Access ODBC Driver};System=server;Uid=user;Pwd=password;
Where server is the system to connect (either IP address or hostname), username and password.
You can have a .dsn file like this:
[ODBC]
DRIVER=iSeries Access ODBC Driver
System=server;
Uid=user;
Pwd=password;
Initial Catalog=library;
There is a good internet resource regarding connectionstrings of all flavors:
http://www.connectionstrings.com/
Here is the page for the AS400 ODBC drivers: http://www.connectionstrings.com/as-400
ODBC
IBM Client Access ODBC driver
Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;
Uid=myUsername;Pwd=myPassword;
IBM iSeries Access ODBC driver
This driver is newer than the one above.
Driver={iSeries Access ODBC Driver};System=my_system_name;
Uid=myUsername;Pwd=myPassword;
IBM .Net Data Provider
Using the IBM.Data.DB2.iSeries namespace
DataSource=myServerAddress;UserID=myUsername;
Password=myPassword; DataCompression=True;
OLE DB, OleDbConnection
IBM Client Access OLE DB provider
Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;
User Id=myUsername;Password=myPassword;
Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator
IBM Client Access OLE DB provider
Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;User Id=myUsername;
Password=myPassword;Default Collection=MY_LIBRARY;
Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.
I just discovered you can create a file DSN using the ODCB Administration tool, for any type of ODBC driver.
Here is the IBM documentation on ODBC connection string parameters.
Here's a great detailed description of what each keyword is and how you can configure them. The discusion is for DSN-less connections, in applications, but is useful if you want to customize your file DSN. I found it more useful than the IBM documentation.
http://www.sqlthing.com/HowardsODBCiSeriesFAQ.htm

Resources