Veritas Storage Foundation for Oracle 5.0 Administrator's Guide, HP-UX 11i v3, Second Edition, December 2008
■ SNAPPLAN is the name of the snapplan file.
■ ORACLE_HOME is the ORACLE_HOME setting for the ORACLE_SID
database.
■ relocate_path is the name of the initial mount point for the snapshot
image.
Note: When cloning a database on a secondary host, ensure that PRIMARY_HOST
and SECONDARY_HOST parameters in the snapplan file are different.
When the -o recoverdb option is used with dbed_vmclonedb, the clone database
is recovered automatically using all available archive logs. If the -o recoverdb
option is not used, you can perform point-in-time recovery manually.
In the following example, a clone of the primary database is automatically created
on the same host as the primary database.
$ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \
-o recoverdb,new_sid=NEWPROD,server_name=orasvr -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 2004-04-02 14:43:05
In the following example, a clone of the primary database is automatically created
on a secondary host.
$ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \
-o recoverdb,new_sid=NEWPROD,server_name=orasvr -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
Shutting down the clone database and unmounting file systems
When you are done using the clone database, you can shut it down and unmount
all snapshot file systems with the dbed_vmclonedb -o umount command.
Using Database FlashSnap for backup and off-host processing
Cloning a database (dbed_vmclonedb)
272