LOB and long columns¶
LOB columns are character or binary columns of large or unspecified size: CLOB, BLOB, DBCLOB, TEXT, IMAGE,
SQL Server's varchar(max), nvarchar(max) and varbinary(max), Oracle LONG and LONG RAW, XML.
Mapping. A LOB maps to the destination's LOB type of the same kind, at its maximum size. You can choose a smaller, non-LOB type on the Columns tab; the data is then truncated to the column's length.
Baseline and snapshot runs.
- When both the source and destination columns are LOBs, values are read in pieces, not limited by the destination's length. This turns off multirow fetch for the table (the service logs unbound LONG data disables MultiRow option for replication).
- A value whose size can't be known in advance is held in memory up to the Indeterminable-size column limit (KB) (maxLongFieldData, 1024 KB by default). A larger value fails the replication with Buffer limit of ... bytes reached for LONG source column: increase the limit, or give the destination column a smaller precision so that the value is truncated instead.
- A subscription can have only one Oracle
LONGorLONG RAWdestination column.
Incremental replication.
- LOB values aren't kept in the staging database, except for SQL Server sources. To apply a change to a table with LOB columns, the Replicator Service reads the LOB values from the source table, and applies that table's changes one row at a time.
- The same Indeterminable-size column limit (KB) limits the LOB values held in memory.