![]() |
< Previous | Next > |
Product: Storage Foundation for Databases Guides | |
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide |
Creating or Shutting Down a Clone Database Using dbed_vmclonedbYou can use the VERITAS Storage Foundation for Oracle dbed_vmclonedb command to create or shutdown a clone database on either the primary or secondary host using snapshot volumes from the primary host.
Options
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 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 In a single-host configuration: To mount file systems and create a clone of the primary database on the same host as the primary database without recovering the clone database, use the dbed_vmclonedb command as follows. The clone database must be manually recovered before it can be used: $ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \ -o mountdb,new_SID=NEWPROD -f snap1 -r /clone dbed_vmclonedb started at 2003-04-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. 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 2004-04-02 15:34:59 Recover the database manually. Update the snapshot status (database_recovered) for the clone database on the primary host after manual recovery has been completed: $ /opt/VRTS/bin/dbed_vmclonedb -o update_status,new_sid=NEWPROD -f snap1 -r /clone dbed_vmclonedb started at 2004-04-02 15:19:16 The snapshot status has been updated. dbed_vmclonedb ended at 2004-04-02 15:19:42 To mount file systems and create a clone of the primary database on a secondary host without recovering the clone database, use the dbed_vmclonedb command as follows. The clone database must be manually recovered before it can be used: $ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \ -o mountdb,new_sid=NEWPROD,vxdbavol=SNAP_arch -f snap2 dbed_vmclonedb started at 2003-04-09 23:26:50 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 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 2004-04-02 15:34:59 Recover the database manually. Update the snapshot status (database_recovered) for the clone database on the secondary host after manual recovery has been completed: $ /opt/VRTS/bin/dbed_vmclonedb -o update_status,new_sid=NEWPROD \ -f snap2 dbed_vmclonedb started at 2004-04-06 09:22:27 The snapshot status has been updated. dbed_vmclonedb ended at 2004-04-06 09:22:40
In a single-host configuration: To shut down the clone database and unmount file systems for a clone on the same host as the primary database, use the dbed_vmclonedb command as follows: $ /opt/VRTS/bin/dbed_vmclonedb -o umount,new_sid=NEWPROD \ -f snap1 -r /clone dbed_vmclonedb started at 2004-04-02 15:11:22 Umounting /clone/prod_db. Umounting /clone/prod_ar. dbed_vmclonedb ended at 2004-04-02 15:11:47 To shut down the clone database, unmount file systems, and deport the snapshot disk group for a clone on a secondary host, use the dbed_vmclonedb command as follows: $ /opt/VRTS/bin/dbed_vmclonedb -o umount,new_sid=NEWPROD \ -f snap2 dbed_vmclonedb started at 2004-04-09 23:09:21 Umounting /clone/arch. Umounting /clone/prod_db. dbed_vmclonedb ended at 2004-04-09 23:09:50 In a single-host configuration: To start the clone 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 restartdb,new_sid=NEWPROD -f snap1 -r /clone dbed_vmclonedb started at 2004-04-02 15:14:49 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. Oracle instance NEWPROD successfully started. dbed_vmclonedb ended at 2004-04-02 15:15:19 To start the clone database on the secondary host, use the dbed_vmclonedb command as follows: $ /opt/VRTS/bin/dbed_vmclonedb -S PROD -g SNAP_PRODdg \ -o restartdb,new_sid=NEWPROD,vxdbavol=SNAP_arch -f snap2 dbed_vmclonedb started at 2003-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. Oracle instance NEWPROD successfully started. dbed_vmclonedb ended at 2003-04-09 23:04:50 |
^ Return to Top | < Previous | Next > |
Product: Storage Foundation for Databases Guides | |
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide | |
VERITAS Software Corporation
www.veritas.com |