Table of Contents

Migrate a 10g Standard Edition database to ASM using RMAN

First, this document is based on a PDF published in 2004 by Oracle entitled “Oracle Database 10g Migration to Automatic Storage Management”. You should download and reference that document for switching to ASM. That document presented two ways to migrate, “Cold”, and “Hot”. The Hot method assumed you had ASM up and running with it's own storage allocated, and that is the method I used.

I am providing my notes here for two reasons. One, you may encounter some errors while doing this process that are not noted in the document, and two, that document assumed Enterprise Edition.

The Hot Migration method is very simple, and for a 200GB database took about 2 hours. I performed it on a weekend, so I had the luxury of having no one in the system at the time.

Setup ASM

See this page for some info on setting up ASM using Oracle Grid 11gR2. I recommend creating two disk groups, because you will want to have some redundancy for your control files and log files.

Preparing the database for ASM usage

The document from Oracle will have you change the flash recovery area to ASM, but in my case, we left the flash recovery area on non ASM disks so that our Linux backup exec agent could pick them up. We will eventually use OCFS when we cluster to store these files. ACFS (the new cluster file system that runs on ASM) would let you store such files there, but storing database files in an acfs file system is not supported by Oracle! You will not find any notes here regarding the switch of the recovery area.

Also, note that the last step is the only one that requires the database to go down.

Steps:

You are now running on ASM! Now you can choose to clean up your disks where the old datafiles and log files were located.