2012-10-12 02:02 AM - edited 2015-12-18 01:16 AM
Background: We're running SMO in a Unix environment over NFS. We're using SMO to clone databases, but some we are splitting in order to provide a base from which to clone several other DB's. We would like name these 'base' split clone volumes based on a particular naming convention.
When SMO creates a clone it creates a flexclone called something like SnapManager_YYYYMMDDHHMMSS_<original_vol_name> so once SMO is finished we have to take the DB down, unmount the vol, rename it on the filer, mount it again on the unix host.
Is there any way to tell SMO what to name the clone volume on the filer? I can define the mount point in the clone spec, but not the volume itself.
Thanks in advance,
2013-02-01 03:04 AM
This is not what you are looking for, but I'm doing it like this becasue cloned DB might stay there forever. FlexClone is not good gor that if there are lot's of changes into the DB datavolume where FlexClone has done.
Only thing you could do if the cloned DB stays there for a long time.
1. volume copy or mirror the flex the volumename you prefer (do not use split)
2. You still need to shut down the database to umount and mount the new volumes.
3.You have now your datadirectory where it should be.
4. detach (NOT REMOVE OR DESTROY) your metadata from smo (now the snapshot can be deleted where clone has been taken..