Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Database Administration » Maintaining Your Database » SQL Anywhere high availability » Setting up database mirroring

 

Determining the initial primary server

When you first set up a database mirroring system and there are no state information files, and the copies of the database and transaction log are identical, both servers are eligible to act as the primary. In this situation, the server names are compared, and server with the lower name acts as primary. For example, the name server1 is lower than server2.

For the initial startup, both servers must be running and connected for them to agree on roles; the presence of an arbiter is not enough since the prior state information recorded in the state information files does not exist.

During a normal startup, the following inputs affect which server becomes the primary server:

  • the contents of the state information files

  • the transaction log position on each database server

  • the designation of a preferred primary server

See also