Skip to main content

Move control file from Non-ASM to ASM in 11.2.0.2

This article will be useful for Moving control file from Normal UNIX file system or any other file system to Oracle ASM.

Moving control file from UFS to ASM:

1) Check the location of control file:

SQL> select name from v$controlfile;

NAME
--------------------------------------------------------------------------------
/u01/11g_Home/oradata/db1/control01.ctl


2)check ASM Disk group:

SQL> select state,name from v$asm_diskgroup;

STATE NAME
----------- ------------------------------
MOUNTED ASMDATA1


3) Shutdown the database and startup in nomount

SQL> shutdown normal
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>


----

startup database in nomount state:

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area 1720844288 bytes
Fixed Size 2159024 bytes
Variable Size 1241517648 bytes
Database Buffers 469762048 bytes
Redo Buffers 7405568 bytes
SQL>



4) connect rman target with nocatalog option


bash-3.00$ rman nocatalog

Recovery Manager: Release 11.2.0.2.0 - Production on Wed Oct 27 11:16:31 2010

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

RMAN> connect target

connected to target database: DB1 (not mounted)
using target database control file instead of recovery catalog

5) Restore control file

RMAN> restore controlfile to '+ASMDATA1' from '/u01/11g_Home/oradata/db1/control01.ctl';

Starting restore at 27-OCT-10
using channel ORA_DISK_1

channel ORA_DISK_1: copied control file copy
Finished restore at 27-OCT-10

6) Check the restored controlfile on ASM Disk group to get the new name of file

ASMCMD> find -t CONTROLFILE +ASMDATA1 *

+ASMDATA1/DB1/CONTROLFILE/current.256.733490439

7) Update pfile or spfile with new location of controlfile

update the parameter:

*.control_files='+ASMDATA1/DB1/CONTROLFILE/current.256.733490439'

I am using pfile, so updated the parameter in pfile. If using spfile we need to update it with "Alter system command"

8) Shutdown and startup the database

bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Wed Oct 27 11:31:46 2010

Copyright (c) 1982, 2010, Oracle. All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> shut immediate
ORA-01507: database not mounted


ORACLE instance shut down.

--------


bash-3.00$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Wed Oct 27 11:32:44 2010

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1720844288 bytes
Fixed Size 2159024 bytes
Variable Size 1241517648 bytes
Database Buffers 469762048 bytes
Redo Buffers 7405568 bytes
Database mounted.
Database opened.

SQL>

9) Verify the new location of controlfile

SQL> select name from v$controlfile;

NAME
--------------------------------------------------------------------------------
+ASMDATA1/db1/controlfile/current.256.733490439

Comments

Santosh said…
Thanks for explaining step by step. It helps me to move control file to asm.

Popular posts from this blog

Disable Firewall on Oracle Linux 8

In this blogpost we will see how we can stop/disable the firewall on Oracle Linux 8, the firewall command is same in both linux 7 an linux 8. The below listed is the procedure for stopping and disabling the  firewall on Oracle Linux 8. - Here we can see the firewall deamon in active state - Here when we stop the firewall in previous command, now the firewall daemon is dead - For permanent disabling the firewall on server, we can use "disable" option The following commands will be helpful: #systemctl status firewalld #systemctl stop firewalld #systemctl disable firewalld #systemctl enable firewalld #systemctl start firewalld Hope it helps !! Thanks for reading :) regards, X A H E E R

Enable Desktop on Oracle Solaris 11.4

Oracle Solaris 11 installation has multiple options to choose for installation of an Operating Environment, but mostly Oracle Solaris text install media is used and this installation media doesn't offer the GUI Desktop Environment by default after the installation. This blog post will explain how we can enable the desktop for Oracle Solaris 11.4 operating system, after the completion of installation. We have to install "solaris-desktop" package and reboot the machine and GUI desktop will be enabled for the Operating System. In this blog post my virtual machine is connected to the internet and hence I am able to use available pupblic repository for package installation, if in case internet is not available for the server/machine then we have configure the local/Server  repository for the installation. Follow the below steps for desktop package installation: After installation of dekstop package we are now able to login with GUI desktop environment

Oracle Applications R12.2 Installation on Linux using virtual box

Oracle E-Business suite R12.2 is released a month ago. I received too many requests from my followers to demonstrate this Installation. This is a step by step detailed article for Installing Oracle E-business suite R12,2 on Oracle Enterprise Linux 5.7 (64-bit). I've used oracle virtual box for Installing Linux. Note:  This Installation is demonstrated on virtual machine with 8GB RAM and Installation completed in 7 hours. I am not sure whether this Installation will work with less than this .  My Virtual Machine configuration: CPU    = 1 core RAM   = 8 GB HDD   =  380 GB Software's Required: 1) Oracle Virtual Box 2) Oracle Enterprise Linux 5.7 (64-bit) 3) Oracle E-Business suite R12.2 for LinuxX86-64-bit Installation Steps: Hardware requirements Create virtual machine and Install operating system Operating System pre-requisites Prepare Stage Area Install Oracle EBS R12.2 software Verify Installation 1. Hardware Requirement