You can use the dbed_vmsnap command to create a snapshot image of a database. The snapshot can be used locally or on another host that is physically attached to the shared storage. You can also resynchronize the snapshot image back to the primary database.
Before creating, resynchronizing, or reverse resynchronizing a snapshot database, review the following information:
Options for the dbed_vmsnap command are:
Table: dbed_vmsnap command options
To create a snapshot image on the primary host (single instance Oracle)
Use the dbed_vmsnap command as follows:
$ /opt/VRTS/bin/dbed_vmsnap -S PROD -f snap1 -o snapshot
dbed_vmsnap started at 2005-04-02 14:15:27 The database is running in archivelog mode. A snapshot of ORACLE_SID PROD is in DG SNAP_PRODdg. Snapplan snap1 is used for the snapshot. Oracle Database server is orasvr. If -r <relocate_path> is used in dbed_vmclonedb,make sure <relocate_path> is created and owned by Oracle DBA. Otherwise, the following mount points need to be created and owned by Oracle DBA: /prod_db. /prod_ar. dbed_vmsnap ended at 2004-04-02 14:16:11
To resynchronize your database to a snapshot
Assuming the mount point for the primary database was created and owned by the Oracle DBA user before mounting the VxFS file system, use the dbed_vmsnapcommand as follows:
$ dbed_vmsnap -S FLAS10r1 -f snaptst \ -o reverse_resync_begin
dbed_vmsnap started at 2009-07-30 14:06:38 SFORA dbed_vmsnap WARNING V-81-5725 After reverse_resync_commit is performed, you need to recreate the Authentication Password File using the ORAPWD utility.
Database FLAS10r1 (SID=FLAS10r1) is running. The option reverse_resync_begin has been completed. dbed_vmsnap ended at 2009-07-30 14:12:22dbed_vmsnap started at 2009-03-30 03:06:22
Mounting a storage checkpoint carried over from the volume snapshots is allowed only in a two-host configuration without the use of relocate path.
Storage checkpoints carried over from volume snapshots can be mounted before the clone database gets created (dbed_vmclonedb -o mount). Once the clone database is created (dbed_vmclonedb -o recoverdb), the checkpoints are no longer accessible since they are removed.
To abort resynchronizing your database to a snapshot
Use the dbed_vmsnap command as follows:
$ /opt/VRTS/bin/dbed_vmsnap -S PROD -f snap1 -o \ reverse_resync_abort
dbed_vmsnap started at 2004-04-02 16:16:44
The option reverse_resync_abort has been completed.
dbed_vmsnap ended at 2004-04-02 16:16:51
This option is only allowed when reverse_resync_begin has been run. It is not allowed if reverse_resync_commit has been executed.
To commit reverse resynchronization changes
Use the dbed_vmsnap command as follows:
$ /opt/VRTS/bin/dbed_vmsnap -S FLAS10r1 -f snaptst \ -o reverse_resync_commit
dbed_vmsnap started at 2009-07-30 14:14:47 Oracle instance FLAS10r1 successfully started. The database is not running in archivelog mode. SFORA dbed_vmsnap WARNING V-81-5725 After reverse_resync_commit is performed, you need to recreate the Authentication Password File using the ORAPWD utility.
The option reverse_resync_commit has been completed. dbed_vmsnap ended at 2009-07-30 14:20:07
This option is only allowed after reverse_resync_begin has been run.