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

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 (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

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Recently uploaded (20)

How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Moving 12c database from NON-ASM to ASM

  • 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.