Skip to main content
Common Reference

trepctl offline

The trepctl offline command puts the replicator into the OFFLINE state, stopping replication.

Usage
trepctl [ common-options ] offline [ options ]

Where:

OptionDescriptionVersion
-immediateGo offline immediately.

To put the replicator offline:

shell> trepctl offline
For Clustering Users

When running a Tungsten Cluster, placing the replicator into the OFFLINE state will only persist if you set the cluster to MAINTENANCE first, otherwise the cluster will automatically return the replicator to the ONLINE state

While offline:

  • Transactions are not extracted from the source dataserver.
  • Transactions are not applied to the destination dataserver.

Certain operations on the replicator, including updates to the operating system and dataserver should be performed while in the offline state.

By default, the replicator goes offline in deferred mode, allowing the current transactions being read from the binary log, or applied to the dataserver to complete, the sequence number table in the database is updated, and the replicator is placed offline, stopping replication.

To stop replication immediately, within the middle of an executing transaction, use the -immediate option:

shell> trepctl offline -immediate