Update the software of the database servers in a mirroring system by stopping each server, installing the software, and then restarting the database on the new server.
Prerequisites
You must have the BACKUP DATABASE system privilege. You must be the owner of the database, or have the VALIDATE ANY OBJECT system privilege.
By default, you must have the SERVER OPERATOR system privilege to stop network database servers.
Context and remarks
Because you can stop servers in the system one at a time, the mirroring system can continue to run during a Support Package update of the server software. A failover from the primary server to the mirror server occurs at least once during the update process. Connections to the primary and mirror server drop during any failover.
Test the following steps in non-production environment with your applications before performing the steps in a production environment.
Make a backup of the primary database, copy the backup, and validate the copy of the backup.
For example, run the following command to back up a database named mydb.db:
dbbackup -c "DBN=mydb;ENG=myserver;UID=DBA;PWD=sql" backup-dir |
Create a copy of the backup:
xcopy backup-dir\*.db validatebackup-dir\backupmydb.db |
Validate the backup copy:
dbvalid -c "DBF=validatebackup-dir\backupmydb.db;UID=DBA;PWD=sql" |
If the copy of the backup does not validate, then fix the problems that cause the validation to fail before proceeding. Otherwise, you risk losing data.
If the mirroring system is part of a read-only scale-out system, then for each copy node:
Stop the copy node server.
Install the software.
Start the copy node.
Stop the mirror server.
Install the software on the mirror server.
Start the mirror server and ensure that it is in a synchronized state.
Stop the arbiter server.
Install the software on the arbiter.
Start the arbiter server.
Initiate a fail over by connecting to the primary database and executing the following statement:
ALTER DATABASE SET PARTNER FAILOVER; |
Connections to the primary and mirror drop during the failover. The current primary becomes the mirror.
Stop the mirror server.
Install the software on the mirror server.
Start the mirror server and ensure that it is synchronized.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |