Sequences and Identity Columns
-
Sequences are supported on source and target tables for unidirectional, bidirectional, and multi- directional implementations.
-
Identity columns created using the
GENERATED BY DEFAULT AS IDENTITYclause are supported on source and target tables, for unidirectional, bidirectional, and multi- directional implementations. -
Identity columns created using the
GENERATED ALWAYS AS IDENTITYclause are not supported in target database tables and the Identity property should be removed from target tables or changed toGENERATED BY DEFAULT AS IDENTITY. -
For bidirectional and multi-directional implementations, define the Identity columns and sequences with an
INCREMENT BYvalue equal to the number of servers in the configuration, with a differentMINVALUEfor each one.For example,
MINVALUE/INCREMENT BYvalues for a bidirectional, two-database configuration would be as follows:Database1, set the
MINVALUEat 1 with anINCREMENT BYof 2.Database2, set the
MINVALUEat 2 with anINCREMENT BYof 2.For example,
MINVALUE/INCREMENT BYvalues for a multi-directional, three-database configuration would be as follows:Database1, set the
MINVALUEat 1 with anINCREMENT BYof 3.Database2, set the
MINVALUEat 2 with anINCREMENT BYof 3.Database3, set the
MINVALUEat 3 with anINCREMENT BY of 3.