You must define participants for each server involved in the replicate in the replicate definition using the cdr define replicate command.
Each participant definition includes the following information:
See Table Owner.
See Participant Modifier.
If you use a SELECT * FROM table_name statement, the tables must be identical on all database servers defined for the replicate.
In addition, for a primary-target replication system, you can specify the participant type as either primary or target (receive-only). If you do not specify the participant type, Enterprise Replication defines the participant as update-anywhere, by default. For more information, see Primary-Target Replication System and Participant Type.
For example, in the following participant definition, the P indicates that in this replicate, hawaii is a primary server:
"P db1@g_hawaii:informix.mfct" "select * from mfct" \
If any data in the selected columns changes, that changed data is sent to the secondary servers.
In the following example, the R indicates that in this replicate, maui is a secondary server:
"R db2@g_maui:informix.mfct" "select * from mfct"
The specified table and columns receive information sent from the primary server. Changes to those columns on maui are not replicated.
If you do not specify the participant type, Enterprise Replication defines the participant as update-anywhere by default. For example:
"db1@g_hawaii:informix.mfct" "select * from mfct" \ "db2@g_maui:informix.mfct" "select * from mfct"
For more information, see Participant.
When you define replicates on inherited table hierarchies, use the following guidelines to replicate operations: