Skip to content

Informix

Informix as a source

Setting it up: Informix.

"Only a DBA can create, drop, grant, or revoke for another user."

The agent fails with this message when it starts, or when you publish a table.

Cause: the agent's user isn't named like its control schema and has no DBA authority on the database (see The agent user's name).

What to do: one of these:

  • Use the same name for the user and the control schema (see Users and privileges).
  • Set the agent property sourceDbSchema to the user's name on the agent's Configuration tab, and start the agent.
  • For a publication only: in Add Publications, select Export to SQL script: (see Publish tables), remove the GRANT statements from the script, and run it as the agent's user.

The control tables already exist when you add a second agent

Cause: Informix table names must be unique in a database, so each database can have only one agent (see How the agent uses your tables).

What to do: use the existing agent for that database. Another database of the instance can have its own agent.

"19816 - Cannot perform this operation on a table defined for replication"

Altering or dropping a replicated table fails with this message.

Cause: full-row logging is still on for the table (see How the agent uses your tables).

What to do: delete the table's subscription and wait for the agent's next pruning, which turns full-row logging off: every 30 minutes by default (agent property pruneInterval), and about a minute after you restart the agent. If the subscription is already deleted, turn full-row logging off yourself: in dbaccess, connected to syscdcv1 as a DBA, run

EXECUTE FUNCTION informix.cdc_set_fullrowlogging('<database>:<owner>.<table>', 0);

It returns 0 when it succeeds, and -83703 when the database or table name is wrong.

"CDC: Log Reader: ERROR: could not get logid"

The Informix message log shows this message, and many subscriptions need a new baseline.

Cause: Informix reused a logical-log file before the agent read it.

What to do: add logical-log space (see Keeping the logical log for the agent), and run new baselines (see New baseline needed: the Capture Agent lost its log position).

The Informix server stops while CDC is running

The server stops while the agent captures changes, for example when it's switched to single-user mode.

Cause: a rare race condition in Informix, IBM APAR IT29905.

What to do: install an Informix release with the fix: 12.10.xC14, 14.10.xC3 or later.

Characters arrive as "?"

Replicating to or from Informix with the IBM Informix ODBC driver, non-ASCII characters arrive as ?: for example CÔTE arrives as C?TE.

What to do: add Client_Locale=en_US.utf8 to the connection string, for example Server=myconn;Host=myhost;Service=9088;Protocol=olsoctcp;Database=mydb;DELIMIDENT=Y;Client_Locale=en_US.utf8 (see Informix).

Other messages

For any other message, see Error messages.

Informix as a destination

Setting it up: Informix.

"A syntax error has occurred" when the destination table is created

Creating a subscription fails with a message such as:

Error executing statement 'CREATE TABLE "myschema"."mytable" ("fld1" INTEGER NOT NULL, "fld2" CHAR(10))':
ODBC message: SQLSTATE 42000, native error -201, [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.

Cause: the Replicator Service quotes table and column names, and the connection doesn't accept quoted identifiers.

What to do: turn on delimited identifiers in the destination's connection string: DELIMIDENT=Y with the IBM Informix ODBC driver (the Replicator Service adds it when it's missing), UseDelimitedIdentifier=1 with the SQDR bundled Informix driver. Or set the environment variable DELIMIDENT on the Informix server. Don't clear Quote SQL identifiers (see Replication defaults) to avoid it: the Replicator Service's apply statements quote names too (see Informix).

"DDL operations on "rowid" prohibited"

Creating the destination table fails with [Informix][Informix ODBC Driver][Informix]DDL operations on "rowid" prohibited when a destination column is named ROWID, which Informix reserves: a source column of that name, or the column added for the ROWID of an Oracle source (see RRN and ROWID columns). On the subscription's Columns tab, rename the destination column, or change its case (for example RowId) with Quote SQL identifiers on; or set the rowidName service property to another name before you create the subscriptions.