Veritas Storage Foundation™ for Oracle 5.0.1 Administrator's Guide

To create a snapplan
1
Change directories to the working directory you want to store your snapplan
in.
$ cd /working_directory
2
Create a snapplan with default values using the dbed_vmchecksnap command:
$ /opt/VRTS/bin/dbed_vmchecksnap -S ORACLE_SID \
-H ORACLE_HOME -f SNAPPLAN -o setdefaults -t host_name \
[-p PLEX_TAG]
3
Open the snapplan file in a text editor and modify it as needed.
In this example, a snapplan, snap1, is created for a snapshot image in a single-host
configuration and default values are set. The host is named host1 and the working
directory is /export/snap_dir.
$ cd /export/snap_dir
$ /opt/VRTS/bin/dbed_vmchecksnap -S PROD -H /oracle/product/9i \
-f snap1 -o setdefaults -t host1
Snapplan snap1 for PROD.
=====================================================
SNAPSHOT_VERSION=5.0
PRIMARY_HOST=host1
SECONDARY_HOST=host1
PRIMARY_DG=PRODdg1:PRODdg2
ORACLE_SID=PROD
ARCHIVELOG_DEST=/prod_ar
SNAPSHOT_ARCHIVE_LOG=yes
SNAPSHOT_MODE=online
SNAPSHOT_PLAN_FOR=database
SNAPSHOT_PLEX_TAG=dbed_flashsnap
SNAPSHOT_DG_PREFIX=SNAP_
SNAPSHOT_VOL_PREFIX=SNAP_
ALLOW_REVERSE_RESYNC=no
SNAPSHOT_MIRROR=1
In this example, a snapplan, snap2, is created for a snapshot image in a two-host
configuration, and default values are set. The primary host is host1, the secondary
host is host2, and the working directory is /export/snap_dir.
$ cd /export/snap_dir
Using Database FlashSnap for backup and off-host processing
Creating a snapplan (dbed_vmchecksnap)
258