To shut down a Replication Agent instance, you must log in to the instance’s administration port and invoke the shutdown command.
The Replication Agent shutdown command allows you to shut down a Replication Agent instance in one of two ways:
normal shutdown – this is the default shutdown method. A normal shutdown first quiesces the Replication Agent instance before shutting down the instance.
immediate – this shuts down and terminates the Replication Agent instance immediately, without first quiescing. To use this option, use the immediate keyword when you invoke the shutdown command.
The shutdown command with no option
(normal shutdown) is ignored if the Replication Agent instance is in transition
from one state to another. You can invoke the shutdown command
with the immediate keyword at any time, when
the Replication Agent instance is in any state.
When a Replication Agent instance is quiesced, it does the following:
Stops reading new entries in the transaction log
Finishes processing any data already in its internal queues
Starts its connection to the primary database if it is down and recycles its connection with the primary Replication Server
Changes its state from Replicating to Admin
In the following procedure, isql is
used as the Open Client application to log in to the administration
port of the Replication Agent instance. You can use any other Open Client
application to access the Replication Agent administration port.
To shut down a Replication Agent instance
Log in to the Replication Agent administration port.
Once you have logged into the Replication Agent administration port, you can invoke the shutdown command:
Use the following command to shut down the Replication Agent instance gracefully:
1> shutdown 2> go
This command first quiesces the Replication Agent instance before shutting it down.
Use the following command to shut down the Replication Agent instance immediately:
1> shutdown immediate 2> go
This command shuts down and terminates the Replication Agent instance immediately, without first quiescing.