trepctl reset
The trepctl reset command resets an existing replicator service.
trepctl -service <servicename> reset [ options ]
Where:
| Option | Description | Version |
|---|---|---|
-all | Deletes the thl directory, relay logs directory and tungsten database for the service. | |
-db | Deletes the tungsten_<SERVICE_NAME> database for the service. | |
-relay | Deletes the relay directory for the service. | |
-thl | Deletes the thl directory for the service. | |
-y | Indicates that the command should continue without interactive confirmation. |
The trepctl reset command performs the following operations:
- Deleting the local THL and relay directories.
- Removes the Tungsten schema from the dataserver.
- Removes any dynamic properties that have previously been set.
The service name must be specified, using -service
To reset a replication service, the replication service must be OFFLINE:
shell> trepctl offline
If you are running Tungsten Clustering, you will need to ensure the cluster is in MAINTENANCE
before issuing the commands to ensure the replicators stay in an OFFLINE state.
If you are resetting an entire service, issue the reset on the primary node first.
Execute the trepctl reset command:
shell> trepctl -service alpha reset
Do you really want to delete replication service alpha completely? [yes/NO]
You will be prompted to confirm the deletion. To ignore the interactive prompt, use the -y option:
shell> <userinput>trepctl -service alpha reset -y</userinput>
Then put the replicator back online again:
shell> trepctl online
You can also reset all or only part of the overall service by including one of the following options:
- Reset all components of the service using the
-alloption. - Reset the THL using the
-thloption. This is equivalent to runningthl purge - Reset the relay log contents using the
-relayoption. - Reset the database using the
-dboption, including emptying the trep_commit_seqno and other control tables.