switch active

Description

Changes the active database in a warm standby application.

Syntax

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

Parameters

logical_ds

The logical data server name for the logical connection.

logical_db

The logical database name for the logical connection.

data_server

The data server name of the new active database for the logical connection.

database

The database name of the new active database for the logical connection.

with suspension

Suspends the DSI connection to the new active database after the switch is complete.

Examples

Example 1

This command starts the switch active process:

switch active for LDS.pubs2 to OSAKA.pubs2
Switch of the active for this logical database is in progress.

Usage

Permissions

switch active requires “sa” permission.

See also

abort switch, admin logical_status, create logical connection, wait for switch