Transaction log objects for each marked table  Marked table triggers

Chapter 2: Replication Agent for Informix

Reserved names

There are two type of reserved names in the Replication Agent transaction log:

Shadow table column names

When a primary table is marked for replication, Replication Agent creates a shadow table to record the replicated operations. The shadow table has all the columns of the primary table, plus four columns that the Replication Agent creates for its use:

NoteThese column names are fixed, not generated; therefore, the “ra_” portion of the column name does not change when the value of the pdb_xlog_prefix parameter changes.

If a primary table has a column with the same name as one of the Replication Agent shadow table columns, the table marking procedure fails. Replication Agent flags the offending column in the table-marking script and the pdb_setreptable command returns an error.

In this event, you must change the name of the conflicting column in the primary table. After you change the name of the conflicting column, you can modify the table-marking script and run it manually to mark the primary table.

NoteIf you want to use the primary table’s original column name in the replicate table, you can create a function string in the replicate Replication Server to map the new column name in the primary table to the original column name in the replicate table.

Global variables

The following global variables are used in Replication Agent transaction log stored procedures:

NoteThese variable names are fixed, not generated; therefore, the “ra_” portion of the variable name does not change when the value of the pdb_xlog_prefix parameter changes.

You cannot use these names as column names in a primary table or as global variables in a primary stored procedure in the primary database.





Copyright © 2005. Sybase Inc. All rights reserved. Marked table triggers

View this book as PDF