We are trying to figure out a good strategy to connect a .NET Core Microservice
to an Informix DB. The .NET Core Microservice
is running on RHEL Linux.
Our current implementation uses the OdbcConnection
.NET Core class to attempt its connection. No matter what I've tried I also get the same result. It can't connect.
Here's an example connection string we are using:
Dsn=;Driver=/opt/HCL/informix/4.10/lib/cli/iclis09b.so;Host=redactedip;Server=redactedserver;Protocol=olsoctcp;Database=redacted;LogonID=redacted;Uid=redacted;Pwd=redacted;Client_Locale=en_US.CP1252;Db_Locale=en_US.819;
I have attempted an odbc.ini
file with a DSN crafted within it. This works from isql at the command line, but does not work in our .NET Core app. (We've also used these same settings above to set DSN in odbc.ini)
I have also attempted connection strings in many different fashions. None which work.
Can you connect to Informix on Linux without an odbc.ini? (Just using a connection string?)
Are there other packages/solutions for .NET Core which would perhaps be better and more robust than a raw ODBC Connection? I've seen packages like IBM.Data.DB2.Core
which is supposed to be able to access Informix. Has anyone used this successfully?
Even a source example of a working Linux configuration of ANY type for a .NET Core application would be helpful...
Any ideas?