Skip to main content
Skip table of contents

Move an Oracle VDB to a physical ASM or exadata database

Deprecation Notice

Warning: This procedure is deprecated as of Delphix recommends using the new export feature in that is documented in the Export an Oracle VDB or vPDB to a Physical ASM or Exadata Database article. This procedure will be eventually removed in future versions of the Delphix Continuous Data Engine.


This article describes how to move a virtual database (VDB) into a physical database stored on Oracle Automatic Storage Management (ASM) disk groups. This is a scripted procedure that is assisted (but not fully automated) by Delphix. No intermediate storage is needed; the database files are moved directly from Delphix into the ASM diskgroup(s).

This procedure can be used to export a VDB to ASM disk group(s), including disk group(s) residing in an Oracle Exadata machine. The move-to-asm.shscript follows Oracle's recommended best practice of using a single disk group for data files. A separate disk group can be specified for redo log files. Professional Services can be engaged if customization is needed.

This procedure applies to all Oracle RDBMS Versions supported by Delphix; in addition, it is not supported by PDB/Multi-tenant type databases.


  1. Create an ASM disk group that will contain all the database files. Optionally, create a separate disk group for redo log files.

  2. Provision a VDB on the target machine that is running Oracle ASM or Exadata in order to do the export; this VDB will be deleted after the export is complete. This temporary VDB can be provisioned from an existing VDB. You can also provision it from a dSource, which allows you to achieve a full restore of the original source ASM database.

  3. Login to the target machine (or a node of the target RAC cluster) where the VDB instance and ASM instance are running. The directory will be in the form:


  4. For a RAC database, be sure to use the directory path containing the SID of the instance running on the node where you have logged in.

  5. Ensure that Oracle environment variables ORACLE_HOME,ORACLE_SID, and CRS_HOME (RAC only) are correctly set for the VDB that needs to be moved.

  6. Execute the script move-to-asm.shas the Environment User who provisioned the single instance VDB. For a RAC VDB, the Environment User selected to execute the must be the Oracle installation owner. This is due to an Oracle restriction that only the installation owner can invoke srvctl to add or remove database configurations. Alternatively, enter as a Post-Provision Hook Script when provisioning the VDB. This will provision and move the VDB into ASM disk groups in a single flow. You must specify the -noask option to execute in non-interactive mode. For more information about hook scripts, visit the Hook Scripts for Automation and Customization article.

Command syntax: [-noask] [-parallel #] [-dbunique db_unique_name] <data_diskgroup> [<redo_diskgroup>]



-noask [optional]

Do not prompt for confirmation before moving the VDB. The default is to prompt.

-parallel # [optional]

The number of RMAN channels used to move the VDB to ASM. The default is 8.

-dbunique <> [optional]

Unique database name for the resulting physical database. The default is the unique name of the VDB.

The -dbunique argument only works if a database with that name that you select already exists.

<> [required]

Target ASM disk group for data, server parameter and control files.

<> [optional]

Target ASM disk group for redo log files. Default is <>.

move-to-asm script

The script generates several output files. These files are all written to the working directory of the script:


The log file for the operation:


The init.ora parameter file created for the ASM DB instance:


The init.ora for the source database (from which the VDB was created).

Finishing steps

The final steps to manually execute are shown when the script completes and included in the script output.

  1. For Single Instance only: copy generated init<$ORACLESID>.ora parameter file to the default $ORACLE_HOME/dbs/init<$ORACLE_SID>.ora

  2. Modify initialization parameters to match the original source database parameters, if necessary.

As a convenience to assist with this step, the source database parameters are restored as source_init<$ORACLE_SID>.ora in the execution directory. Be sure to copy this file to a save place before deleting the temporary VDB.

The script generates several output files. These files are all written to the working directory of the script and should also  be copied to a safe place if needed:


The log file for the operation:


The init.ora parameter file created for the ASM DB instance:


The init.ora for the source database (from which the VDB was created).

  1. Delete the Delphix VDB that was moved.

  2. Start up the physical database that will now run on ASM.
    (A RAC database is automatically started up by the script using srvctl but may have been stopped when  the VDB was deleted, if it has the same name.)

Sample execution

$ cd toolkit/Delphix_564dc816_d457_6224_1327_4d43fd1b3d97_oracle_cluster/databases/oracle/RAC2ASM/RAC2ASM1
$ export ORACLE_HOME=/u01/app/oracle/product/
$ sh -noask +DATA +REDO
Virtual-to-ASM script ( v5.2) for Delphix
Copyright (c) 2013, 2018 by Delphix. All rights reserved.

Moving database RAC2ASM to ASM: started at Wed Feb 19 16:08:43 EST 2020
db_unique_name => RAC2ASM
ORACLE_HOME => /u01/app/oracle/product/
Datafile diskgroup => +DATA
Online redo diskgroup => +REDO
RMAN Channels => 8

Create cluster database RAC2ASM
Generate script to move tempfiles to ASM
Generate script to drop old tempfiles
Generate script to drop offline tablespaces
Generate script to make read-only tablespaces read-write
Generate script to make tablespaces read-only again
Make read-only tablespaces read-write
Remove offline tablespaces
Updating server parameter file with ASM locations
Creating temporary initialization parameter file
Move spfile to ASM
Move datafiles to ASM: started at Wed Feb 19 16:09:41 EST 2020
Move datafiles to ASM: completed at Wed Feb 19 16:10:31 EST 2020
Stop cluster database RAC2ASM
Restart cluster database RAC2ASM
Remove old tempfiles
Move tempfiles into ASM
Move Online logs
Restore any read-only tablespaces
Shutdown database
Starting up RAC database RAC2ASM...
Database RAC2ASM moved to ASM: completed at Wed Feb 19 16:12:45 EST 2020

Final Steps to complete the move to ASM:
Source parameters are restored at /home/oracle/toolkit/Delphix_564dc816_d457_6224_1327_4d43fd1b3d97_oracle_cluster/databases/oracle/RAC2ASM/RAC2ASM1/source_initRAC2ASM1.ora

Copy this file to a safe location before removing the VDB

1) Delete VDB on Delphix.
2) Modify initialization parameters to match source and restart.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.