Veritas Storage Foundation 5.0 for Oracle RAC Configuration Guide Extracts for HP Serviceguard Storage Management Suite, Second Edition, May 2008

Using FlashSnap for Backup and Recovery
Cloning a Database (dbed_vmclonedb)
Chapter 5
109
$ /opt/VRTS/bin/dbed_vmclonedb -o update_status,\
new_sid=new_sid,server_name=server_name -f SNAPPLAN \
[-r relocate_path]
Example: Mounting the file systems without bringing up the clone database
1. In this example, file systems are mounted without bringing up the clone database.
The clone database must be manually created and recovered before it can be used.
This example is for a clone created on the same host as the primary database.
$ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \
-o mountdb,new_sid=NEWPROD,server_name=host1 \
-f snap1 -r /clone
dbed_vmclonedb started at 2006-03-02 15:34:41
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.
Altering instance_name parameter in initpune.ora.
Altering instance_number paramter in initpune.ora.
Altering thread paramter in initpune.ora.
Starting automatic database recovery.
Database NEWPROD (SID=NEWPROD) is in recovery mode.
If the database NEWPROD is recovered manually, you must run
dbed_vmclonedb -o update_status to change the snapshot status.
dbed_vmclonedb ended at 2006-03-02 15:34:59
2. The database is recovered manually using dbinitdb command.
3. The database status (database_recovered) needs to be updated for a clone database
on the primary host after manual recovery has been completed.
$ /opt/VRTS/bin/dbed_vmclonedb -o update_status,\
new_sid=NEWPROD,server_name=host1 \
-f snap1 -r /clone
dbed_vmclonedb started at 2006-03-02 15:35:16
The snapshot status has been updated.
dbed_vmclonedb ended at 2006-03-02 15:35:42
Example: Mounting the file systems without recovering the clone database
1. In this example, file systems are mounted without recovering the clone database.
The clone database must be manually recovered before it can be used. This example
is for a clone created on a secondary host.
$ /opt/VRTS/bin/dbed_vmclonedb -S -g SNAP_PRODdg \
-o mountdb,new_sid=NEWPROD,vxdbavol=SNAP_arch -f snap2