SlideShare a Scribd company logo
1 of 7
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Moving 12c database from non-asm storage to asm storage
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1. Check the current files (data, control, logs and temp)
================================================
RMAN> connect target
connected to target database: TESTP (DBID=1042086153)
RMAN> select name from v$datafile;
using target database control file instead of recovery catalog
NAME
-------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/system01.dbf
/u01/app/oracle/oradata/TESTP/example01.dbf
/u01/app/oracle/oradata/TESTP/sysaux01.dbf
/u01/app/oracle/oradata/TESTP/undotbs01.dbf
/u01/app/oracle/oradata/TESTP/users01.dbf
RMAN> select member from v$logfile;
MEMBER
-------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/redo03.log
/u01/app/oracle/oradata/TESTP/redo02.log
/u01/app/oracle/oradata/TESTP/redo01.log
RMAN> select name from v$controlfile;
NAME
-------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/control01.ctl
/u01/app/oracle/oradata/TESTP/control02.ctl
RMAN> select name from v$tempfile;
NAME
-------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/temp01.dbf
RMAN> show parameter pfile
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "parameter": expecting one of: "all, archivelog, auxiliary, auxname, backup,
channel, compression, controlfile, datafile, db_unique_name, default, device, encryption, exclude, maxsetsize,
retention, snapshot, "
RMAN-01007: at line 1 column 6 file: standard input
RMAN> select value from v$parameter where name='spfile';
VALUE
-------------------------------------------------------------------------------/u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfileTESTP.ora

2. Create the required directories for ASM database
===========================================
From Other Session,
ASMCMD> pwd
+DATA/TESTP
ASMCMD> mkdir DATAFILE CONROLFILE TEMPFILE PARAMETERFILE ONLINELOG
ASMCMD> ls -l
Type Redund Striped Time
Sys Name
N CONROLFILE/
N DATAFILE/
N ONLINELOG/
N PARAMETERFILE/
N TEMPFILE/
3. Configure FRA
================
RMAN> select value from v$parameter where name='spfile';
VALUE
-------------------------------------------------------------------------------/u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfileTESTP.ora
RMAN> create pfile from spfile;
Statement processed
RMAN> alter system set db_recovery_file_dest_size = 1G;
Statement processed
RMAN> alter system set db_recovery_file_dest = '+FRA';
Statement processed
RMAN> alter system set control_files='+DATA/control01.ctl' scope=spfile;
Statement processed
4. Moving files (data and control) from NON ASM to ASM storage.
=========================================================
RMAN> shutdown immediate;
Oracle instance shut down
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area
Fixed Size
Variable Size
Database Buffers
Redo Buffers

551165952 bytes

2290608 bytes
289410128 bytes
255852544 bytes
3612672 bytes
RMAN> restore controlfile from '/u01/app/oracle/oradata/TESTP/control01.ctl';
Starting restore at 10-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=33 device type=DISK
channel ORA_DISK_1: copied control file copy
output file name=+DATA/control01.ctl
Finished restore at 10-NOV-13
RMAN> alter database mount;
Statement processed
released channel: ORA_DISK_1
RMAN> backup as copy database format '+DATA';
Starting backup at 10-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=33 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/u01/app/oracle/oradata/TESTP/system01.dbf
output file name=+DATA/TESTP/DATAFILE/system.272.831128883 tag=TAG20131110T130802 RECID=1
STAMP=831128951
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/u01/app/oracle/oradata/TESTP/sysaux01.dbf
output file name=+DATA/TESTP/DATAFILE/sysaux.273.831128959 tag=TAG20131110T130802 RECID=2
STAMP=831129026
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00002 name=/u01/app/oracle/oradata/TESTP/example01.dbf
output file name=+DATA/TESTP/DATAFILE/example.275.831129033 tag=TAG20131110T130802 RECID=3
STAMP=831129061
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/u01/app/oracle/oradata/TESTP/undotbs01.dbf
output file name=+DATA/TESTP/DATAFILE/undotbs1.276.831129069 tag=TAG20131110T130802 RECID=4
STAMP=831129081
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
copying current control file
output file name=+DATA/TESTP/CONTROLFILE/backup.278.831129085 tag=TAG20131110T130802 RECID=5
STAMP=831129090
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting datafile copy
input datafile file number=00006 name=/u01/app/oracle/oradata/TESTP/users01.dbf
output file name=+DATA/TESTP/DATAFILE/users.267.831129091 tag=TAG20131110T130802 RECID=6
STAMP=831129092
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 10-NOV-13
channel ORA_DISK_1: finished piece 1 at 10-NOV-13
piece handle=+DATA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t130802_0.268.831129093
tag=TAG20131110T130802 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 10-NOV-13
RMAN> switch database to copy;
datafile 1 switched to datafile copy "+DATA/TESTP/DATAFILE/system.272.831128883"
datafile 2 switched to datafile copy "+DATA/TESTP/DATAFILE/example.275.831129033"
datafile 3 switched to datafile copy "+DATA/TESTP/DATAFILE/sysaux.273.831128959"
datafile 4 switched to datafile copy "+DATA/TESTP/DATAFILE/undotbs1.276.831129069"
datafile 6 switched to datafile copy "+DATA/TESTP/DATAFILE/users.267.831129091"
Open the database
----------------------RMAN> alter database open;
Statement processed
RMAN> select name from v$datafile;
NAME
-------------------------------------------------------------------------------+DATA/TESTP/DATAFILE/system.272.831128883
+DATA/TESTP/DATAFILE/example.275.831129033
+DATA/TESTP/DATAFILE/sysaux.273.831128959
+DATA/TESTP/DATAFILE/undotbs1.276.831129069
+DATA/TESTP/DATAFILE/users.267.831129091
RMAN> select name from v$controlfile;
NAME
-------------------------------------------------------------------------------+DATA/control01.ctl
5. MOVE redologs to ASM storage
===========================
RMAN> select member,group# from v$logfile;
MEMBER
GROUP#
--------------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/redo03.log
3
/u01/app/oracle/oradata/TESTP/redo02.log
2
/u01/app/oracle/oradata/TESTP/redo01.log
1

RMAN> alter database add logfile group 4 size 50M;
Statement processed
RMAN> alter database add logfile group 5 size 50M;
Statement processed
RMAN> alter database add logfile group 6 size 50M;
Statement processed
RMAN> alter database drop logfile group 1;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of sql statement command at 11/10/2013 13:18:40
ORA-01623: log 1 is current log for instance TESTP (thread 1) - cannot drop
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/TESTP/redo01.log'
RMAN> alter database drop logfile group 2;
Statement processed
RMAN> alter database drop logfile group 3;
Statement processed
RMAN> alter system checkpoint;
Statement processed
RMAN> alter system switch logfile;
Statement processed
RMAN> alter database drop logfile group 1;
Statement processed
RMAN> select member from v$logfile;
MEMBER
-------------------------------------------------------------------------------+DATA/TESTP/ONLINELOG/group_4.274.831129459
+FRA/TESTP/ONLINELOG/group_4.290.831129463
+DATA/TESTP/ONLINELOG/group_5.277.831129483
+FRA/TESTP/ONLINELOG/group_5.292.831129487
+DATA/TESTP/ONLINELOG/group_6.271.831129501
+FRA/TESTP/ONLINELOG/group_6.291.831129505
6. Migrate temp tablespace to ASM storage
===============================
RMAN> select tablespace_name, file_name from dba_temp_files;
TABLESPACE_NAME
FILE_NAME
-------------------------------------------------------------------------------TEMP
/u01/app/oracle/oradata/TESTP/temp01.dbf
RMAN> alter tablespace TEMP add tempfile '+DATA/TESTP/temp_01.dbf' size 50m;
Statement processed
RMAN> alter database tempfile '/u01/app/oracle/oradata/TESTP/temp01.dbf' drop;
Statement processed
RMAN> select name from v$tempfile;
NAME
-------------------------------------------------------------------------------+DATA/TESTP/temp_01.dbf
7. Migrate SPFILE to ASM storage
==============================
RMAN> select value from v$parameter where name='spfile';
VALUE
--------------------------------------------------------------------------------
/u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfileTESTP.ora
RMAN> create pfile from spfile;
Statement processed
RMAN> create spfile='+DATA/TESTP/spfile' from
pfile='/u01/app/oracle/product/12.1.0/dbhome_1/dbs/initTESTP.ora';
Statement processed
RMAN> run {
BACKUP AS BACKUPSET SPFILE;
RESTORE SPFILE TO "+DATA/TESTP/spfile";
}
2> 3> 4>
Starting backup at 10-NOV-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=51 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 10-NOV-13
channel ORA_DISK_1: finished piece 1 at 10-NOV-13
piece handle=+FRA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t135115_0.309.831131477
tag=TAG20131110T135115 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 10-NOV-13
Starting restore at 10-NOV-13
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: restoring SPFILE
output file name=+DATA/TESTP/spfile
channel ORA_DISK_1: reading from backup piece
+FRA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t135115_0.309.831131477
channel ORA_DISK_1: piece
handle=+FRA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t135115_0.309.831131477
tag=TAG20131110T135115
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 10-NOV-13
RMAN> startup
connected to target database (not started)
Oracle instance started
database mounted
database opened
Total System Global Area
Fixed Size
Variable Size
Database Buffers

551165952 bytes

2290608 bytes
297798736 bytes
247463936 bytes
Redo Buffers

3612672 bytes

RMAN> select value from v$parameter where name='spfile';
VALUE
-------------------------------------------------------------------------------+DATA/TESTP/spfile
So all the database files and paramer file is now on ASM storage.

More Related Content

What's hot

Oracle 12c far sync standby instance
Oracle 12c far sync standby instanceOracle 12c far sync standby instance
Oracle 12c far sync standby instanceMonowar Mukul
 
Postgres 12 Cluster Database operations.
Postgres 12 Cluster Database operations.Postgres 12 Cluster Database operations.
Postgres 12 Cluster Database operations.Vijay Kumar N
 
Flashback (Practical Test)
Flashback (Practical Test)Flashback (Practical Test)
Flashback (Practical Test)Anar Godjaev
 
Test Dml With Nologging
Test Dml With NologgingTest Dml With Nologging
Test Dml With NologgingN/A
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezInsight Technology, Inc.
 
Oracle Database 11g Product Family
Oracle Database 11g Product FamilyOracle Database 11g Product Family
Oracle Database 11g Product FamilyN/A
 
How to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdbHow to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdbMarco Vigelini
 
Colvin RMAN New Features
Colvin RMAN New FeaturesColvin RMAN New Features
Colvin RMAN New FeaturesEnkitec
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cuzzal basak
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11gfcamachob
 
Oracle 10g Performance: chapter 09 enqueues
Oracle 10g Performance: chapter 09 enqueuesOracle 10g Performance: chapter 09 enqueues
Oracle 10g Performance: chapter 09 enqueuesKyle Hailey
 
White Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and RecoveryWhite Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and RecoveryFrancisco Alvarez
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingKyle Hailey
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
UKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction LocksUKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction LocksKyle Hailey
 
使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子maclean liu
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman scriptMaris Elsins
 

What's hot (19)

Oracle 12c far sync standby instance
Oracle 12c far sync standby instanceOracle 12c far sync standby instance
Oracle 12c far sync standby instance
 
Postgres 12 Cluster Database operations.
Postgres 12 Cluster Database operations.Postgres 12 Cluster Database operations.
Postgres 12 Cluster Database operations.
 
Flashback (Practical Test)
Flashback (Practical Test)Flashback (Practical Test)
Flashback (Practical Test)
 
Test Dml With Nologging
Test Dml With NologgingTest Dml With Nologging
Test Dml With Nologging
 
B35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarezB35 all you wanna know about rman by francisco alvarez
B35 all you wanna know about rman by francisco alvarez
 
Oracle Database 11g Product Family
Oracle Database 11g Product FamilyOracle Database 11g Product Family
Oracle Database 11g Product Family
 
How to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdbHow to create a pluggable database by cloning an existing local pdb
How to create a pluggable database by cloning an existing local pdb
 
Colvin RMAN New Features
Colvin RMAN New FeaturesColvin RMAN New Features
Colvin RMAN New Features
 
Change DB Name
Change DB NameChange DB Name
Change DB Name
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 
11 Things About11g
11 Things About11g11 Things About11g
11 Things About11g
 
Oracle 10g Performance: chapter 09 enqueues
Oracle 10g Performance: chapter 09 enqueuesOracle 10g Performance: chapter 09 enqueues
Oracle 10g Performance: chapter 09 enqueues
 
White Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and RecoveryWhite Paper - What is new at 11g for Backup and Recovery
White Paper - What is new at 11g for Backup and Recovery
 
Rac nonrac clone
Rac nonrac cloneRac nonrac clone
Rac nonrac clone
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 sampling
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
UKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction LocksUKOUG, Oracle Transaction Locks
UKOUG, Oracle Transaction Locks
 
使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子使用Prm恢复受损的oracle数据表几个例子
使用Prm恢复受损的oracle数据表几个例子
 
10 ways to improve your rman script
10 ways to improve your rman script10 ways to improve your rman script
10 ways to improve your rman script
 

Viewers also liked

TimesTen in memory database Creation
TimesTen in memory database Creation TimesTen in memory database Creation
TimesTen in memory database Creation Monowar Mukul
 
Edtc6341 63 esther_sauceda_practice_test5
Edtc6341 63 esther_sauceda_practice_test5Edtc6341 63 esther_sauceda_practice_test5
Edtc6341 63 esther_sauceda_practice_test5esauceda12
 
Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Monowar Mukul
 
Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)Monowar Mukul
 
Exadata - Smart Scan Testing
Exadata - Smart Scan TestingExadata - Smart Scan Testing
Exadata - Smart Scan TestingMonowar Mukul
 
Copyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
Copyright Crash Course 1st revised ppt 6340.64 Sonia AldapeCopyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
Copyright Crash Course 1st revised ppt 6340.64 Sonia Aldapesoniaaldape
 
Upgrade database using cloud_control Provisioning
Upgrade database using cloud_control Provisioning Upgrade database using cloud_control Provisioning
Upgrade database using cloud_control Provisioning Monowar Mukul
 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installationMonowar Mukul
 
Advanced installation 12c rac
Advanced installation 12c racAdvanced installation 12c rac
Advanced installation 12c racMonowar Mukul
 
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobsMonowar Mukul
 
12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASMMonowar Mukul
 
Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)Monowar Mukul
 
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database  Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database Monowar Mukul
 
4. java intro class
4. java intro class4. java intro class
4. java intro classQuan Ho
 
Oracle AWR baseline - Basic
Oracle AWR baseline - BasicOracle AWR baseline - Basic
Oracle AWR baseline - BasicMonowar Mukul
 
SMS notification setup using EM12c
SMS notification setup using EM12cSMS notification setup using EM12c
SMS notification setup using EM12cMonowar Mukul
 
EM12c Configuration Setup - Step by Step
EM12c Configuration Setup - Step by StepEM12c Configuration Setup - Step by Step
EM12c Configuration Setup - Step by StepMonowar Mukul
 
TESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GITESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GIMonowar Mukul
 

Viewers also liked (20)

TimesTen in memory database Creation
TimesTen in memory database Creation TimesTen in memory database Creation
TimesTen in memory database Creation
 
Edtc6341 63 esther_sauceda_practice_test5
Edtc6341 63 esther_sauceda_practice_test5Edtc6341 63 esther_sauceda_practice_test5
Edtc6341 63 esther_sauceda_practice_test5
 
Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine Exadata - BULK DATA LOAD Testing on Database Machine
Exadata - BULK DATA LOAD Testing on Database Machine
 
Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)Exadata I/O Resource Manager (Exadata IORM)
Exadata I/O Resource Manager (Exadata IORM)
 
Exadata - Smart Scan Testing
Exadata - Smart Scan TestingExadata - Smart Scan Testing
Exadata - Smart Scan Testing
 
Copyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
Copyright Crash Course 1st revised ppt 6340.64 Sonia AldapeCopyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
Copyright Crash Course 1st revised ppt 6340.64 Sonia Aldape
 
Exadata Cell metrics
Exadata Cell metricsExadata Cell metrics
Exadata Cell metrics
 
Upgrade database using cloud_control Provisioning
Upgrade database using cloud_control Provisioning Upgrade database using cloud_control Provisioning
Upgrade database using cloud_control Provisioning
 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installation
 
Advanced installation 12c rac
Advanced installation 12c racAdvanced installation 12c rac
Advanced installation 12c rac
 
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
12c: Testing audit features for Data Pump (Export & Import) and RMAN jobs
 
12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM12c Flex ASM: Moving to Flex ASM
12c Flex ASM: Moving to Flex ASM
 
1247g3hg1238 2011
1247g3hg1238 20111247g3hg1238 2011
1247g3hg1238 2011
 
Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)Oracle 12c RAC (Advanced installation - Flex ASM)
Oracle 12c RAC (Advanced installation - Flex ASM)
 
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database  Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
Migration Database from SQL SERVER 2012 to Oracle12c with Pluggable Database
 
4. java intro class
4. java intro class4. java intro class
4. java intro class
 
Oracle AWR baseline - Basic
Oracle AWR baseline - BasicOracle AWR baseline - Basic
Oracle AWR baseline - Basic
 
SMS notification setup using EM12c
SMS notification setup using EM12cSMS notification setup using EM12c
SMS notification setup using EM12c
 
EM12c Configuration Setup - Step by Step
EM12c Configuration Setup - Step by StepEM12c Configuration Setup - Step by Step
EM12c Configuration Setup - Step by Step
 
TESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GITESTING - Drop 12c RAC Database, Database Software and GI
TESTING - Drop 12c RAC Database, Database Software and GI
 

Similar to Moving 12c database from non-asm to asm storage

br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docLucky Ally
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12cuzzal basak
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.subhani shaik
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.subhani shaik
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission processK Kumar Guduru
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4uzzal basak
 
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمآموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمfaradars
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Featuresxiangrong
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2Osama Mustafa
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsRoo Wall
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureOrazer Technologies
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Biju Thomas
 
Pluggable database tutorial
Pluggable database tutorialPluggable database tutorial
Pluggable database tutorialOsama Mustafa
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in DataguardJason Arneil
 
Oracle Managed Files
Oracle Managed FilesOracle Managed Files
Oracle Managed FilesAnar Godjaev
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowAlex Zaballa
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)Gustavo Rene Antunez
 

Similar to Moving 12c database from non-asm to asm storage (20)

br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
 
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
 
Database decommission process
Database decommission processDatabase decommission process
Database decommission process
 
12c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.412c db upgrade from 11.2.0.4
12c db upgrade from 11.2.0.4
 
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهمآموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
 
Oracle ORA Errors
Oracle ORA ErrorsOracle ORA Errors
Oracle ORA Errors
 
Data Guard New Features
Data Guard New FeaturesData Guard New Features
Data Guard New Features
 
Pluggable database tutorial 2
Pluggable database tutorial 2Pluggable database tutorial 2
Pluggable database tutorial 2
 
Creating a physical standby database 11g on windows
Creating a physical standby database 11g on windowsCreating a physical standby database 11g on windows
Creating a physical standby database 11g on windows
 
Cloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step ProcedureCloning Oracle EBS R12: A Step by Step Procedure
Cloning Oracle EBS R12: A Step by Step Procedure
 
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
 
Pluggable database tutorial
Pluggable database tutorialPluggable database tutorial
Pluggable database tutorial
 
Adventures in Dataguard
Adventures in DataguardAdventures in Dataguard
Adventures in Dataguard
 
Oracle Managed Files
Oracle Managed FilesOracle Managed Files
Oracle Managed Files
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
 
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should KnowOTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)RMAN in 12c: The Next Generation (PPT)
RMAN in 12c: The Next Generation (PPT)
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 

Moving 12c database from non-asm to asm storage

  • 1. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Moving 12c database from non-asm storage to asm storage ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1. Check the current files (data, control, logs and temp) ================================================ RMAN> connect target connected to target database: TESTP (DBID=1042086153) RMAN> select name from v$datafile; using target database control file instead of recovery catalog NAME -------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/system01.dbf /u01/app/oracle/oradata/TESTP/example01.dbf /u01/app/oracle/oradata/TESTP/sysaux01.dbf /u01/app/oracle/oradata/TESTP/undotbs01.dbf /u01/app/oracle/oradata/TESTP/users01.dbf RMAN> select member from v$logfile; MEMBER -------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/redo03.log /u01/app/oracle/oradata/TESTP/redo02.log /u01/app/oracle/oradata/TESTP/redo01.log RMAN> select name from v$controlfile; NAME -------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/control01.ctl /u01/app/oracle/oradata/TESTP/control02.ctl RMAN> select name from v$tempfile; NAME -------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/temp01.dbf RMAN> show parameter pfile RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-00558: error encountered while parsing input commands RMAN-01009: syntax error: found "parameter": expecting one of: "all, archivelog, auxiliary, auxname, backup, channel, compression, controlfile, datafile, db_unique_name, default, device, encryption, exclude, maxsetsize, retention, snapshot, " RMAN-01007: at line 1 column 6 file: standard input
  • 2. RMAN> select value from v$parameter where name='spfile'; VALUE -------------------------------------------------------------------------------/u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfileTESTP.ora 2. Create the required directories for ASM database =========================================== From Other Session, ASMCMD> pwd +DATA/TESTP ASMCMD> mkdir DATAFILE CONROLFILE TEMPFILE PARAMETERFILE ONLINELOG ASMCMD> ls -l Type Redund Striped Time Sys Name N CONROLFILE/ N DATAFILE/ N ONLINELOG/ N PARAMETERFILE/ N TEMPFILE/ 3. Configure FRA ================ RMAN> select value from v$parameter where name='spfile'; VALUE -------------------------------------------------------------------------------/u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfileTESTP.ora RMAN> create pfile from spfile; Statement processed RMAN> alter system set db_recovery_file_dest_size = 1G; Statement processed RMAN> alter system set db_recovery_file_dest = '+FRA'; Statement processed RMAN> alter system set control_files='+DATA/control01.ctl' scope=spfile; Statement processed 4. Moving files (data and control) from NON ASM to ASM storage. ========================================================= RMAN> shutdown immediate; Oracle instance shut down RMAN> startup nomount; connected to target database (not started) Oracle instance started Total System Global Area Fixed Size Variable Size Database Buffers Redo Buffers 551165952 bytes 2290608 bytes 289410128 bytes 255852544 bytes 3612672 bytes
  • 3. RMAN> restore controlfile from '/u01/app/oracle/oradata/TESTP/control01.ctl'; Starting restore at 10-NOV-13 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=33 device type=DISK channel ORA_DISK_1: copied control file copy output file name=+DATA/control01.ctl Finished restore at 10-NOV-13 RMAN> alter database mount; Statement processed released channel: ORA_DISK_1 RMAN> backup as copy database format '+DATA'; Starting backup at 10-NOV-13 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=33 device type=DISK channel ORA_DISK_1: starting datafile copy input datafile file number=00001 name=/u01/app/oracle/oradata/TESTP/system01.dbf output file name=+DATA/TESTP/DATAFILE/system.272.831128883 tag=TAG20131110T130802 RECID=1 STAMP=831128951 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:15 channel ORA_DISK_1: starting datafile copy input datafile file number=00003 name=/u01/app/oracle/oradata/TESTP/sysaux01.dbf output file name=+DATA/TESTP/DATAFILE/sysaux.273.831128959 tag=TAG20131110T130802 RECID=2 STAMP=831129026 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:15 channel ORA_DISK_1: starting datafile copy input datafile file number=00002 name=/u01/app/oracle/oradata/TESTP/example01.dbf output file name=+DATA/TESTP/DATAFILE/example.275.831129033 tag=TAG20131110T130802 RECID=3 STAMP=831129061 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35 channel ORA_DISK_1: starting datafile copy input datafile file number=00004 name=/u01/app/oracle/oradata/TESTP/undotbs01.dbf output file name=+DATA/TESTP/DATAFILE/undotbs1.276.831129069 tag=TAG20131110T130802 RECID=4 STAMP=831129081 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15 channel ORA_DISK_1: starting datafile copy copying current control file output file name=+DATA/TESTP/CONTROLFILE/backup.278.831129085 tag=TAG20131110T130802 RECID=5 STAMP=831129090 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:07 channel ORA_DISK_1: starting datafile copy input datafile file number=00006 name=/u01/app/oracle/oradata/TESTP/users01.dbf output file name=+DATA/TESTP/DATAFILE/users.267.831129091 tag=TAG20131110T130802 RECID=6 STAMP=831129092 channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01 channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set including current SPFILE in backup set channel ORA_DISK_1: starting piece 1 at 10-NOV-13 channel ORA_DISK_1: finished piece 1 at 10-NOV-13
  • 4. piece handle=+DATA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t130802_0.268.831129093 tag=TAG20131110T130802 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01 Finished backup at 10-NOV-13 RMAN> switch database to copy; datafile 1 switched to datafile copy "+DATA/TESTP/DATAFILE/system.272.831128883" datafile 2 switched to datafile copy "+DATA/TESTP/DATAFILE/example.275.831129033" datafile 3 switched to datafile copy "+DATA/TESTP/DATAFILE/sysaux.273.831128959" datafile 4 switched to datafile copy "+DATA/TESTP/DATAFILE/undotbs1.276.831129069" datafile 6 switched to datafile copy "+DATA/TESTP/DATAFILE/users.267.831129091" Open the database ----------------------RMAN> alter database open; Statement processed RMAN> select name from v$datafile; NAME -------------------------------------------------------------------------------+DATA/TESTP/DATAFILE/system.272.831128883 +DATA/TESTP/DATAFILE/example.275.831129033 +DATA/TESTP/DATAFILE/sysaux.273.831128959 +DATA/TESTP/DATAFILE/undotbs1.276.831129069 +DATA/TESTP/DATAFILE/users.267.831129091 RMAN> select name from v$controlfile; NAME -------------------------------------------------------------------------------+DATA/control01.ctl 5. MOVE redologs to ASM storage =========================== RMAN> select member,group# from v$logfile; MEMBER GROUP# --------------------------------------------------------------------------------------/u01/app/oracle/oradata/TESTP/redo03.log 3 /u01/app/oracle/oradata/TESTP/redo02.log 2 /u01/app/oracle/oradata/TESTP/redo01.log 1 RMAN> alter database add logfile group 4 size 50M; Statement processed RMAN> alter database add logfile group 5 size 50M; Statement processed RMAN> alter database add logfile group 6 size 50M; Statement processed RMAN> alter database drop logfile group 1; RMAN-00571: ===========================================================
  • 5. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of sql statement command at 11/10/2013 13:18:40 ORA-01623: log 1 is current log for instance TESTP (thread 1) - cannot drop ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/TESTP/redo01.log' RMAN> alter database drop logfile group 2; Statement processed RMAN> alter database drop logfile group 3; Statement processed RMAN> alter system checkpoint; Statement processed RMAN> alter system switch logfile; Statement processed RMAN> alter database drop logfile group 1; Statement processed RMAN> select member from v$logfile; MEMBER -------------------------------------------------------------------------------+DATA/TESTP/ONLINELOG/group_4.274.831129459 +FRA/TESTP/ONLINELOG/group_4.290.831129463 +DATA/TESTP/ONLINELOG/group_5.277.831129483 +FRA/TESTP/ONLINELOG/group_5.292.831129487 +DATA/TESTP/ONLINELOG/group_6.271.831129501 +FRA/TESTP/ONLINELOG/group_6.291.831129505 6. Migrate temp tablespace to ASM storage =============================== RMAN> select tablespace_name, file_name from dba_temp_files; TABLESPACE_NAME FILE_NAME -------------------------------------------------------------------------------TEMP /u01/app/oracle/oradata/TESTP/temp01.dbf RMAN> alter tablespace TEMP add tempfile '+DATA/TESTP/temp_01.dbf' size 50m; Statement processed RMAN> alter database tempfile '/u01/app/oracle/oradata/TESTP/temp01.dbf' drop; Statement processed RMAN> select name from v$tempfile; NAME -------------------------------------------------------------------------------+DATA/TESTP/temp_01.dbf 7. Migrate SPFILE to ASM storage ============================== RMAN> select value from v$parameter where name='spfile'; VALUE --------------------------------------------------------------------------------
  • 6. /u01/app/oracle/product/12.1.0/dbhome_1/dbs/spfileTESTP.ora RMAN> create pfile from spfile; Statement processed RMAN> create spfile='+DATA/TESTP/spfile' from pfile='/u01/app/oracle/product/12.1.0/dbhome_1/dbs/initTESTP.ora'; Statement processed RMAN> run { BACKUP AS BACKUPSET SPFILE; RESTORE SPFILE TO "+DATA/TESTP/spfile"; } 2> 3> 4> Starting backup at 10-NOV-13 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=51 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set including current SPFILE in backup set channel ORA_DISK_1: starting piece 1 at 10-NOV-13 channel ORA_DISK_1: finished piece 1 at 10-NOV-13 piece handle=+FRA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t135115_0.309.831131477 tag=TAG20131110T135115 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01 Finished backup at 10-NOV-13 Starting restore at 10-NOV-13 using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: restoring SPFILE output file name=+DATA/TESTP/spfile channel ORA_DISK_1: reading from backup piece +FRA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t135115_0.309.831131477 channel ORA_DISK_1: piece handle=+FRA/TESTP/BACKUPSET/2013_11_10/nnsnf0_tag20131110t135115_0.309.831131477 tag=TAG20131110T135115 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:03 Finished restore at 10-NOV-13 RMAN> startup connected to target database (not started) Oracle instance started database mounted database opened Total System Global Area Fixed Size Variable Size Database Buffers 551165952 bytes 2290608 bytes 297798736 bytes 247463936 bytes
  • 7. Redo Buffers 3612672 bytes RMAN> select value from v$parameter where name='spfile'; VALUE -------------------------------------------------------------------------------+DATA/TESTP/spfile So all the database files and paramer file is now on ASM storage.