sync ru

Synchronizes data of the specified replication unit on all shards, erases RAFT logs, and resets log index and term.

Syntax

sync[hronize] ru -ru ru_id [-database db]

Options

Table 2-118 GDSCTL sync ru Options

Option Description
-connect connect_identifier

Specify an Oracle Net connect descriptor or net service name that resolves to a connect descriptor for the database being added as the shard.

-pwd password

Enter the GSMUSER password. If not specified, the user is prompted for the password.

Usage Notes

If a database is not specified for the SYNC RU command, a replica to synchronize with will be chosen based on the following criteria:
  1. Pick the replica that was the the last leader.
  2. If not available, pick the replica with greatest apply index.

Examples

GDSCTL> sync ru -ru 1 -database mydb1