SlideShare une entreprise Scribd logo
1  sur  34
Agenda
RMAN Architecture
 Why Use RMAN?
 Implementation Decisions
 RMAN Oracle9i New Features

RMAN Architecture




Recovery Manager (RMAN) is a tool that
can be used for Backup, Restore, and
Recovery operations on your target
database
Standard utility when installing Oracle
binaries
• No extra license required
• Only works on 8.0 or higher
• Some features only implemented if using Enterprise
Edition
RMAN Architecture (continued)

Target
Database
datafiles

controlfiles

Archived
redo logs

Server
Processes

rman

Server
Processes
Server
Processes

Backup files
on disk

Recovery
Catalog
Database
(optional)

Media
Management
(optional)

Backup
media
RMAN Architecture (continued)


Target Database
• Database to be backed up, restored,or recovered
• Datafiles, controlfies, archived redo files are backed
up



rman executable
• Utility you invoke for backup, restore, and recovery
operations



Processes and Channels
• RMAN uses processes to communicate with target
and catalog databases
• A process opened for I/O is called a channel
RMAN Architecture (continued)


Backups, Backup Sets, Backup Pieces
•
•
•
•



Backups are made up of Backup Sets
Backup Sets are made up of Backup Pieces
Backup pieces are the physical backup files
rman is only utility that can read/write from physical
files

Target database control files
• Contain information about RMAN backup operations
• SQL> alter session set events „immediate trace
name controlf level 10‟;
 Backup sets, pieces, datafiles
 Configuration settings (Oracle9i only)
RMAN Architecture (continued)


What‟s the Catalog Database?
• A separate database usually on a separate host from
target database
• Schema that has objects that store data about
backup, restore, and recovery activities



Catalog Database (optional)
• Optional because much of same meta data in
catalog is always stored in the target control file



Catalog does not contain backup files
RMAN Architecture (continued)


Media Management Layer (MML)
•
•

•
•

•

3rd party piece of software
Tracks what files have been written to
what tapes
MML required if backing up files to tape
Optional because you can take backup
directly to disk
Can be frustrating to setup
So Why Use RMAN?


Incremental backups
• Full will backup only used blocks
• Incremental scheme to back up
changed blocks
• Backup resources correlate to
transaction activity and not the
size of the database
RMAN Advantages (continued)


Tablespaces not put in backup mode
• No extra logging of full blocks to
online redo logs during backup
• With RMAN a database process is
doing the copy
• RMAN does a head/tail check on
each block
RMAN Advantages (continued)


Automatic checking for corruption
• Database block
• Archived redo log

RMAN reads every block and checks
for corruption
 Corrupt blocks information logged


• v$backup_corruption
• v$copy_corruption
RMAN Advantages (continued)


Configurable I/O characteristics
•

•
•

Configure multiple I/O channels to
process in parallel backup and restore
commands
Set max file size
Set max read rate
RMAN Advantages (continued)


Logging of all backup operations
•

•

RMAN writes what/when/where to
target controlfile (and catalog if using)
Listing and reporting commands
Implementation Decisions





Backup to disk (no MML required)
Backup to tape (must use MML)
Use RMAN with catalog
Use RMAN without catalog
Most Moving Parts
Target
Database
datafiles

controlfiles

Archived
redo logs

Server
Processes

rman

Server
Processes
Server
Processes

Recovery
Catalog
Database

MML

Backup
media
Simplest Implementation
Target
Database
datafiles

controlfiles

Archived
redo logs

rman

Server
Processes
Server
Processes

Backup files
on disk
Disk Based Backup
Set channel type disk
 Let O/S backup scrape files to tape
 Sometime after O/S backup delete
RMAN backup files from disk
 Advantages of Disk


• Easier to setup (no MML)
• Fewer moving parts
• Disk access faster
Disk Based Backup
(continued)


Disadvantages of Disk
•

If RMAN backup file has been deleted
from disk, and if needed during a
restore, DBA has to tell Operator which
file needs to be retrieved and what day
it was backed up
Tape Based Backup


Configure RMAN to backup to tape
• Implement MML
• Set channel type sbt_tape



Advantages of Tape
• Tape storage is cheaper than disk
• Might be only option for a large database
• MML keeps track of long history of what file
is on what tape
Tape Based Backup
(continued)


Disadvantages of Tape
•
•

MML setup can be frustrating
And MML adds complexity
Why Use a Catalog?


Gives you more flexibility in certain
situations



Oracle8i reasons to use a catalog
•Restoring controlfile
•Marking backup sets unavailable
•Listing commands
Why Use a Catalog?
(continued)


8i and 9i Reasons to Use Catalog
•



If not using catalog, finite amount of days
of RMAN backup operations stored
•
•



One centralized repository for all your target
databases

control_file_record_keep_time has a default
of 7 days
Could be an issue for a database with
hundreds of datafiles

With catalog you can store data for long
periods of time
Catalog Disadvantages
Another moving part
 Another database to maintain,
monitor, backup, etc.
 Can get complex if many different
versions of targets


• One catalog, one schema
• One catalog, multiple schemas
• Different catalogs
If Not Using a Catalog
May need to increase init.ora
control_file_record_keep_time
 In 8i, ensure that you backup your
controlfile outside of RMAN


SQL> alter database backup controlfile to
„<path>/<filename>‟;
RMAN 9i New Features
RESTORE command optimized
 Block level recovery
 New ways to handle archived redo
 Configurable Persistent Settings


•Autobackup of controlfile
•Optimization
•I/O channel characteristics


Backup/Restore syntax simplified
Oracle9i New Features


Can easily give fellow DBA heart attack
•



Pick a paranoid one

Setup
•
•
•

No Server Manager in Oracle9i
Create a file $ORACLE_HOME/bin/svrmgrl
chmod +x

echo “ “
echo “SVRMGR> ORA-99999: deleting all datafiles…”
sleep 2
RMAN 9i New Features


RESTORE command optimized



RMAN restore now does:
• Checks if file is on disk
• Checks file header
• If passes checks, does not restore



Can override w/FORCE option
RMAN 9i New Features
Block Level Recovery
 Detecting block level corruption


•v$backup_corruption
•trace files
•dbverify
RMAN> blockrecover datafile 2 block 30;
RMAN 9i New Features


Block Level Recovery (continued)
•

•
•

•

Appropriate for small amounts of
corruption
Could reduce mean time to recovery
Does not replace datafile
restore/recovery
Gives DBA another restore/recovery
tool
RMAN 9i Archive Redo
Backups


New BACKUP … PLUS ARCHIVELOG
command

RMAN> backup database plus archivelog;
1.
2.
3.
4.

5.

Switches online redo logs
Backup archivelog all;
Backs up files database datafiles
Switches online redo logs
Backs up any archived redo logs generated
during backup
9i RMAN Controlfile Restore




New CONFIGURE command
Settings stored in target controlfile
Enable autobackup controlfile

RMAN> configure controlfile autobackup on;



Controlfile automatically backed up with
BACKUP and COPY commands
RMAN controlfile restore can then be done
without connecting to catalog
RMAN 9i New Features
(continued)


Configure optimization

RMAN> configure backup optimization on;



If a file has been backed up and
hasn‟t changed since last
backup, RMAN will skip the file
RMAN 9i New Features
(continued)
Configure persistent channel I/O
settings
 Persist until you change or clear


RMAN> configure default device type to disk;
RMAN> configure device type disk parallelism 2;
RMAN> configure channel device type disk format
/ora01/brdstn/rman_%U.bus;
RMAN> show all;
RMAN 9i New Features
(continued)
Syntax simplified for BACKUP and
RESTORE commands
 No longer required to wrap within
RUN{} command
 Syntax now can be as simple as:


RMAN> backup database;
RMAN> restore database;
RMAN Summary
RMAN has significant advantages
 Many different ways to implement
 Enhancements to RMAN in Oracle9i
 Q&A


Contenu connexe

Tendances

Collaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mysteryCollaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mysteryNelson Calero
 
Collaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mysteryCollaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mysteryNelson Calero
 
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskAlan Williams
 
Server control utility reference
Server control utility referenceServer control utility reference
Server control utility referenceFemi Adeyemi
 
DR-to-the-Cloud Best Practices
DR-to-the-Cloud Best PracticesDR-to-the-Cloud Best Practices
DR-to-the-Cloud Best PracticesRackspace
 
Time Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOSTime Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOSLaura Hood
 
SAP LVM Integration with SAP BPA
SAP LVM Integration with SAP BPASAP LVM Integration with SAP BPA
SAP LVM Integration with SAP BPAAliter Consulting
 
Presentation backup and recovery best practices for very large databases (v...
Presentation   backup and recovery best practices for very large databases (v...Presentation   backup and recovery best practices for very large databases (v...
Presentation backup and recovery best practices for very large databases (v...xKinAnx
 

Tendances (20)

Les 19 space_db
Les 19 space_dbLes 19 space_db
Les 19 space_db
 
Les 00 intro
Les 00 introLes 00 intro
Les 00 intro
 
Les 09 diag
Les 09 diagLes 09 diag
Les 09 diag
 
Les 18 space
Les 18 spaceLes 18 space
Les 18 space
 
Collaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mysteryCollaborate 2012 - RMAN Eliminate the mystery
Collaborate 2012 - RMAN Eliminate the mystery
 
Les 14 perf_db
Les 14 perf_dbLes 14 perf_db
Les 14 perf_db
 
Les 05 create_bu
Les 05 create_buLes 05 create_bu
Les 05 create_bu
 
Les 12 fl_db
Les 12 fl_dbLes 12 fl_db
Les 12 fl_db
 
Les 11 fl2
Les 11 fl2Les 11 fl2
Les 11 fl2
 
Collaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mysteryCollaborate 2012 - RMAN eliminate the mystery
Collaborate 2012 - RMAN eliminate the mystery
 
Les 08 tune_rman
Les 08 tune_rmanLes 08 tune_rman
Les 08 tune_rman
 
Oracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ AutodeskOracle Database Backups and Disaster Recovery @ Autodesk
Oracle Database Backups and Disaster Recovery @ Autodesk
 
Server control utility reference
Server control utility referenceServer control utility reference
Server control utility reference
 
DR-to-the-Cloud Best Practices
DR-to-the-Cloud Best PracticesDR-to-the-Cloud Best Practices
DR-to-the-Cloud Best Practices
 
Xpp b tspitr
Xpp b tspitrXpp b tspitr
Xpp b tspitr
 
Les 10 fl1
Les 10 fl1Les 10 fl1
Les 10 fl1
 
Time Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOSTime Travelling With DB2 10 For zOS
Time Travelling With DB2 10 For zOS
 
SAP LVM Integration with SAP BPA
SAP LVM Integration with SAP BPASAP LVM Integration with SAP BPA
SAP LVM Integration with SAP BPA
 
Presentation backup and recovery best practices for very large databases (v...
Presentation   backup and recovery best practices for very large databases (v...Presentation   backup and recovery best practices for very large databases (v...
Presentation backup and recovery best practices for very large databases (v...
 
SAP Post Copy Automation
SAP Post Copy AutomationSAP Post Copy Automation
SAP Post Copy Automation
 

En vedette (6)

Diapnoi
DiapnoiDiapnoi
Diapnoi
 
Log miner in oracle.ppt
Log miner in oracle.pptLog miner in oracle.ppt
Log miner in oracle.ppt
 
Dbms objective and subjective notes
Dbms objective and subjective notesDbms objective and subjective notes
Dbms objective and subjective notes
 
Anapnoi
AnapnoiAnapnoi
Anapnoi
 
Store programs
Store programsStore programs
Store programs
 
γιατί, κύριε, οι τρεις ιεράρχες
γιατί, κύριε, οι τρεις ιεράρχεςγιατί, κύριε, οι τρεις ιεράρχες
γιατί, κύριε, οι τρεις ιεράρχες
 

Similaire à Rmanpres

Rman Presentation
Rman PresentationRman Presentation
Rman PresentationRick van Ek
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recoveryasifmalik110
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)Satishbabu Gunukula
 
Dueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixDueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixKyle Hailey
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery ProcedureAnar Godjaev
 
Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Dan Glasscock
 
You most probably dont need an RMAN catalog database
You most probably dont need an RMAN catalog databaseYou most probably dont need an RMAN catalog database
You most probably dont need an RMAN catalog databaseYury Velikanov
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oraclesadegh salehi
 
Veeam backup Oracle DB in a VM is easy and reliable way to protect data
Veeam backup Oracle DB in a VM is easy and reliable way to protect dataVeeam backup Oracle DB in a VM is easy and reliable way to protect data
Veeam backup Oracle DB in a VM is easy and reliable way to protect dataAleks Y
 
AUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointAUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointMichael Noel
 
Les 02 Config Rec
Les 02 Config RecLes 02 Config Rec
Les 02 Config Recvivaankumar
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rmanitsabidhussain
 
MySQL enterprise backup overview
MySQL enterprise backup overviewMySQL enterprise backup overview
MySQL enterprise backup overview郁萍 王
 
Presentation announcing oracle secure backup 10.3
Presentation   announcing oracle secure backup 10.3Presentation   announcing oracle secure backup 10.3
Presentation announcing oracle secure backup 10.3xKinAnx
 
Databaseadmonfundamentalitprosdcchapter6
Databaseadmonfundamentalitprosdcchapter6Databaseadmonfundamentalitprosdcchapter6
Databaseadmonfundamentalitprosdcchapter6Julián Castiblanco
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1Dan Glasscock
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basicsShahed Mohamed
 

Similaire à Rmanpres (20)

Rman Presentation
Rman PresentationRman Presentation
Rman Presentation
 
Backups And Recovery
Backups And RecoveryBackups And Recovery
Backups And Recovery
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Dueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixDueling duplications RMAN vs Delphix
Dueling duplications RMAN vs Delphix
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 
Less15 Backups
Less15 BackupsLess15 Backups
Less15 Backups
 
Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018Oracle Backup Solutions Overview August 2018
Oracle Backup Solutions Overview August 2018
 
You most probably dont need an RMAN catalog database
You most probably dont need an RMAN catalog databaseYou most probably dont need an RMAN catalog database
You most probably dont need an RMAN catalog database
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Veeam backup Oracle DB in a VM is easy and reliable way to protect data
Veeam backup Oracle DB in a VM is easy and reliable way to protect dataVeeam backup Oracle DB in a VM is easy and reliable way to protect data
Veeam backup Oracle DB in a VM is easy and reliable way to protect data
 
AUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointAUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePoint
 
Les 02 Config Rec
Les 02 Config RecLes 02 Config Rec
Les 02 Config Rec
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
 
MySQL enterprise backup overview
MySQL enterprise backup overviewMySQL enterprise backup overview
MySQL enterprise backup overview
 
Presentation announcing oracle secure backup 10.3
Presentation   announcing oracle secure backup 10.3Presentation   announcing oracle secure backup 10.3
Presentation announcing oracle secure backup 10.3
 
Databaseadmonfundamentalitprosdcchapter6
Databaseadmonfundamentalitprosdcchapter6Databaseadmonfundamentalitprosdcchapter6
Databaseadmonfundamentalitprosdcchapter6
 
Less15 backups
Less15 backupsLess15 backups
Less15 backups
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 
Database backup and recovery basics
Database backup and recovery basicsDatabase backup and recovery basics
Database backup and recovery basics
 
Aem maintenance
Aem maintenanceAem maintenance
Aem maintenance
 

Plus de Hitesh Kumar Markam (16)

Concepts of Distributed Computing & Cloud Computing
Concepts of Distributed Computing & Cloud Computing Concepts of Distributed Computing & Cloud Computing
Concepts of Distributed Computing & Cloud Computing
 
Data guard
Data guardData guard
Data guard
 
Tunning overview
Tunning overviewTunning overview
Tunning overview
 
Resize sga
Resize sgaResize sga
Resize sga
 
Rman offline backup
Rman offline backupRman offline backup
Rman offline backup
 
Oracle shutdown
Oracle shutdownOracle shutdown
Oracle shutdown
 
Dba in 2 days unit no 9
Dba in 2 days unit no 9Dba in 2 days unit no 9
Dba in 2 days unit no 9
 
5 backuprecoveryw imp
5 backuprecoveryw imp5 backuprecoveryw imp
5 backuprecoveryw imp
 
Pl sql
Pl sqlPl sql
Pl sql
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
Dba in 2 days
Dba in 2 daysDba in 2 days
Dba in 2 days
 
Creating database
Creating databaseCreating database
Creating database
 
1 plsql introduction1
1 plsql introduction11 plsql introduction1
1 plsql introduction1
 
javascript code for mysql database connection
javascript code for mysql database connectionjavascript code for mysql database connection
javascript code for mysql database connection
 
Advanced Planning And Optimization
Advanced Planning And OptimizationAdvanced Planning And Optimization
Advanced Planning And Optimization
 

Dernier

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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 

Dernier (20)

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...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
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.
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
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
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

Rmanpres

  • 1. Agenda RMAN Architecture  Why Use RMAN?  Implementation Decisions  RMAN Oracle9i New Features 
  • 2. RMAN Architecture   Recovery Manager (RMAN) is a tool that can be used for Backup, Restore, and Recovery operations on your target database Standard utility when installing Oracle binaries • No extra license required • Only works on 8.0 or higher • Some features only implemented if using Enterprise Edition
  • 3. RMAN Architecture (continued) Target Database datafiles controlfiles Archived redo logs Server Processes rman Server Processes Server Processes Backup files on disk Recovery Catalog Database (optional) Media Management (optional) Backup media
  • 4. RMAN Architecture (continued)  Target Database • Database to be backed up, restored,or recovered • Datafiles, controlfies, archived redo files are backed up  rman executable • Utility you invoke for backup, restore, and recovery operations  Processes and Channels • RMAN uses processes to communicate with target and catalog databases • A process opened for I/O is called a channel
  • 5. RMAN Architecture (continued)  Backups, Backup Sets, Backup Pieces • • • •  Backups are made up of Backup Sets Backup Sets are made up of Backup Pieces Backup pieces are the physical backup files rman is only utility that can read/write from physical files Target database control files • Contain information about RMAN backup operations • SQL> alter session set events „immediate trace name controlf level 10‟;  Backup sets, pieces, datafiles  Configuration settings (Oracle9i only)
  • 6. RMAN Architecture (continued)  What‟s the Catalog Database? • A separate database usually on a separate host from target database • Schema that has objects that store data about backup, restore, and recovery activities  Catalog Database (optional) • Optional because much of same meta data in catalog is always stored in the target control file  Catalog does not contain backup files
  • 7. RMAN Architecture (continued)  Media Management Layer (MML) • • • • • 3rd party piece of software Tracks what files have been written to what tapes MML required if backing up files to tape Optional because you can take backup directly to disk Can be frustrating to setup
  • 8. So Why Use RMAN?  Incremental backups • Full will backup only used blocks • Incremental scheme to back up changed blocks • Backup resources correlate to transaction activity and not the size of the database
  • 9. RMAN Advantages (continued)  Tablespaces not put in backup mode • No extra logging of full blocks to online redo logs during backup • With RMAN a database process is doing the copy • RMAN does a head/tail check on each block
  • 10. RMAN Advantages (continued)  Automatic checking for corruption • Database block • Archived redo log RMAN reads every block and checks for corruption  Corrupt blocks information logged  • v$backup_corruption • v$copy_corruption
  • 11. RMAN Advantages (continued)  Configurable I/O characteristics • • • Configure multiple I/O channels to process in parallel backup and restore commands Set max file size Set max read rate
  • 12. RMAN Advantages (continued)  Logging of all backup operations • • RMAN writes what/when/where to target controlfile (and catalog if using) Listing and reporting commands
  • 13. Implementation Decisions     Backup to disk (no MML required) Backup to tape (must use MML) Use RMAN with catalog Use RMAN without catalog
  • 14. Most Moving Parts Target Database datafiles controlfiles Archived redo logs Server Processes rman Server Processes Server Processes Recovery Catalog Database MML Backup media
  • 16. Disk Based Backup Set channel type disk  Let O/S backup scrape files to tape  Sometime after O/S backup delete RMAN backup files from disk  Advantages of Disk  • Easier to setup (no MML) • Fewer moving parts • Disk access faster
  • 17. Disk Based Backup (continued)  Disadvantages of Disk • If RMAN backup file has been deleted from disk, and if needed during a restore, DBA has to tell Operator which file needs to be retrieved and what day it was backed up
  • 18. Tape Based Backup  Configure RMAN to backup to tape • Implement MML • Set channel type sbt_tape  Advantages of Tape • Tape storage is cheaper than disk • Might be only option for a large database • MML keeps track of long history of what file is on what tape
  • 19. Tape Based Backup (continued)  Disadvantages of Tape • • MML setup can be frustrating And MML adds complexity
  • 20. Why Use a Catalog?  Gives you more flexibility in certain situations  Oracle8i reasons to use a catalog •Restoring controlfile •Marking backup sets unavailable •Listing commands
  • 21. Why Use a Catalog? (continued)  8i and 9i Reasons to Use Catalog •  If not using catalog, finite amount of days of RMAN backup operations stored • •  One centralized repository for all your target databases control_file_record_keep_time has a default of 7 days Could be an issue for a database with hundreds of datafiles With catalog you can store data for long periods of time
  • 22. Catalog Disadvantages Another moving part  Another database to maintain, monitor, backup, etc.  Can get complex if many different versions of targets  • One catalog, one schema • One catalog, multiple schemas • Different catalogs
  • 23. If Not Using a Catalog May need to increase init.ora control_file_record_keep_time  In 8i, ensure that you backup your controlfile outside of RMAN  SQL> alter database backup controlfile to „<path>/<filename>‟;
  • 24. RMAN 9i New Features RESTORE command optimized  Block level recovery  New ways to handle archived redo  Configurable Persistent Settings  •Autobackup of controlfile •Optimization •I/O channel characteristics  Backup/Restore syntax simplified
  • 25. Oracle9i New Features  Can easily give fellow DBA heart attack •  Pick a paranoid one Setup • • • No Server Manager in Oracle9i Create a file $ORACLE_HOME/bin/svrmgrl chmod +x echo “ “ echo “SVRMGR> ORA-99999: deleting all datafiles…” sleep 2
  • 26. RMAN 9i New Features  RESTORE command optimized  RMAN restore now does: • Checks if file is on disk • Checks file header • If passes checks, does not restore  Can override w/FORCE option
  • 27. RMAN 9i New Features Block Level Recovery  Detecting block level corruption  •v$backup_corruption •trace files •dbverify RMAN> blockrecover datafile 2 block 30;
  • 28. RMAN 9i New Features  Block Level Recovery (continued) • • • • Appropriate for small amounts of corruption Could reduce mean time to recovery Does not replace datafile restore/recovery Gives DBA another restore/recovery tool
  • 29. RMAN 9i Archive Redo Backups  New BACKUP … PLUS ARCHIVELOG command RMAN> backup database plus archivelog; 1. 2. 3. 4. 5. Switches online redo logs Backup archivelog all; Backs up files database datafiles Switches online redo logs Backs up any archived redo logs generated during backup
  • 30. 9i RMAN Controlfile Restore    New CONFIGURE command Settings stored in target controlfile Enable autobackup controlfile RMAN> configure controlfile autobackup on;   Controlfile automatically backed up with BACKUP and COPY commands RMAN controlfile restore can then be done without connecting to catalog
  • 31. RMAN 9i New Features (continued)  Configure optimization RMAN> configure backup optimization on;  If a file has been backed up and hasn‟t changed since last backup, RMAN will skip the file
  • 32. RMAN 9i New Features (continued) Configure persistent channel I/O settings  Persist until you change or clear  RMAN> configure default device type to disk; RMAN> configure device type disk parallelism 2; RMAN> configure channel device type disk format /ora01/brdstn/rman_%U.bus; RMAN> show all;
  • 33. RMAN 9i New Features (continued) Syntax simplified for BACKUP and RESTORE commands  No longer required to wrap within RUN{} command  Syntax now can be as simple as:  RMAN> backup database; RMAN> restore database;
  • 34. RMAN Summary RMAN has significant advantages  Many different ways to implement  Enhancements to RMAN in Oracle9i  Q&A 