You can use the dbed_clonedb command to clone an Oracle instance using a Storage Checkpoint.
Cloning an existing database using a Storage Checkpoint must be done on the same host.
Warning: |
If the -o cio option was used with the mount command to mount your primary database file systems, Concurrent I/O will not be preserved when using dbed_clonedb to create a clone database. |
Before cloning the Oracle instance, the following conditions must be met:
Table: dbed_clonedb command options lists the options for the dbed_clonedb command.
Table: dbed_clonedb command options
To clone an Oracle instance
$/opt/VRTS/bin/dbed_clonedb -S new2 -m /tmp/new2 \ -c onCkpt SFDB vxsfadm WARNING V-81-0962 dbed_clonedb will be deprecated in the next release SFDB vxsfadm WARNING V-81-0963 As an alternative use /opt/VRTS/bin/vxsfadm Creating Storage Checkpoint onCkpt_rw_1378467816 ... Done Storage Checkpoint onCkpt_rw_1378467816 created Mounting Checkpoint to /tmp/new2... Done Cloning the Pfile ... Done Mounting the database... Done Recovering the clone database...
To shut down the clone database and unmount the Storage Checkpoint
$ /opt/VRTS/bin/dbed_clonedb -S new2 -o umount SFDB vxsfadm WARNING V-81-0962 dbed_clonedb will be deprecated in the next release SFDB vxsfadm WARNING V-81-0963 As an alternative use /opt/VRTS/bin/vxsfadm Shutting down the clone database new2... Done Unmounting the checkpoint... Done
To mount a Storage Checkpoint file system and start the clone database
$/opt/VRTS/bin/dbed_clonedb -S new2 -o restartdb SFDB vxsfadm WARNING V-81-0962 dbed_clonedb will be deprecated in the next release SFDB vxsfadm WARNING V-81-0963 As an alternative use /opt/VRTS/bin/vxsfadm Mounting Checkpoint to /tmp/new2... Done Mounting the database... Done Starting the Clone database ... Done
To delete a clone database and the Storage Checkpoint used to create it
$ /opt/VRTS/bin/dbed_clonedb -S new2 -o umount -d SFDB vxsfadm WARNING V-81-0962 dbed_clonedb will be deprecated in the next release SFDB vxsfadm WARNING V-81-0963 As an alternative use /opt/VRTS/bin/vxsfadm Shutting down the clone database new2... Done Unmounting the checkpoint... Done Deleting the Checkpoint onCkpt_rw_1316003740... Deleting Checkpoint from /db01... Done
More Information