Skip to content

Oracle

Oracle as a source

Setting it up: Oracle.

XStream capture is slow or stopped

Run the queries in XStream diagnostics: they show the capture process's state, latency, memory and errors.

TargetChecker reports more rows at the destination than at the source

TargetChecker (see TargetChecker: compare row counts) reports that the source and destination aren't in sync, with more rows at the destination, even after a new baseline. On the source, SELECT COUNT(1) FROM MYSCHEMA.MYTABLE returns fewer rows than the table has, while the table's statistics show the right number:

CALL DBMS_STATS.GATHER_TABLE_STATS('MYSCHEMA', 'MYTABLE');
SELECT NUM_ROWS FROM SYS.ALL_TABLES WHERE OWNER = 'MYSCHEMA' AND TABLE_NAME = 'MYTABLE';

Cause: an index of the source table is corrupt.

What to do: rebuild the source table's indexes, then compare again.

"ORA-01882: timezone region not found"

Adding or starting an Oracle Capture Agent fails with:

Unable to validate connection parameters.
ORA-00604: error occurred at recursive level 1
ORA-01882: timezone region not found

Cause: the Stelo Capture services' Java runtime sends the server's time zone region to Oracle, and the Oracle database doesn't know that region. Seen with the Central African Time zone (CAT); it can happen with others.

What to do: give the Stelo Capture services a time zone that Oracle knows, with a wrapper-local.conf file for each service. These files add to the services' wrapper.conf, which an upgrade replaces.

  1. Create C:\ProgramData\StarQuest\sqdrplus\conf\wrapper-local.conf (the SQDR Plus Launch Agent service, which runs the agents) with this line, replacing CAT with your time zone:

    wrapper.java.additional.4=-Duser.timezone=CAT
    
  2. Create C:\ProgramData\StarQuest\sqdrplus\jetty\wrapper-local.conf (the SQDR Plus Jetty service, which runs the wizard) with this line:

    wrapper.java.additional.8=-Duser.timezone=CAT
    
  3. Restart both services (see Stelo Capture services).

The number after wrapper.java.additional. must be the next one after the numbers in the service's wrapper.conf (for the Launch Agent, C:\Program Files\StarQuest\sqdrplus\capagent\wrapper\conf\wrapper.conf): a number that's already used replaces that setting. In Stelo Capture 7.0 these are 4 and 8.

"ORA-01291: missing logfile"

A LogMiner agent fails with a message such as:

ReplicationWorkerFactory.performWorkerHealthCheck: ... ReplicationException: Unexpected native error: 99999:
ORA-01291: missing logfile
ORA-06512: at "SYS.DBMS_LOGMNR", line 58

Cause: LogMiner was asked for a log file that doesn't exist. If the archived log the agent needs was deleted, see Archive log retention: the subscriptions need new baselines. It can also happen when V$ARCHIVED_LOG holds stale entries for files that no longer exist, for example after an Oracle upgrade (seen after an upgrade from Oracle 11 to 18).

What to do: list the archived logs Oracle knows of, and compare them with the files on disk:

SELECT SEQUENCE#, NAME, FIRST_TIME FROM V$ARCHIVED_LOG WHERE NAME IS NOT NULL ORDER BY SEQUENCE#;

If the old entries are stale, the DBA can clear the archived log records from the control file. In the case seen, this fixed it:

EXECUTE SYS.DBMS_BACKUP_RESTORE.RESETCFILESECTION(11);

This removes every archived log record from the control file, not only the stale ones: decide it with your DBA.

"ORA-01410: invalid ROWID"

Applying the changes of a table with LOB columns fails with a message such as:

Error processing LOB change data for subscription MYTABLE. SQL attempted: 'SELECT "MYCOL" FROM
"MYSCHEMA"."MYTABLE" WHERE ROWID= ? '. Keys: '{"ROWID": "..."}'. ODBC message: SQLSTATE HY000, native error 1410,
... ORA-01410: invalid ROWID

Cause: the subscription is keyed by ROWID, because the table has no primary key or unique index. The Replicator Service reads the LOB values from the source table by the row's key (see LOB and long columns), and the ROWID it has is no longer valid.

What to do: give the source table a primary key or a unique index, and create the subscription again so that it's keyed by it (see RRN and ROWID columns). Key tables with LOB columns this way from the start.

"ORA-26827: Insufficient privileges to attach to XStream outbound server"

The agent's Diagnostics tab shows, at start:

XStreamsReader.initialize: Could not start XStream from SCN: ...
oracle.streams.StreamsException: ORA-26827: Insufficient privileges to attach to XStream outbound server "SQDRAGENT1".

Cause: the outbound server was created as SYS, not as the XStream administrator. CONNECT_USER in SELECT SERVER_NAME, CONNECT_USER FROM DBA_XSTREAM_OUTBOUND; is SYS.

What to do: grant the DBA role to the XStream administrator again, drop the outbound server, and create it again as the XStream administrator, as in Re-create the outbound server (see also step 2 of Outbound server).

"ORA-00020: maximum number of processes exceeded" with XStream

Connections to the Oracle database fail (for example with "Connection Dead"), and the listener refuses new connections. Restarting Oracle helps only for a few hours. The alert log shows ORA-00020: maximum number of processes (n) exceeded.

Cause: several Capture Agents use the same XStream outbound server. Replication fails, and each attempt leaves inactive sessions on the database until it runs out of processes.

What to do: create one outbound server for each agent, and set each agent's xstreamServer to its own (see Outbound server).

"ORA-00600: internal error code, arguments: [knacpft_ProcessFetchedTxns250]"

The XStream outbound server's apply process stops, and the Oracle alert log shows this error.

Cause: Oracle bug 32338220, in Oracle 19.15.

What to do: apply Oracle's patch for it, or a later release update (see Required patches).

Other messages

See also, for Oracle sources:

For any other message, see Error messages.

Oracle as a destination

Setting it up: Oracle.

"ORA-00904: "ROWID": invalid character"

Creating the destination table fails with an error such as ORA-00904: "ROWID": invalid character.

Cause: a destination column is named ROWID, which is reserved in Oracle. This happens with a source column of that name, or with the column the Replicator Service adds for the ROWID of an Oracle source (see RRN and ROWID columns).

What to do: on the subscription's Columns tab, rename the destination column, or change its case (for example RowId) with Quote SQL identifiers on. For Oracle-to-Oracle subscriptions, set the rowidName service property to another name before you create them.

"ORA-03137: malformed TTC packet from client rejected"

With the SQDR bundled Oracle driver, a baseline fails with a message such as:

Insert failed at destination. ... [Oracle]ORA-39776: fatal Direct Path API error loading table "MYSCHEMA"."MYTABLE"
ORA-03137: malformed TTC packet from client rejected: [klaprs_11] ...

Cause: the driver's bulk load (EnableBulkLoad, which the Replicator Service turns on for this driver) fails for tables with more than 255 columns.

What to do: for the table's subscription, choose Insert using ODBC instead of Use native-loader function, if available in its Baseline Replication Options. Or turn off bulk load for the whole destination by adding EBL=0 to its connection string (see Oracle). Replicating fewer columns also avoids it.

Slow apply when the key is a floating-point column

From sources such as SQL Server or Db2 for i, floating-point columns map to NUMBER at an Oracle destination. When such a column is the table's key (common in JD Edwards tables), apply with the SQDR bundled Oracle driver is fastest with FPP=1 (FloatingPointParameters) added to the destination's connection string.

Other problems

See also: