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

Oracle Source and Microsoft SQL Server Target

Oracle Source and Microsoft SQL Server Target

The following table identifies the recommended datatype mappings for Data Replication configurations with an Oracle source and a Microsoft SQL Server target:
Oracle Source Datatype
Microsoft SQL Server Target Datatype
Comments
BINARY_DOUBLE
FLOAT
-
BINARY_FLOAT
FLOAT
-
BLOB
IMAGE
If the global.lob_truncation_size runtime parameter is set to 64000 bytes or less, InitialSync handles BLOB data as RAW data to improve performance.
Oracle piecewise operations are supported only for inline LOBs.
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.
CHAR(
n
)
CHAR(
n
)
-
CLOB
TEXT
Oracle piecewise operations are supported only for inline LOBs.
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
DATETIME2(0)
-
FLOAT
NUMERIC(38,15)
-
LONG
TEXT
Oracle piecewise operations are supported only for inline LOBs.
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.
LONG RAW
IMAGE
Oracle piecewise operations are supported only for inline LOBs.
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.
NCHAR(
n
)
NCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
-
NCLOB
NTEXT
Oracle piecewise operations are supported only for inline LOBs.
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.
NUMBER(
p
,
s
)
  • FLOAT
    Mapping condition:
    p
    == -1 and
    s
    == -1
  • NUMERIC(38, 0)
    Mapping condition:
    p
    == -1 and
    s
    == 0
  • SMALLINT
    Mapping condition:
    p
    <= 4 and
    s
    == 0
  • INT
    Mapping condition:
    p
    <= 9 and
    s
    == 0
  • BIGINT
    Mapping condition:
    p
    <= 18 and
    s
    == 0
  • NUMERIC(
    p
    ,
    s
    )
    Mapping condition:
    p
    > 18 and
    s
    == 0
  • NUMERIC(
    p
    ,
    s
    )
    Mapping condition:
    p
    != 0 and
    s
    != 0
-
NVARCHAR(
n
)
NVARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
-
NVARCHAR2(
n
)
  • NVARCHAR(MAX)
    Mapping condition:
    n
    > 4000
  • NVARCHAR(
    n'
    )
    n'
    = (
    n
    +
    SrcMinCharsetSize
    - 1) /
    SrcMinCharsetSize
-
RAW(
n
)
  • VARBINARY(MAX)
    Mapping condition:
    n
    > 2000
  • VARBINARY(
    n
    )
Oracle piecewise operations are supported only for inline LOBs.
TIMESTAMP(0)
DATETIME2(0)
-
TIMESTAMP(1)
DATETIME2(1)
-
TIMESTAMP(2)
DATETIME2(2)
-
TIMESTAMP(3)
DATETIME2(3)
-
TIMESTAMP(4)
DATETIME2(4)
-
TIMESTAMP(5)
DATETIME2(5)
-
TIMESTAMP(6)
DATETIME2(6)
-
TIMESTAMP(7)
DATETIME2(7)
-
TIMESTAMP(8)
DATETIME2(7)
-
TIMESTAMP(9)
DATETIME2(7)
-
VARCHAR(
n
)
VARCHAR(
n
)
-
VARCHAR2(
n
)
  • VARCHAR(MAX)
    Mapping condition:
    n
    > 4000
  • VARCHAR(
    n
    )
Oracle piecewise operations are supported only for inline LOBs.
XMLTYPE
XML
-

0 COMMENTS

We’d like to hear from you!