Skip to content

Informix

For Informix as a source, see Prepare an Informix database.

DBMS Type Informix
Driver The SQDR bundled Informix driver, installed and licensed with SQDR; or install the IBM Informix ODBC driver (Informix Client SDK) or the IBM Db2 ODBC driver (DRDA port) on the Stelo VM.
Connection string See Connection string.
Apply methods Batch, Merge, Sequence

Docker

The SQDR container includes the SQDR bundled Informix driver and the IBM Informix ODBC driver.

Prepare the database. In the destination database, give the user the RESOURCE privilege, which lets it create tables and indexes (CONNECT alone doesn't):

GRANT RESOURCE TO sqdruser;

Replace sqdruser with the user the destination connects as (an operating system user, or a user mapped by the Informix server). The user owns the tables it creates, so it can also alter, drop and write to them. Merge uses a temporary table (CREATE TEMP TABLE ... WITH NO LOG), which any user with CONNECT can create.

Settings.

  • Delimited identifiers. With the IBM Informix ODBC driver, the Replicator Service adds DELIMIDENT=Y to the connection if it's missing. Keep it: the SQL the Replicator Service writes, including the merge statements, quotes table and column names.
  • Index and constraint names are created in lowercase, without quotes.

Data types. Informix MULTISET, SET, LIST, ROW and MONEY columns are created only for source columns of the same type.

Troubleshooting: see Troubleshooting › Informix.

Connection string

Driver Connection string Notes
SQDR bundled Informix driver HostName=myhost;PortNumber=9088;Database=mydb On Linux (Docker), add Client_Locale=en_US.utf8.
IBM Informix ODBC driver Server=myconn;Host=myhost;Service=9088;Protocol=olsoctcp;Database=mydb;DELIMIDENT=Y Server is the Informix server name. On Windows you can also define the connection with Setnet32 and use Server=myconn;Database=mydb. The Replicator Service adds DELIMIDENT=Y if it's missing and, on Linux, CLIENT_LOCALE=EN_US.UTF8.
IBM Db2 ODBC driver HOSTNAME=myhost;PORT=9089;DATABASE=mydb Connects to Informix's DRDA port.