Replication Server basic primary copy model

The simplest approach Replication Server uses to copy data is to distribute updates from one source (primary) database to one or more destination (replicate) databases. To ensure consistency, a source table is designated as the primary table. All other versions of the table are replicates. In this approach, replicate tables are read-only and used for operations that do not modify the data.

As updates occur at the primary table, Replication Server captures the updates and sends them to replicate data servers. In this model, clients at remote sites can also update primary data, either directly by accessing the primary database over the network or indirectly through replicated stored procedures.

For more information, see “Specifying data for replication”, and Chapter 10, “Managing Replicated Functions.”

If communication between the primary and destination databases fails, operations executed in the primary database are stored in Replication Server stable queues until they can be delivered to replicate sites. Likewise, operations executed remotely are held in stable queues until they can be delivered to the primary database.

This arrangement lets remote client applications take advantage of Replication Server fault tolerance while preserving the basic primary copy model. See “Transaction handling with Replication Server” for more information about stable queues.

Figure 1-2 illustrates Replication Server configurations using the primary copy method of replicating data.

Figure 1-2: Replication Server basic primary copy model

Figure 1-2 illustrates Replication Server configurations using the primary copy method of replicating data. This is a typical replication system, in which a client, a primary Replication Server, and data server are separated across a wan from remote Replication Servers. The Replication Server distributes updates from the primary database to one or more replicate databases. As updates occur at the primary table, Replication Server captures the updates and sends them to the replicate data servers. Clients at remote sites also updates the primary data, either directly by accessing the primary database over the network or indirectly through replicated stored procedure.