When you are using database mirroring, extra steps are required to apply a SQL Anywhere maintenance release or EBF, or upgrade the database file:
All servers in a database mirroring system must use the same maintenance release of SQL Anywhere. If you use the following procedure to apply a SQL Anywhere maintenance release, the only time the database is not available is during steps 3 and 4.
To apply a SQL Anywhere maintenance release to a database mirroring system
Shut down the mirror server by issuing a dbstop command.
Install the new version of SQL Anywhere on the mirror server.
Shut down the primary and arbiter servers by issuing a dbstop command for each server.
Install the new version of SQL Anywhere on the primary server.
Restart the primary and mirror servers.
Install the new version of the software on the arbiter.
Restart the arbiter.
To install an EBF, you must do the following for each database server in the mirroring system (primary, mirror, and arbiter servers):
The only downtime occurs during the failover caused by shutting down the primary server.
There are two procedures you can use to upgrade or rebuild a database that is participating in a database mirroring system. The first process is simpler, but it has a longer database downtime than the second procedure.
To upgrade or rebuild a database in a database mirroring system
Shut down the mirror server.
Shut down the primary server.
Copy the upgraded or rebuilt database and transaction log to the mirror server.
Restart the primary server.
Restart the mirror server.
Any renamed transaction log files should be moved because they are incompatible with the new database. An initial transaction log file is required on both servers for mirroring to start. You can create a transaction log file by executing a dbping command against the database.
To minimize downtime while upgrading or rebuilding a database in a database mirroring system
Make a backup of the database and rename the transaction log.
Shut down both the primary and mirror servers.
Save the current copy of the transaction log on the primary database.
Use the dbtran utility to translate the transaction log saved in Step 4.
This transaction log contains any changes made to the database since the backup in Step 1.
Start the rebuilt database using a local database server.
Apply the translated transaction log using the READ statement from Interactive SQL.
Stop the rebuilt database.
Copy the upgraded or rebuilt database and its transaction log to the primary and mirror servers.
Start the primary server.
Start the mirror server.
|Send feedback about this page via email or DocCommentXchange||Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0|