Setting the Controller (setascontroller) v6.2

The setascontroller command sets a publication database to be designated as the controller database. The publication database may be the primary database of a single-master replication system or a primary node of a multi-master replication system.

Synopsis

-setascontroller pubdbid
  –repsvrfile pubsvrfile

See Switching the Controller Database for additional information on setting the controller database.

Parameters

pubdbid

The publication database ID of the publication database to be designated as the controller database.

pubsvrfile

The file containing the publication server login information.

Examples

The following example sets the publication database with publication database ID 4 as the controller database.

$ java -jar edb-repcli.jar -setascontroller 4 -repsvrfile ~/pubsvrfile.prop
Updating the Publication database to be promoted as the new Controller database...
The Publication database has been successfully promoted as the new Controller database.