Table of Contents

Search

  1. Preface
  2. Overview
  3. Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources
  4. Datatype Mappings for Microsoft SQL Server Sources
  5. Datatype Mappings for MySQL Sources
  6. Datatype Mappings for Oracle Sources
  7. Datatype Mappings for Virtual Source Columns

Datatype Mapping Reference

Datatype Mapping Reference

DB2 for Linux, UNIX, and Windows Source and Greenplum Target

DB2 for Linux, UNIX, and Windows Source and Greenplum Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 for Linux, UNIX, and Windows source and a Greenplum target:
DB2 Source Datatype
Greenplum Target Datatype
Comments
BIGINT
BIGINT
-
BLOB
BYTEA
Data Replication does not extract LOB data from compressed rows.
Use the global.lob_truncation_size runtime parameter to set the maximum size of a source LOB value that the Applier and InitialSync can replicate to the target. Maximum supported size for change data capture is 50 MB.
CHARACTER(
n
)
CHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
-
CHARACTER FOR BIT DATA
BYTEA
-
CLOB(
n
)
VARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
Data Replication does not extract LOB data from compressed rows.
Use the global.lob_truncation_size runtime parameter to set the maximum size of a source LOB value that the Applier and InitialSync can replicate to the target. Maximum supported size for change data capture is 50 MB.
DATE
DATE
-
DBCLOB
TEXT
Data Replication does not extract LOB data from compressed rows.
Use the global.lob_truncation_size runtime parameter to set the maximum size of a source LOB value that the Applier and InitialSync can replicate to the target. Maximum supported size for change data capture is 50 MB.
DECFLOAT
VARCHAR(45)
-
DECIMAL(
p
,
s
)
  • NUMERIC(
    p
    ,
    s
    )
    Mapping condition:
    (
    p
    <= 31) and (
    s
    <=
    p
    ) and (0 <=
    s
    ) and (1 <=
    p
    )
  • NUMERIC(
    p
    ,
    s'
    )
    s'
    = 0
    Mapping condition:
    (
    p
    <= 31) and (
    s
    == -1) and (1 <=
    p
    )
  • NUMERIC(5,0)
    Mapping condition:
    (
    p
    == -1) and (
    s
    == -1)
-
DOUBLE
DOUBLE PRECISION
When replicating an 8-byte floating-point numeric value to a DOUBLE PRECISION column on the target, the Applier rounds this value and preserves only 15 digits after the decimal point by default. Use the apply.merge.double_precision runtime parameter to change the default precision value.
GRAPHIC(
n
)
CHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
-
INTEGER
INTEGER
-
LONG VARCHAR(
n
)
VARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
Data Replication does not extract LONG VARCHAR data from compressed rows.
LONG VARCHAR FOR BIT DATA
BYTEA
Data Replication does not extract LONG VARCHAR FOR BIT DATA data from compressed rows.
LONG VARGRAPHIC
TEXT
Data Replication does not extract LONG VARGRAPHIC data from compressed rows.
REAL
REAL
When replicating a 4-byte floating-point numeric value to a REAL column on the target, the Applier rounds this value and preserves only 8 digits after the decimal point by default. Use the apply.merge.float_precision runtime parameter to change the default precision value.
SMALLINT
SMALLINT
-
TIME
TIME
-
TIMESTAMP
TIMESTAMP
-
VARCHAR(
n
)
VARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
-
VARCHAR FOR BIT DATA
BYTEA
-
VARGRAPHIC(
n
)
VARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
-

0 COMMENTS

We’d like to hear from you!