VERITAS Storage Foundation 4.1 Oracle Administrator's Guide
Chapter 10, Using Database FlashSnap for Backup and Off-Host Processing
Prerelease 8 September 2005, 8:55am Creating a Snapplan (dbed_vmchecksnap)
223
▼
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.
For information on creating a snapplan using the GUI, see “Using the VERITAS Storage
Foundation for Oracle Graphical User Interface” on page 265.
Example
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=4.0
PRIMARY_HOST=host1
SECONDARY_HOST=host1
PRIMARY_DG=PRODdg
SNAPSHOT_DG=SNAP_PRODdg
ORACLE_SID=PROD
ARCHIVELOG_DEST=/prod_ar
SNAPSHOT_ARCHIVE_LOG=yes
SNAPSHOT_MODE=online
SNAPSHOT_PLAN_FOR=database
SNAPSHOT_PLEX_TAG=dbed_flashsnapSNAPSHOT_VOL_PREFIX=SNAP_
ALLOW_REVERSE_RESYNC=no
SNAPSHOT_MIRROR=1
Example
In the following 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.