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.
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 perform the following steps for each database server in the mirroring system (primary, mirror, and arbiter servers):
Issue a dbstop command to stop the database server.
Install the EBF.
Restart the database server.
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.
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.
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.
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|