When terminating a Replication Agent on the target database:
DSRUTIL -C terminate agent
- DSRUTIL tells the replication Agent to shutdown by placing a message on the target’s pica queue.
- The Agent periodically checks the pica queue messages.
- The Agent checks the queue for this message every second iteration of checking for a network message (AI blocks) from the replication server.
- The replication Agent gets the terminate message and stops processing, ensures logins are enabled for the target, disconnects from the target database, and exits.