VERITAS Storage Foundation 4.1 Oracle Administrator's Guide

Examples of Using the Command Line Interface Prerelease 8 September 2005, 8:55am
466 VERITAS Storage Foundation for Oracle Administrator’s Guide
â–¼ To clone a database automatically
In a single-host configuration:
To create a clone of the primary database on the same host as the primary database, use the
dbed_vmclonedb command as follows:
$ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \
-o recoverdb,new_SID=NEWPROD -f snap1 -r /clone
dbed_vmclonedb started at 2004-04-02 14:42:10
Mounting /clone/prod_db on
/dev/vx/dsk/SNAP_PRODdg/SNAP_prod_db.
Mounting /clone/prod_ar on
/dev/vx/dsk/SNAP_PRODdg/SNAP_prod_ar.
All redo-log files found.
Database NEWPROD (SID=NEWPROD) is running.
dbed_vmclonedb ended at 2003-04-02 14:43:05
In a two-host configuration:
To create a clone of the primary database on a secondary host, use the dbed_vmclonedb
command as follows:
$ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \
-o recoverdb,new_SID=NEWPROD,vxdbavol=SNAP_arch -f snap2
dbed_vmclonedb started at 2004-04-09 23:03:40
Mounting /clone/arch on /dev/vx/dsk/SNAP_PRODdg/SNAP_arch.
Mounting /clone/prod_db on
/dev/vx/dsk/SNAP_PRODdg/SNAP_prod_db.
All redo-log files found.
Database NEWPROD (SID=NEWPROD) is running.
dbed_vmclonedb ended at 2004-04-09 23:04:50
-r relocate_path Specifies the initial mount point for the snapshot
image.
If you are creating a clone in a single-host
configuration, -r is required. Otherwise, it is an
optional argument.
If -r relocate_path is used when cloning a
database, it will also be required for running -o
update_status and -o umount.
Note Do not use -r relocate_path if the
SNAPSHOT_MODE parameter is set to instant
or offline.