Schema changes
TwinCommit detects schema changes on replicated tables; it does not propagate them automatically. When a table’s definition changes in a way the log cannot describe, TwinCommit marks that one table as broken and keeps replicating every other table.
Operations that mark a table broken
Section titled “Operations that mark a table broken”ALTER TABLEthat adds, drops or alters columns- Bulk loads that are not logged (for example Db2
LOAD, orNOT LOGGED INITIALLY) - Turning off change capture on the table (
DATA CAPTURE NONEon Db2, dropping supplemental logging on Oracle) DROP TABLE
Operations that need no action
Section titled “Operations that need no action”TRUNCATE, which is replicated as a truncate on the target- Index changes, statistics collection and
REORG - Adding or dropping constraints that do not change columns
Applying a column change
Section titled “Applying a column change”- Stop
twincommit run. - Change the target table to match, or drop it and let
twincommit ddl -applyrecreate it. - Re-snapshot the table:
Terminal window twincommit snapshot -config pipeline.yaml -tables SALES.ORDERS - Start
twincommit runagain.