SlideShare uma empresa Scribd logo
1 de 33
Oracle Database 12c – Recovery
Manager New Features
Presented by: Andy Colvin

December 2, 2013
About Enkitec
—  Extensive Oracle Practice – 9 years old
— 
— 
— 
— 
— 

Education
Database Migrations
Performance Reviews
Remote DBA Support
Application Express

—  Enkitec Extreme Exadata Expo
—  Irving, TX
—  June 2-3
—  http://www.enkitec.com/e4
About Me
—  Working around Oracle since 1999
—  Background in systems, network,
database
—  7 years at Enkitec
—  Working on Exadata for 4 years
—  Oracle ACE
Why Talk About RMAN?
—  Everybody should use RMAN
—  It can be quite interesting
—  I’m a fan of cruel and unusual
punishment
What’s New?
—  New Security Roles
—  Pluggable Databases
—  Run SQL from RMAN
—  Recover Table
—  Cross-Platform Restore
—  Active Duplicate Enhancements
12c Includes SYSBACKUP Role
—  Special role that only has backup privileges
—  For example, SYSBACKUP does not include SELECT ANY TABLE

—  Recommended method for connecting to RMAN
—  rman target ' "user/pass as sysbackup" '
What’s New?
—  New Security Roles
—  Pluggable Databases
—  Run SQL from RMAN
—  Recover Table
—  Cross-Platform Restore
—  Active Duplicate Enhancements
Pluggable Databases
—  Oracle 12c introduces the concept of containers and
pluggable databases
—  Pluggable databases are “virtual” databases
—  Pluggable databases share memory and redo logs
Pluggable Database Support
—  RMAN supports Pluggable Databases
—  Back up entire Container Database or individual Pluggable
Databases
—  Container database – no changes
—  PDB point in time recovery
Containers vs Pluggable Databases
—  Back up container databases like any “standard” database
—  Afterwards, open all of your pluggable databases
RMAN>
2> {
3>
4>
5>
6> }
RMAN>
RMAN>

RUN
SET UNTIL SCN 16747183;
RESTORE DATABASE;
RECOVER DATABASE;
alter database open resetlogs;
alter pluggable database all open;
Pluggable Database Support
RMAN> report schema;
Report of database schema for database with db_unique_name PLUGGY
List of Permanent Datafiles
===========================
File Size(MB) Tablespace
---- -------- -------------------1
770
SYSTEM
3
610
SYSAUX
4
60
UNDOTBS1
5
250
PDB$SEED:SYSTEM
6
5
USERS
7
490
PDB$SEED:SYSAUX
8
250
PLUG1:SYSTEM
9
510
PLUG1:SYSAUX
10
5
PLUG1:USERS

RB segs
------***
***
***
***
***
***
***
***
***

List of Temporary Files
=======================
File Size(MB) Tablespace
---- -------- -------------------1
521
TEMP
2
20
PDB$SEED:TEMP
3
20
PLUG1:TEMP

Maxsize(MB)
----------32767
32767
32767

Datafile Name
-----------------------+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE
+DG/PLUGGY/DATAFILE/FILE

Tempfile Name
-------------------+DG/PLUGGY/TEMPFILE/FILE
+DG/PLUGGY/TEMPFILE/FILE
+DG/PLUGGY/TEMPFILE/FILE
PDB Point In Time Recovery
—  Recover PDBs individually
RMAN>
RMAN>
2> {
3>
4>
5>
6> }
RMAN>

alter pluggable database ERP close;
RUN
SET UNTIL SCN 1674493;
RESTORE PLUGGABLE DATABASE ERP;
RECOVER PLUGGABLE DATABASE ERP;
alter pluggable database ERP open resetlogs;
What’s New?
—  New Security Roles
—  Pluggable Databases
—  Run SQL from RMAN
—  Recover Table
—  Cross-Platform Restore
—  Active Duplicate Enhancements
Running SQL From RMAN
—  No More “SQL” Tags
—  Previous versions didn’t support SELECT statements
—  Useful within backup scripts
Running SQL From RMAN (2)
RMAN> select sysdate from dual;
SYSDATE
--------11-FEB-13
RMAN> desc dba_pdbs
Name
Null?
--------------------------PDB_ID
NOT NULL
PDB_NAME
NOT NULL
DBID
NOT NULL
CON_UID
NOT NULL
GUID
STATUS
CREATION_SCN
NOT NULL

Type
---------------------------NUMBER
VARCHAR2(128)
NUMBER
NUMBER
RAW(16)
VARCHAR2(13)
NUMBER
What’s New?
—  New Security Roles
—  Pluggable Databases
—  Run SQL from RMAN
—  Recover Table
—  Cross-Platform Restore
—  Active Duplicate Enhancements
Recover Table
—  Recover tables from backups
—  Useful when you can’t use flashback
—  Recover tables or table partitions
—  Remap table names using datapump syntax
—  Must connect with SYSDBA or SYSBACKUP credentials
Recover Table (2)
RMAN> RECOVER TABLE ACOLVIN1.T
2> UNTIL SCN 1674493
3> AUXILIARY DESTINATION '+DATA'
4> DATAPUMP DESTINATION '+DATA'
5> REMAP TABLE 'ACOLVIN1'.'T':'T_RECOVERED';
Recover Table - Process
—  RMAN automatically finds necessary backupsets
—  Auxiliary database created with backupsets
—  Data pump export file automatically created
—  RMAN performs data pump import of the tables to be recovered
(optional)
—  RMAN cleans up after itself, deleting datapump file and temporary
instance files
What’s New?
—  New Security Roles
—  Pluggable Databases
—  Run SQL from RMAN
—  Recover Table
—  Cross-Platform Restore
—  Active Duplicate Enhancements
Cross-Platform Backup/Restore
—  Utilizes backupsets (smaller backups to transport)
—  Great for migrations – “read-only” requirement removed
—  Allows for shorter downtime when moving across platforms
Cross-Platform Backup/Restore (2)
1.  Perform backup of the source tablespaces
2.  Restore to the new target database
3.  Take periodic incremental backups and recover on target
4.  Place source tablespaces in read-only mode, take final
incremental backup and export metadata
5.  Restore final incremental backup to target database
6.  Import tablespace metadata into target database
What’s New?
—  New Security Roles
—  Pluggable Databases
—  Run SQL from RMAN
—  Recover Table
—  Cross-Platform Restore
—  Active Duplicate Enhancements
RMAN Duplicate – Old School
—  Each channel is assigned a datafile
—  Files assigned to channels starting with largest first
—  When a file is finished, the next largest available file is
copied

—  Works perfectly when all datafiles are same size
—  What if we have different sized datafiles?
What Does This Mean?
—  Imagine dozens of datafiles
—  Ranging from 50GB to 9TB

—  Allocate too many channels, they will sit idle
—  Don’t allocate enough channels, wait on largest datafiles
***This is changed in 12c***
—  Active duplicate utilizes backupsets
RMAN Duplicate Channel Allocation
Source Database
File 1
1TB

File 5
10GB

File 2
50GB

File 6
10GB

File 3
10GB

File 7
10GB

File 4
20GB

File 8
10GB

RMAN Channel 1

RMAN Channel 2

Target Database
Active Duplicate Enhancements
—  Active duplicate defaults to use backupsets
—  This gives us all of the benefits of backupsets, with active
duplicate
—  PIECE SIZE
—  COMPRESSION

—  Empty space moves much faster
Active Duplicate Enhancements
—  Example code
RMAN> run {
2> allocate channel d1 device type disk;
3> allocate channel d2 device type disk;
4> allocate channel d3 device type disk;
5> allocate auxiliary channel s1 device type disk;
6> duplicate target database for standby
7> from active database piece size 500M;
8> }
Active Duplicate Enhancements
—  What the output looks like
channel s1: starting datafile backup set restore
channel s1: using network backup set from service cloudy
channel s1: specifying datafile(s) to restore from backup set
channel s1: restoring datafile 00001 to +SMITHERS/windy/datafile/
system.273.807276333
channel s1: restoring section 1 of 2
channel s1: restore complete, elapsed time: 00:00:15
channel s1: starting datafile backup set restore
channel s1: using network backup set from service cloudy
channel s1: specifying datafile(s) to restore from backup set
channel s1: restoring datafile 00001 to +SMITHERS/windy/datafile/
system.273.807276333
channel s1: restoring section 2 of 2
Active Duplicate Enhancements
—  Let’s look closer
—  Using a utility called dstat, we can see what’s going on
—  dstat -dnyc -D xvda,xvde,xvdf,xvdg -N eth0 -C total

—  Using a utility called dstat, we can see what’s going on
Active Duplicate Enhancements
--dsk/xvda----dsk/xvde----dsk/xvdf----dsk/xvdg- --net/eth0- ----total-cpu-usage---read writ: read writ: read writ: read writ| recv send||usr sys idl wai hiq siq
0
0 :
0
35M:
0
32M:8192B
34M| 13M 289k|| 1
0 90
9
0
0
0
0 :
0
36M:
0
39M:
0
36M| 109M 2168k|| 1
1 97
1
0
1
0
0 :
0
37M: 32k
37M: 32k
38M| 116M 2299k|| 1
1 97
0
0
empty datafile 1
0
0 :
0
38M:
0
37M:
0
37M| 116M 2345k|| 1
1 97
0
0
1
0
0 : 32k
21M: 96k
22M: 56k
21M| 65M 1311k|| 0
1 97
1
0
0
0
0 : 16k
0 : 16k
16k: 32k
16k| 52B 508B|| 0
0 100
0
0
0
0
0 : 16k 4096B: 32k
0 : 48k
0 | 11k
10k|| 0
0 100
0
0
0
0 4096B:
0
46M: 32k
44M: 16k
44M| 548B 743B|| 1
0 85 14
0
0
0
0 :
0
44M:
0
46M: 24k
46M| 532B 1220B|| 1
0 84 15
0
0
0
16k:
0
26M:
0
29M:8192B
29M|1065k
26k|| 1
0 90
9
0
0
0
0 : 16k
48M: 16k
45M: 32k
42M| 296B 450B|| non-empty14
1
0 85
0
datafile 0
0
0 :
0
46M:
0
46M:
0
46M| 426B 759B|| 1
0 84 15
0
0
0
0 :
0
43M:
0
46M:
0
49M| 584B 434B|| 1
0 85 14
0
0
A Few More Things…
—  Recover/Restore files over network
—  Image copy backups support section size
—  Storage snapshot optimizations
—  Specify that duplicated database does not open after
duplication
Questions?
Contact Information: Andy Colvin
email - andy.colvin@enkitec.com
web - http://www.enkitec.com
blog- http://blog.oracle-ninja.com
twitter - @acolvin

Mais conteúdo relacionado

Mais procurados

Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1Chien Chung Shen
 
Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14jijukjoseph
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different hostOsama Mustafa
 
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
 
Dpm Disaster Recovery Sonvu
Dpm Disaster Recovery SonvuDpm Disaster Recovery Sonvu
Dpm Disaster Recovery Sonvuvncson
 
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
 
Open-E DSS V7 Remote Snapshot Control with CLI/API
Open-E DSS V7 Remote Snapshot Control with CLI/APIOpen-E DSS V7 Remote Snapshot Control with CLI/API
Open-E DSS V7 Remote Snapshot Control with CLI/APIopen-e
 
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)open-e
 
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.
 
Introduction to HDFS and MapReduce
Introduction to HDFS and MapReduceIntroduction to HDFS and MapReduce
Introduction to HDFS and MapReduceUday Vakalapudi
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase clientShashwat Shriparv
 
DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)Tola LENG
 
Percona Cluster with Master_Slave for Disaster Recovery
Percona Cluster with Master_Slave for Disaster RecoveryPercona Cluster with Master_Slave for Disaster Recovery
Percona Cluster with Master_Slave for Disaster RecoveryRam Gautam
 
Introduction to hadoop and hdfs
Introduction to hadoop and hdfsIntroduction to hadoop and hdfs
Introduction to hadoop and hdfsshrey mehrotra
 
Implementation of k means algorithm on Hadoop
Implementation of k means algorithm on HadoopImplementation of k means algorithm on Hadoop
Implementation of k means algorithm on HadoopLamprini Koutsokera
 

Mais procurados (20)

Hadoop admin
Hadoop adminHadoop admin
Hadoop admin
 
Oracle Database Management Basic 1
Oracle Database Management Basic 1Oracle Database Management Basic 1
Oracle Database Management Basic 1
 
Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14Hadoop single node installation on ubuntu 14
Hadoop single node installation on ubuntu 14
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
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
 
Dpm Disaster Recovery Sonvu
Dpm Disaster Recovery SonvuDpm Disaster Recovery Sonvu
Dpm Disaster Recovery Sonvu
 
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
 
Open-E DSS V7 Remote Snapshot Control with CLI/API
Open-E DSS V7 Remote Snapshot Control with CLI/APIOpen-E DSS V7 Remote Snapshot Control with CLI/API
Open-E DSS V7 Remote Snapshot Control with CLI/API
 
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
Open-E DSS V7 Active-Active Load Balanced iSCSI HA Cluster (with bonding)
 
Rac questions
Rac questionsRac questions
Rac questions
 
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
 
Complex stories about Sqooping PostgreSQL data
Complex stories about Sqooping PostgreSQL dataComplex stories about Sqooping PostgreSQL data
Complex stories about Sqooping PostgreSQL data
 
Understanding Hadoop
Understanding HadoopUnderstanding Hadoop
Understanding Hadoop
 
Introduction to HDFS and MapReduce
Introduction to HDFS and MapReduceIntroduction to HDFS and MapReduce
Introduction to HDFS and MapReduce
 
Configure h base hadoop and hbase client
Configure h base hadoop and hbase clientConfigure h base hadoop and hbase client
Configure h base hadoop and hbase client
 
DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)DNS windows server(2008R2) & linux(SLES 11)
DNS windows server(2008R2) & linux(SLES 11)
 
Hadoop2.2
Hadoop2.2Hadoop2.2
Hadoop2.2
 
Percona Cluster with Master_Slave for Disaster Recovery
Percona Cluster with Master_Slave for Disaster RecoveryPercona Cluster with Master_Slave for Disaster Recovery
Percona Cluster with Master_Slave for Disaster Recovery
 
Introduction to hadoop and hdfs
Introduction to hadoop and hdfsIntroduction to hadoop and hdfs
Introduction to hadoop and hdfs
 
Implementation of k means algorithm on Hadoop
Implementation of k means algorithm on HadoopImplementation of k means algorithm on Hadoop
Implementation of k means algorithm on Hadoop
 

Destaque

интернет статистика 2011
интернет статистика 2011интернет статистика 2011
интернет статистика 2011Alexandra Shibina
 
Five senses Poland - Kristýna Kroupová
Five senses   Poland - Kristýna KroupováFive senses   Poland - Kristýna Kroupová
Five senses Poland - Kristýna KroupováJanaSimova
 
Suplemento especial de Informesan: Cincuentenario ESAN
Suplemento especial de Informesan: Cincuentenario ESANSuplemento especial de Informesan: Cincuentenario ESAN
Suplemento especial de Informesan: Cincuentenario ESANESAN Escuela de Negocios
 
Top HR Processes Ripe for a Social Enterprise
Top HR Processes Ripe for a Social EnterpriseTop HR Processes Ripe for a Social Enterprise
Top HR Processes Ripe for a Social EnterpriseKangoGift
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionIn a Rocket
 
SEO: Getting Personal
SEO: Getting PersonalSEO: Getting Personal
SEO: Getting PersonalKirsty Hulse
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldabaux singapore
 

Destaque (8)

интернет статистика 2011
интернет статистика 2011интернет статистика 2011
интернет статистика 2011
 
Five senses Poland - Kristýna Kroupová
Five senses   Poland - Kristýna KroupováFive senses   Poland - Kristýna Kroupová
Five senses Poland - Kristýna Kroupová
 
Suplemento especial de Informesan: Cincuentenario ESAN
Suplemento especial de Informesan: Cincuentenario ESANSuplemento especial de Informesan: Cincuentenario ESAN
Suplemento especial de Informesan: Cincuentenario ESAN
 
Top HR Processes Ripe for a Social Enterprise
Top HR Processes Ripe for a Social EnterpriseTop HR Processes Ripe for a Social Enterprise
Top HR Processes Ripe for a Social Enterprise
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
 
SEO: Getting Personal
SEO: Getting PersonalSEO: Getting Personal
SEO: Getting Personal
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 

Semelhante a Colvin RMAN New Features

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
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docLucky Ally
 
Moving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMoving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMonowar Mukul
 
Testing Delphix: easy data virtualization
Testing Delphix: easy data virtualizationTesting Delphix: easy data virtualization
Testing Delphix: easy data virtualizationFranck Pachot
 
Exam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and AdministrationExam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and AdministrationKylieJonathan
 
The post release technologies of Crysis 3 (Slides Only) - Stewart Needham
The post release technologies of Crysis 3 (Slides Only) - Stewart NeedhamThe post release technologies of Crysis 3 (Slides Only) - Stewart Needham
The post release technologies of Crysis 3 (Slides Only) - Stewart NeedhamStewart Needham
 
040419 san forum
040419 san forum040419 san forum
040419 san forumThiru Raja
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12cuzzal basak
 
Synapse 2018 Guarding against failure in a hundred step pipeline
Synapse 2018 Guarding against failure in a hundred step pipelineSynapse 2018 Guarding against failure in a hundred step pipeline
Synapse 2018 Guarding against failure in a hundred step pipelineCalvin French-Owen
 
gDBClone - Database Clone “onecommand Automation Tool”
gDBClone - Database Clone “onecommand Automation Tool”gDBClone - Database Clone “onecommand Automation Tool”
gDBClone - Database Clone “onecommand Automation Tool”Ruggero Citton
 
Champion Fas Deduplication
Champion Fas DeduplicationChampion Fas Deduplication
Champion Fas DeduplicationMichael Hudak
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New FeaturesAmazon Web Services
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_featuresNabi Abdul
 
Presentation data domain advanced features and functions
Presentation   data domain advanced features and functionsPresentation   data domain advanced features and functions
Presentation data domain advanced features and functionsxKinAnx
 
EMC Deduplication Fundamentals
EMC Deduplication FundamentalsEMC Deduplication Fundamentals
EMC Deduplication Fundamentalsemcbaltics
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1Dan Glasscock
 

Semelhante a Colvin RMAN New Features (20)

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)
 
br_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.docbr_test_lossof-datafile_10g.doc
br_test_lossof-datafile_10g.doc
 
Moving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASMMoving 12c database from NON-ASM to ASM
Moving 12c database from NON-ASM to ASM
 
Upgrading 11i E-business Suite to R12 E-business Suite
Upgrading 11i E-business Suite to R12 E-business SuiteUpgrading 11i E-business Suite to R12 E-business Suite
Upgrading 11i E-business Suite to R12 E-business Suite
 
Testing Delphix: easy data virtualization
Testing Delphix: easy data virtualizationTesting Delphix: easy data virtualization
Testing Delphix: easy data virtualization
 
Exam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and AdministrationExam 1z0 062 Oracle Database 12c: Installation and Administration
Exam 1z0 062 Oracle Database 12c: Installation and Administration
 
The post release technologies of Crysis 3 (Slides Only) - Stewart Needham
The post release technologies of Crysis 3 (Slides Only) - Stewart NeedhamThe post release technologies of Crysis 3 (Slides Only) - Stewart Needham
The post release technologies of Crysis 3 (Slides Only) - Stewart Needham
 
040419 san forum
040419 san forum040419 san forum
040419 san forum
 
oracle dba
oracle dbaoracle dba
oracle dba
 
Convert single instance to RAC
Convert single instance to RACConvert single instance to RAC
Convert single instance to RAC
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Synapse 2018 Guarding against failure in a hundred step pipeline
Synapse 2018 Guarding against failure in a hundred step pipelineSynapse 2018 Guarding against failure in a hundred step pipeline
Synapse 2018 Guarding against failure in a hundred step pipeline
 
gDBClone - Database Clone “onecommand Automation Tool”
gDBClone - Database Clone “onecommand Automation Tool”gDBClone - Database Clone “onecommand Automation Tool”
gDBClone - Database Clone “onecommand Automation Tool”
 
Champion Fas Deduplication
Champion Fas DeduplicationChampion Fas Deduplication
Champion Fas Deduplication
 
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
(DAT402) Amazon RDS PostgreSQL:Lessons Learned & New Features
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
ZDLRA in Action
ZDLRA in ActionZDLRA in Action
ZDLRA in Action
 
Presentation data domain advanced features and functions
Presentation   data domain advanced features and functionsPresentation   data domain advanced features and functions
Presentation data domain advanced features and functions
 
EMC Deduplication Fundamentals
EMC Deduplication FundamentalsEMC Deduplication Fundamentals
EMC Deduplication Fundamentals
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 

Mais de Enkitec

Using Angular JS in APEX
Using Angular JS in APEXUsing Angular JS in APEX
Using Angular JS in APEXEnkitec
 
Controlling execution plans 2014
Controlling execution plans   2014Controlling execution plans   2014
Controlling execution plans 2014Enkitec
 
Engineered Systems: Environment-as-a-Service Demonstration
Engineered Systems: Environment-as-a-Service DemonstrationEngineered Systems: Environment-as-a-Service Demonstration
Engineered Systems: Environment-as-a-Service DemonstrationEnkitec
 
Think Exa!
Think Exa!Think Exa!
Think Exa!Enkitec
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneEnkitec
 
In Search of Plan Stability - Part 1
In Search of Plan Stability - Part 1In Search of Plan Stability - Part 1
In Search of Plan Stability - Part 1Enkitec
 
Mini Session - Using GDB for Profiling
Mini Session - Using GDB for ProfilingMini Session - Using GDB for Profiling
Mini Session - Using GDB for ProfilingEnkitec
 
Profiling Oracle with GDB
Profiling Oracle with GDBProfiling Oracle with GDB
Profiling Oracle with GDBEnkitec
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the TradeEnkitec
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsEnkitec
 
SQL Tuning Tools of the Trade
SQL Tuning Tools of the TradeSQL Tuning Tools of the Trade
SQL Tuning Tools of the TradeEnkitec
 
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan StabilityUsing SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan StabilityEnkitec
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceEnkitec
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture PerformanceEnkitec
 
APEX Security Primer
APEX Security PrimerAPEX Security Primer
APEX Security PrimerEnkitec
 
How Many Ways Can I Manage Oracle GoldenGate?
How Many Ways Can I Manage Oracle GoldenGate?How Many Ways Can I Manage Oracle GoldenGate?
How Many Ways Can I Manage Oracle GoldenGate?Enkitec
 
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...Enkitec
 
Sql tuning made easier with sqltxplain (sqlt)
Sql tuning made easier with sqltxplain (sqlt)Sql tuning made easier with sqltxplain (sqlt)
Sql tuning made easier with sqltxplain (sqlt)Enkitec
 
Profiling the logwriter and database writer
Profiling the logwriter and database writerProfiling the logwriter and database writer
Profiling the logwriter and database writerEnkitec
 
Fatkulin hotsos 2014
Fatkulin hotsos 2014Fatkulin hotsos 2014
Fatkulin hotsos 2014Enkitec
 

Mais de Enkitec (20)

Using Angular JS in APEX
Using Angular JS in APEXUsing Angular JS in APEX
Using Angular JS in APEX
 
Controlling execution plans 2014
Controlling execution plans   2014Controlling execution plans   2014
Controlling execution plans 2014
 
Engineered Systems: Environment-as-a-Service Demonstration
Engineered Systems: Environment-as-a-Service DemonstrationEngineered Systems: Environment-as-a-Service Demonstration
Engineered Systems: Environment-as-a-Service Demonstration
 
Think Exa!
Think Exa!Think Exa!
Think Exa!
 
In Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry OsborneIn Memory Database In Action by Tanel Poder and Kerry Osborne
In Memory Database In Action by Tanel Poder and Kerry Osborne
 
In Search of Plan Stability - Part 1
In Search of Plan Stability - Part 1In Search of Plan Stability - Part 1
In Search of Plan Stability - Part 1
 
Mini Session - Using GDB for Profiling
Mini Session - Using GDB for ProfilingMini Session - Using GDB for Profiling
Mini Session - Using GDB for Profiling
 
Profiling Oracle with GDB
Profiling Oracle with GDBProfiling Oracle with GDB
Profiling Oracle with GDB
 
Oracle Performance Tools of the Trade
Oracle Performance Tools of the TradeOracle Performance Tools of the Trade
Oracle Performance Tools of the Trade
 
Oracle Performance Tuning Fundamentals
Oracle Performance Tuning FundamentalsOracle Performance Tuning Fundamentals
Oracle Performance Tuning Fundamentals
 
SQL Tuning Tools of the Trade
SQL Tuning Tools of the TradeSQL Tuning Tools of the Trade
SQL Tuning Tools of the Trade
 
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan StabilityUsing SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
Using SQL Plan Management (SPM) to Balance Plan Flexibility and Plan Stability
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture Performance
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture Performance
 
APEX Security Primer
APEX Security PrimerAPEX Security Primer
APEX Security Primer
 
How Many Ways Can I Manage Oracle GoldenGate?
How Many Ways Can I Manage Oracle GoldenGate?How Many Ways Can I Manage Oracle GoldenGate?
How Many Ways Can I Manage Oracle GoldenGate?
 
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
Understanding how is that adaptive cursor sharing (acs) produces multiple opt...
 
Sql tuning made easier with sqltxplain (sqlt)
Sql tuning made easier with sqltxplain (sqlt)Sql tuning made easier with sqltxplain (sqlt)
Sql tuning made easier with sqltxplain (sqlt)
 
Profiling the logwriter and database writer
Profiling the logwriter and database writerProfiling the logwriter and database writer
Profiling the logwriter and database writer
 
Fatkulin hotsos 2014
Fatkulin hotsos 2014Fatkulin hotsos 2014
Fatkulin hotsos 2014
 

Último

Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemAsko Soukka
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Websitedgelyza
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?IES VE
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintMahmoud Rabie
 
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IES VE
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXTarek Kalaji
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...Aggregage
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxUdaiappa Ramachandran
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfDaniel Santiago Silva Capera
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 

Último (20)

Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystem
 
201610817 - edge part1
201610817 - edge part1201610817 - edge part1
201610817 - edge part1
 
COMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a WebsiteCOMPUTER 10 Lesson 8 - Building a Website
COMPUTER 10 Lesson 8 - Building a Website
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 
How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?How Accurate are Carbon Emissions Projections?
How Accurate are Carbon Emissions Projections?
 
Empowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership BlueprintEmpowering Africa's Next Generation: The AI Leadership Blueprint
Empowering Africa's Next Generation: The AI Leadership Blueprint
 
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
IESVE Software for Florida Code Compliance Using ASHRAE 90.1-2019
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
The Data Metaverse: Unpacking the Roles, Use Cases, and Tech Trends in Data a...
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptx
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 

Colvin RMAN New Features

  • 1. Oracle Database 12c – Recovery Manager New Features Presented by: Andy Colvin December 2, 2013
  • 2. About Enkitec —  Extensive Oracle Practice – 9 years old —  —  —  —  —  Education Database Migrations Performance Reviews Remote DBA Support Application Express —  Enkitec Extreme Exadata Expo —  Irving, TX —  June 2-3 —  http://www.enkitec.com/e4
  • 3. About Me —  Working around Oracle since 1999 —  Background in systems, network, database —  7 years at Enkitec —  Working on Exadata for 4 years —  Oracle ACE
  • 4. Why Talk About RMAN? —  Everybody should use RMAN —  It can be quite interesting —  I’m a fan of cruel and unusual punishment
  • 5. What’s New? —  New Security Roles —  Pluggable Databases —  Run SQL from RMAN —  Recover Table —  Cross-Platform Restore —  Active Duplicate Enhancements
  • 6. 12c Includes SYSBACKUP Role —  Special role that only has backup privileges —  For example, SYSBACKUP does not include SELECT ANY TABLE —  Recommended method for connecting to RMAN —  rman target ' "user/pass as sysbackup" '
  • 7. What’s New? —  New Security Roles —  Pluggable Databases —  Run SQL from RMAN —  Recover Table —  Cross-Platform Restore —  Active Duplicate Enhancements
  • 8. Pluggable Databases —  Oracle 12c introduces the concept of containers and pluggable databases —  Pluggable databases are “virtual” databases —  Pluggable databases share memory and redo logs
  • 9. Pluggable Database Support —  RMAN supports Pluggable Databases —  Back up entire Container Database or individual Pluggable Databases —  Container database – no changes —  PDB point in time recovery
  • 10. Containers vs Pluggable Databases —  Back up container databases like any “standard” database —  Afterwards, open all of your pluggable databases RMAN> 2> { 3> 4> 5> 6> } RMAN> RMAN> RUN SET UNTIL SCN 16747183; RESTORE DATABASE; RECOVER DATABASE; alter database open resetlogs; alter pluggable database all open;
  • 11. Pluggable Database Support RMAN> report schema; Report of database schema for database with db_unique_name PLUGGY List of Permanent Datafiles =========================== File Size(MB) Tablespace ---- -------- -------------------1 770 SYSTEM 3 610 SYSAUX 4 60 UNDOTBS1 5 250 PDB$SEED:SYSTEM 6 5 USERS 7 490 PDB$SEED:SYSAUX 8 250 PLUG1:SYSTEM 9 510 PLUG1:SYSAUX 10 5 PLUG1:USERS RB segs ------*** *** *** *** *** *** *** *** *** List of Temporary Files ======================= File Size(MB) Tablespace ---- -------- -------------------1 521 TEMP 2 20 PDB$SEED:TEMP 3 20 PLUG1:TEMP Maxsize(MB) ----------32767 32767 32767 Datafile Name -----------------------+DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE +DG/PLUGGY/DATAFILE/FILE Tempfile Name -------------------+DG/PLUGGY/TEMPFILE/FILE +DG/PLUGGY/TEMPFILE/FILE +DG/PLUGGY/TEMPFILE/FILE
  • 12. PDB Point In Time Recovery —  Recover PDBs individually RMAN> RMAN> 2> { 3> 4> 5> 6> } RMAN> alter pluggable database ERP close; RUN SET UNTIL SCN 1674493; RESTORE PLUGGABLE DATABASE ERP; RECOVER PLUGGABLE DATABASE ERP; alter pluggable database ERP open resetlogs;
  • 13. What’s New? —  New Security Roles —  Pluggable Databases —  Run SQL from RMAN —  Recover Table —  Cross-Platform Restore —  Active Duplicate Enhancements
  • 14. Running SQL From RMAN —  No More “SQL” Tags —  Previous versions didn’t support SELECT statements —  Useful within backup scripts
  • 15. Running SQL From RMAN (2) RMAN> select sysdate from dual; SYSDATE --------11-FEB-13 RMAN> desc dba_pdbs Name Null? --------------------------PDB_ID NOT NULL PDB_NAME NOT NULL DBID NOT NULL CON_UID NOT NULL GUID STATUS CREATION_SCN NOT NULL Type ---------------------------NUMBER VARCHAR2(128) NUMBER NUMBER RAW(16) VARCHAR2(13) NUMBER
  • 16. What’s New? —  New Security Roles —  Pluggable Databases —  Run SQL from RMAN —  Recover Table —  Cross-Platform Restore —  Active Duplicate Enhancements
  • 17. Recover Table —  Recover tables from backups —  Useful when you can’t use flashback —  Recover tables or table partitions —  Remap table names using datapump syntax —  Must connect with SYSDBA or SYSBACKUP credentials
  • 18. Recover Table (2) RMAN> RECOVER TABLE ACOLVIN1.T 2> UNTIL SCN 1674493 3> AUXILIARY DESTINATION '+DATA' 4> DATAPUMP DESTINATION '+DATA' 5> REMAP TABLE 'ACOLVIN1'.'T':'T_RECOVERED';
  • 19. Recover Table - Process —  RMAN automatically finds necessary backupsets —  Auxiliary database created with backupsets —  Data pump export file automatically created —  RMAN performs data pump import of the tables to be recovered (optional) —  RMAN cleans up after itself, deleting datapump file and temporary instance files
  • 20. What’s New? —  New Security Roles —  Pluggable Databases —  Run SQL from RMAN —  Recover Table —  Cross-Platform Restore —  Active Duplicate Enhancements
  • 21. Cross-Platform Backup/Restore —  Utilizes backupsets (smaller backups to transport) —  Great for migrations – “read-only” requirement removed —  Allows for shorter downtime when moving across platforms
  • 22. Cross-Platform Backup/Restore (2) 1.  Perform backup of the source tablespaces 2.  Restore to the new target database 3.  Take periodic incremental backups and recover on target 4.  Place source tablespaces in read-only mode, take final incremental backup and export metadata 5.  Restore final incremental backup to target database 6.  Import tablespace metadata into target database
  • 23. What’s New? —  New Security Roles —  Pluggable Databases —  Run SQL from RMAN —  Recover Table —  Cross-Platform Restore —  Active Duplicate Enhancements
  • 24. RMAN Duplicate – Old School —  Each channel is assigned a datafile —  Files assigned to channels starting with largest first —  When a file is finished, the next largest available file is copied —  Works perfectly when all datafiles are same size —  What if we have different sized datafiles?
  • 25. What Does This Mean? —  Imagine dozens of datafiles —  Ranging from 50GB to 9TB —  Allocate too many channels, they will sit idle —  Don’t allocate enough channels, wait on largest datafiles ***This is changed in 12c*** —  Active duplicate utilizes backupsets
  • 26. RMAN Duplicate Channel Allocation Source Database File 1 1TB File 5 10GB File 2 50GB File 6 10GB File 3 10GB File 7 10GB File 4 20GB File 8 10GB RMAN Channel 1 RMAN Channel 2 Target Database
  • 27. Active Duplicate Enhancements —  Active duplicate defaults to use backupsets —  This gives us all of the benefits of backupsets, with active duplicate —  PIECE SIZE —  COMPRESSION —  Empty space moves much faster
  • 28. Active Duplicate Enhancements —  Example code RMAN> run { 2> allocate channel d1 device type disk; 3> allocate channel d2 device type disk; 4> allocate channel d3 device type disk; 5> allocate auxiliary channel s1 device type disk; 6> duplicate target database for standby 7> from active database piece size 500M; 8> }
  • 29. Active Duplicate Enhancements —  What the output looks like channel s1: starting datafile backup set restore channel s1: using network backup set from service cloudy channel s1: specifying datafile(s) to restore from backup set channel s1: restoring datafile 00001 to +SMITHERS/windy/datafile/ system.273.807276333 channel s1: restoring section 1 of 2 channel s1: restore complete, elapsed time: 00:00:15 channel s1: starting datafile backup set restore channel s1: using network backup set from service cloudy channel s1: specifying datafile(s) to restore from backup set channel s1: restoring datafile 00001 to +SMITHERS/windy/datafile/ system.273.807276333 channel s1: restoring section 2 of 2
  • 30. Active Duplicate Enhancements —  Let’s look closer —  Using a utility called dstat, we can see what’s going on —  dstat -dnyc -D xvda,xvde,xvdf,xvdg -N eth0 -C total —  Using a utility called dstat, we can see what’s going on
  • 31. Active Duplicate Enhancements --dsk/xvda----dsk/xvde----dsk/xvdf----dsk/xvdg- --net/eth0- ----total-cpu-usage---read writ: read writ: read writ: read writ| recv send||usr sys idl wai hiq siq 0 0 : 0 35M: 0 32M:8192B 34M| 13M 289k|| 1 0 90 9 0 0 0 0 : 0 36M: 0 39M: 0 36M| 109M 2168k|| 1 1 97 1 0 1 0 0 : 0 37M: 32k 37M: 32k 38M| 116M 2299k|| 1 1 97 0 0 empty datafile 1 0 0 : 0 38M: 0 37M: 0 37M| 116M 2345k|| 1 1 97 0 0 1 0 0 : 32k 21M: 96k 22M: 56k 21M| 65M 1311k|| 0 1 97 1 0 0 0 0 : 16k 0 : 16k 16k: 32k 16k| 52B 508B|| 0 0 100 0 0 0 0 0 : 16k 4096B: 32k 0 : 48k 0 | 11k 10k|| 0 0 100 0 0 0 0 4096B: 0 46M: 32k 44M: 16k 44M| 548B 743B|| 1 0 85 14 0 0 0 0 : 0 44M: 0 46M: 24k 46M| 532B 1220B|| 1 0 84 15 0 0 0 16k: 0 26M: 0 29M:8192B 29M|1065k 26k|| 1 0 90 9 0 0 0 0 : 16k 48M: 16k 45M: 32k 42M| 296B 450B|| non-empty14 1 0 85 0 datafile 0 0 0 : 0 46M: 0 46M: 0 46M| 426B 759B|| 1 0 84 15 0 0 0 0 : 0 43M: 0 46M: 0 49M| 584B 434B|| 1 0 85 14 0 0
  • 32. A Few More Things… —  Recover/Restore files over network —  Image copy backups support section size —  Storage snapshot optimizations —  Specify that duplicated database does not open after duplication
  • 33. Questions? Contact Information: Andy Colvin email - andy.colvin@enkitec.com web - http://www.enkitec.com blog- http://blog.oracle-ninja.com twitter - @acolvin