---
title: "How To Move Controlfile To ASM [ID 468458.1]"
author: "libin123"
date: "2010-05-14T13:57:40Z"
tags: []
categories: ["数据库"]
slug: "how-to-move-controlfile-to-asm-id-468458-1"
draft: false
lastmod: "2010-05-14T13:57:58Z"
id: 666388
url: "https://dbua.iteye.com/blog/666388"
---

**Applies to:**

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.1.0.6  
Information in this document applies to any platform.

[]()**Goal**

This document provides information on how to move a controlfile from filesystem to ASM and Vise Versa  

[]()**Solution**

1\. Identify the location of the current controlfile:

SQL&gt; select name from v$controlfile;

NAME  
\--------------------------------------------------------------------------------  
/u01/control01.ctl'

2\. Shutdown the database and start the instance:

SQL&gt; shutdown normal  
SQL&gt; startup nomount

3\. Use RMAN to move the controlfile to ASM :

$ rman nocatalog  
RMAN&gt;connect target  
RMAN&gt;restore controlfile to '&lt;DISKGROUP\_NAME&gt;' from '&lt;OLD\_PATH&gt;';  
e.g.  
RMAN&gt; restore controlfile to '+DG1' from '/u01/control01.ctl';

4\. On the ASM instance, identify the name of the controlfile using ASMCMD:

$asmcmd  
ASMCMD&gt; find -t CONTROLFILE +DG1 *

Find

Purpose:  
Displays the absolute paths of all occurrences of the specified name (with wildcards) in a specified directory and its subdirectories.

 

Syntax and Description:  
find \[-t type] dir name

This command searches the specified directory and all subdirectories below it in the directory tree for the supplied name. name can be a directory name or a filename, and can include wildcard characters. dir may also include wildcards. In the output of the command, directory names are suffixed with the slash character (/) to distinguish them from filenames.

You use the -t flag to find all the files of a particular type (specified as type). For example, you can search for control files by specifying type as CONTROLFILE. Valid values for type are the following:

CONTROLFILE  
DATAFILE  
ONLINELOG  
ARCHIVELOG  
TEMPFILE  
BACKUPSET  
DATAFILE  
PARAMETERFILE  
DATAGUARDCONFIG  
FLASHBACK  
CHANGETRACKING  
DUMPSET  
AUTOBACKUP  
XTRANSPORT

Note:  
These are the values from the type column of the V$ASM\_FILE view.

Changing the current directory to the diskgroup where the controlfile was created will speed the search.

Output:  
ASMCMD&gt; find -t CONTROLFILE +DG1 *  
+DG1/ORCL/CONTROLFILE/current.261.639419131  
ASMCMD&gt;

Note the name assigned to the controlfile.

5\. On the database Instance:

\* Modify init.ora or spfile, replacing the new path to the init parameter control\_files.  
\* if using init&lt;SID&gt;.ora, just modify the control\_files parameter and restart the database.  
\* If using spfile,

1]SQL&gt;startup nomount the database instance  
2]SQL&gt;alter system set control\_files='+DG1/ORCL/CONTROLFILE/current.261.639419131' scope=spfile;  
3]SQL&gt;shutdown immediate

6\. Start the instance.

Note:  
In-order to have Multiple Copies/ Multiplexed Version of the controlfiles, repeat steps 3-5