VERITAS Storage Foundation 4.1 Oracle Administrator's Guide

Appendix A, VERITAS Storage Foundation for Oracle Command Line Interface
Prerelease 8 September 2005, 8:55am Examples of Using the Command Line Interface
471
Options
To create a snapplan and set the default values
Use the dbed_vmchecksnap command as follows:
$ dbed_vmchecksnap -S PROD -H $ORACLE_HOME -f snapplan \
-o setdefaults -t host2
Snapplan-snapplan for PROD
===============================
PRIMARY_HOST=host1
SECONDARY_HOST=host2
PRIMARY_DG=PRODdg
SNAPSHOT_DG=SNAP_PRODdg
ORACLE_SID=PROD
ORACLE_HOME=/local/oracle/links
ARCHIVELOG_DEST=/prod_ar
SNAPSHOT_ARCHIVE_LOG=yes
SNAPSHOT_MODE=online
SNAPSHOT_PLAN_FOR=database
TABLESPACES=""
TABLES=""
SNAPSHOT_ORACLE_HOME=no
-S Specifies the ORACLE_SID, which is the name of the Oracle database, for
which a snapshot image will be created.
-H Specifies the Oracle home directory that corresponds to the ORACLE_SID.
-f snapplan Indicates the name of the snapplan that you are creating.
-o setdefaults Creates a default snapplan. This option can be used with the -o validate
option to validate that the configuration is correct.
-o validate Validates each parameter in the snapplan and checks whether the snapshot
volumes have been configured correctly for creating snapshots.
-t Specifies the name of the host to which the snapshot image will be deported.
-n Disables the VxDBA repository refresh. The repository is refreshed by default
unless you use the -n option.
-h Displays help information for the dbed_vmchecksnap command.
-F Forces the command to re-validate the snapplan. You must use the -F option if
you have made structural changes to the database.