Materializing the standby database in ASE 12.5.1 or later

Materializing the standby database is one of the tasks required to set up the Mirror Activator system. Therefore, the following Mirror Activator system setup tasks (which are not strictly materialization tasks) must be performed during the standby database materialization procedure:

The snapshot materialization procedure mentions these setup tasks, but it does not describe them in detail. See “Setting up a new Mirror Activator system” for detailed information about Mirror Activator system setup tasks.

NoteBefore you materialize a standby database, you must create the Replication Server database objects in the primary database, and then initialize the primary database using the Mirror Replication Agent pdb_init command. See “Setting up a new Mirror Activator system” for more information.

Table A-3 provides a checklist of the snapshot materialization tasks for a standby database in Adaptive Server version 12.5.1 or later.

The checklist in Table A-3 assumes that the standby Adaptive Server is already installed, and configured identically to the primary Adaptive Server.

Table A-3: Materializing a standby database in ASE 12.5.1 or later

Task

Description

1

In the standby Adaptive Server, create the same server logins and roles that are defined in the primary Adaptive Server.

2

Quiesce the primary database to suspend update activity and generate a manifest file for the primary database.

3

Use the disk replication system to copy a snapshot of all primary database data and log devices to the standby site, on devices accessible to the standby Adaptive Server.

While the primary database is suspended during Mirror Activator system setup, you must also:

  • Copy a snapshot of the primary database log devices to the mirror log devices, and configure synchronous replication from the primary log devices to the mirror log devices

  • Initialize the Mirror Replication Agent

4

Resume update activity in the primary database after all procedures in step 3 are complete.

5

In the standby Adaptive Server, mount the standby database devices (created in step 3) and bring the standby database online.

Use the following procedure for snapshot materialization of a standby database in Adaptive Server version 12.5.1 or later.

StepsTo materialize a standby database in ASE 12.5.1 or later

  1. In the standby Adaptive Server, create all server logins and roles defined in the primary Adaptive Server.

  2. Quiesce the primary database to suspend all update activity, and generate a manifest file for the primary database.

    Log in to the primary Adaptive Server with a System Administrator user role, and execute the following command:

    quiesce database MA_setup hold pdb 
    for external dump to pdb_manifest
    

    where:

    The standby Adaptive Server uses the manifest file to mount the devices created by the disk replication system in the following step.

  3. Using the disk replication system facilities:

    The standby devices must be accessible to the standby Adaptive Server, for use as database devices.

    While the primary database is suspended during Mirror Activator system setup, you must also:

    Refer to the documentation provided by your disk replication system vendor for more information about the procedures in this step.

  4. Resume update activity in the primary database after all procedures in step 3 are complete.

    NoteYou must initialize the Mirror Replication Agent before you resume update activity in the primary database.

    Log in to the primary Adaptive Server with a System Administrator user role, and execute the following command:

    quiesce database MA_setup release
    

    where MA_setup is a user-defined tag that identifies the suspended primary database.

  5. Mount the standby devices in the standby Adaptive Server to recover the standby database, and then bring it online.

    1. Log in to the standby Adaptive Server with a System Administrator user role, and execute the following command:

      mount database all from pdb_manifest
      with listonly
      

      where pdb_manifest is the manifest file created by the quiesce command at the primary database.

      The mount command with listonly option returns the device paths specified at the primary Adaptive Server for all primary database data and log devices.

      If necessary, invoke the mount command to “re-map” the device paths to the standby devices in the standby Adaptive Server. For example:

      mount database all from pdb_manifest 
      using "sdb_path" = "pdb_data"
      

      where:

      • pdb_manifest is the manifest file created by the quiesce command at the primary database.

      • sdb_path is the path to the standby database data device.

      • pdb_data is the device name of the primary database data device specified in the primary Adaptive Server.

      When you invoke mount, Adaptive Server performs all of the required supporting activities, including adding database devices and activating them, creating the catalog entries for the new database, and recovering the database.

    2. After the standby Adaptive Server completes the mount processing, use the following command to bring the standby database online:

      online database sdb
      

      where sdb is the name of the standby database.

    The names of the standby database and primary database must be the same.