switch active

Changes the active database in a warm standby application.

Syntax

switch active
 for logical_ds.logical_db
to data_server.database
[with suspension]

Parameters

Examples

Usage

  • switch active is a part of the procedure for switching to the standby database in a warm standby application. See the Replication Server Administration Guide Volume 2 for the complete procedure.

  • switch active returns immediately, but the switch is not complete until admin logical_status displays “None” in the State of Operation in Progress.

  • Use admin logical_status to monitor the status of the switch active process.

  • If you use the with suspension option, you must manually resume the DSI connection to the new active database after the switch is complete.

  • After entering switch active, you can attempt to cancel it using abort switch.

Permissions

switch active requires “sa” permission.

Related reference
abort switch
admin logical_status
create logical connection
wait for switch