Mirror Replication Agent states

A Mirror Replication Agent instance can be in one of two discrete states:

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

From the time a state-changing event occurs until the moment the Mirror Replication Agent instance is actually in the new state, the instance is in state transition. During state transition, some Mirror Replication Agent commands (such as shutdown) are ignored.

Admin state

A Mirror Replication Agent instance goes to Admin state when:

In Admin state, the Mirror Replication Agent instance is running, but it has no connection established to the Replication Server or the primary database.

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

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

A Mirror Replication Agent instance may go to Admin state from Replicating state when a network failure or communication error causes its connection to the Replication Server to be dropped.

When Mirror Replication Agent drops a connection, before it goes to Admin state, it attempts to re-establish the connection using the values recorded in its configuration parameters for that connection. If its connection to the Replication Server cannot be restored, the Mirror Replication Agent instance goes to Admin state.

To go from Admin state to Replicating state, use the Mirror Replication Agent resume command. See “Starting replication in the Mirror Replication Agent” for more information.

Replicating state

In Replicating state, the Mirror Replication Agent instance maintains a connection to the Replication Server, and its Log Reader component scans the the mirror log devices for transactions to replicate.

Normally, when the Mirror Replication Agent instance is in Replicating state, it maintains a connection to the primary database to reserve the logscan context and update the secondary truncation point. If it drops the primary database connection (for example, because the primary database goes offline), Mirror Replication Agent logs the event and continues its normal replication processing.

NoteThere may be no replication throughput (that is, reading transactions from the log and sending LTL commands to the Replication Server) when the Mirror Replication Agent instance is in Replicating state. In that event, the Mirror Replication Agent state may appear as Replicating (Waiting at end of log).

To go from Replicating state to Admin state, you can use either the quiesce or suspend command. See “Stopping replication in the Mirror Replication Agent” for more information.