4.2.1. Stopping/Starting Tungsten Replicator

Warning

Stopping, or taking offline, a running replicator temporarily stops and restarts replication. Either set MAINTENANCE mode within cctrl (see Section 6.16, “Performing Database or OS Maintenance” or shun the datasource before stopping the replicator if you need to ensure it does not restart (Section 6.3.7.1, “Shunning a Datasource”.

Warning

Before stopping a replicator it is good practice to take it offline cleanly first. Doing so will ensure a clean stop of any replication in flight and ensure replication positions are correctly recorded.

If Parallel Apply is in use, this is essential, see Section 4.1.4, “Parallel Replication and Offline Operation” for more information

To shutdown a running Tungsten Replicator you must switch off the replicator:

shell> trepctl -all-services offline
shell> replicator stop
Stopping Tungsten Replicator Service...
Stopped Tungsten Replicator Service.

To start the Tungsten Replicator service if it is not already running:

shell> replicator start
Starting Tungsten Replicator Service...

To restart the Tungsten Replicator service if it is running:

shell> trepctl -all-services offline
shell> replicator restart
Stopping Tungsten Replicator Service...
Stopped Tungsten Replicator Service.
Starting Tungsten Replicator Service...

To start the Tungsten Replicator service if it is not already running, but ensure replication is offline:

shell> replicator start offline
Starting Tungsten Replicator Service...