Mapping
The following tables explain how Db2 source datatypes are mapped to each target database. Wirekite extracts data from Db2, converts it to an internal type representation, then maps to the appropriate target type.Wirekite reads column metadata from the
SYSCAT.COLUMNS catalog view. Unquoted Db2 identifiers are folded to uppercase in the catalog; Wirekite lowercases table and column names on output.Numeric Types
DECIMAL/NUMERIC carry their precision and scale through to the target. Db2’s maximum DECIMAL precision is 31; a source column with higher precision is capped at 31 when Db2 is the target. DECFLOAT is decimal floating-point with no fixed scale, so it maps to a 64-bit float rather than a fixed NUMERIC(p,s).Boolean Type
Character Types
Graphic (Double-Byte) Types
Db2 graphic (DBCS) types store Unicode text and fold to the same internal representation as their character counterparts (
GRAPHIC→CHAR, VARGRAPHIC→VARCHAR, DBCLOB→CLOB). On a UTF-8 database the values are preserved through the initial load. They are not supported by CDC — see the warning above.Binary Types
Date and Time Types
Db2
TIME has no sub-second precision. TIMESTAMP supports fractional seconds up to 12 digits; Wirekite preserves microsecond precision (.FF6) on the wire.Other Types
Any Db2 type not listed above (for example
ROWID, TIMESTAMP WITH TIME ZONE, or CHAR FOR BIT DATA) falls back to a wide character type on the initial load, with a warning logged. These fallback types are not supported by CDC.