Understanding Replication Agent states

Replication Agent can be in any of the following states:

The default start-up state is Admin. The Replication Agent instance goes to Admin state automatically when no start-up state is specified.

The state of a Replication Agent instance can be changed by either:

From the moment a state-changing event occurs until the Replication Agent instance is actually in the new state, the instance is said to be “in transition.” During state transition, some administrative commands are ignored.

Admin state

A Replication Agent instance goes to Admin state when:

In Admin state, the Replication Agent instance is running, but it has no connection established to the primary Replication Server (or RSSD, if so configured) or the primary database.

You can perform most administrative tasks while the Replication Agent instance is in Admin state, including changing the value of any Replication Agent configuration parameter.

NoteIn Admin state, the instance can open a connection to the primary database, if necessary, to process a command that requests results from the primary database.

Replicating state

A Replication Agent instance goes to Replicating state when:

NoteThe Replication Agent instance goes to the Replicating state only if a connection for the primary database has been created in the primary Replication Server. For more information on creating the primary database connection in Replication Server, see the Replication Agent Primary Database Guide.

In Replicating state, the Replication Agent instance maintains a connection to the primary database and to the primary Replication Server (and RSSD, if so configured), and its Log Reader component scans the transaction log for transactions to replicate.

If the Replication Agent instance has finished processing all of the records in the transaction log, its state continues to appear as Replicating. When the Replication Agent instance reaches the end of the log:

Replicating (Resynchronization) state

Replication Agent goes into the Replicating (Resynchronization) state after the resume resync command is invoked and completes successfully. This state indicates the Replication Agent is resynchronizing the primary and replicate databases. When Replication Agent has completed resynchronizing the primary and replicate databases, it returns to the Replicating state. For information on resynchronization, see the Replication Server Heterogeneous Replication Guide and the Replication Server Administration Guide. For information on the resume command, see the Replication Agent Reference Manual.

Replication Down state

A Replication Agent instance goes to the Replication Down state when:

When Replication Agent drops a connection, before it goes to Replication Down state, it first attempts to re-establish the connection using the values recorded in its configuration parameters for that connection. If it cannot reconnect, the Replication Agent instance goes to Replication Down state.

After the error has been resolved, Replication Agent may return to the Replicating state.

NoteReplication Agent behavior in the Replication Down state is the same as behavior in the Admin state, the only difference between the two states being that the Replication Down state is reached through a Replication Agent error.