You are on page 1of 18

MIGRATION FROM ASM TO FILE SYSTEM & VICE VERSA

1)Overview
Following steps describes about how to migrate a database which is using asm
storage to the file system i.e all the logical files will be converted to their physical
form.Whole activity can be performed by Recovery Manager.
2)Prerequisites
a)Oracle Grid Infrastructure software is already installed.
b)A database is installed which is using asm storage.
c)Two diskgroups i.e +DATA & +FRA are created.
3)Scenario
If Client wants to physically relocate all the necessary database files then the
following activity can be performed.

4)Steps
i)Move pfile from asm to the filesystem by using following sql commands.

ii)Go through the file reports stored in asm.

iii)Change the parameter db_create_file_dest to /grid/app/oracle/oradata/ &


db_recovey_file_dest to
grid/app/oracle/fast_recovery_area.

iv)Now open the db in nomount stage using rman.Copy the controlfile from its
initial location based in asm.Rman will automatically copy the file to the location
specified in initfile.

v)Mount the db & copy the datafiles.

vi)Now switch the controlfile to the new copy by using the command switch
database to copy.
vii)Perform recovery & open the db with resetlogs clause.

viii)Drop older tempfile.

ix)Create new tempfile.

x)Check the logfiles.

xi)Drop & create log which is inactive.

xii)Make new log current & perform deletion & addition in circular fashion.

xiii)Now all files are migrated to local system.Check the files.

xiv)Copy the files to a different system as backups & use them to create a standard
database.

Now Rman can be used to migrate files from non asm to asm also.Steps needed to
perform the activity are described as follows.

i)Check the files pointing to the local file system.

ii)Set the necessary parameters in the spfile.

iii)Restore controlfile from the local filesystem & copy the file to the asmdiskgroup
using rman in the nomount stage.

iv)Go to the mount stage & perform the datafile backup as copy.

v)Switch the controlfile to the new copy.

vi)Perform recovery & open the db with resetlogs clause & check the tempfile.

vii)Drop & recreate the temp file.

viii)Check the redologs.

ix)Make logfile current & drop the inactive logfiles.

x)Add the dropped logfiles.

xi)Now check the file reports which are now relocated to the asm storage again.

xii)Now delete the files stored in rman repository.

The activity related to migration is completed now.

You might also like