Setting the controller (setascontroller) v7

The setascontroller command designates a publication database as the controller database. The publication database can 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 information on setting the controller database.

Parameters

pubdbid

The publication database ID of the publication database to designate as the controller database.

pubsvrfile

The file containing the publication server login information.

Examples

This 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.