Creating, resynchronizing, or reverse resynchronizing a snapshot database using dbed_vmsnap

You can use the dbed_vmsnap command to create a snapshot image of a database. The snapshot can be used locally or on another host that is physically attached to the shared storage. You can also resynchronize the snapshot image back to the primary database.

Before creating, resynchronizing, or reverse resynchronizing a snapshot database, review the following information:

Prerequisites

  • You must be logged in as the Oracle database administrator.

  • You must create and validate a snapplan using dbed_vmchecksnap before you can create a snapshot image with dbed_vmsnap.

Usage notes

  • In an Oracle RAC environment, the dbed_vmsnap command can only be used on any CVM node.

  • If possible, do not share volumes between Oracle database files and other software.

  • When creating a snapshot volume, create the snapshot on a separate controller and on separate disks from the primary volume.

  • Make sure your archive log destination is separate from your Oracle database volumes.

  • Do not place any datafiles, including control files, in the $ORACLE_HOME/dbs directory.

  • Resynchronization speed varies based on the amount of data changed in both the primary and secondary volumes when the mirror is broken off.

  • See the dbed_vmsnap(1M) manual page for more information.

Options for the dbed_vmsnap command are:

Table: dbed_vmsnap command options

Option

Description

-S ORACLE_SID

Specifies the ORACLE_SID, which is the name of the Oracle database instance, for which a snapshot image will be created.

For Oracle RAC, specifies the ORACLE_SID, which is the name of the Oracle database instance on any CVM node.

-f SNAPPLAN

Specifies the name of the snapplan you are using.

-o snapshot [-F] | resync

Specifies whether to create a snapshot or synchronize the snapshot image with the current database image. The -F option prepares the volumes for being snapshot and forces snapshot creation.

-o reverse_resync_begin

Begins reverse resynchronization.

Not supported for Oracle RAC.

-o reverse_resync_commit

Commits the reverse resynchronization changes after you have verified that they are acceptable.

Not supportedfor Oracle RAC.

-o reverse_resync_abort

Aborts reverse resynchronization and mounts the original volumes back with the file systems that are configured to use the volume.

Not supported for Oracle RAC.

To create a snapshot image on the primary host (single instance Oracle)

To resynchronize a snapshot to your database

To resynchronize your database to a snapshot

To abort resynchronizing your database to a snapshot

To commit reverse resynchronization changes