SlideShare a Scribd company logo
1 of 3
Download to read offline
PREPARED BY RAVI KUMAR LANKE Page 1
Oracle RMAN
One (if not the, most important) jobs of the Oracle DBA is to ensure that the databases in
their care are protected. Databases, or data in the database, can be lost through a variety of
ways including:
* User error
* Hardware failure
* Software failure
* Disasters
* Application errors
To protect your database, you will need to know how to back it up and you will need to
know how to recover your database. Backup and recovery is what this last chapter is all
about. Backup and recovery can be a very difficult and complex topic, for there are a
number of different options for you to choose from when it comes to backing up a
database. In this chapter, we aim to set you on the right course, showing you how to
perform basic database backup and recovery operations.
In this chapter we will use the Oracle RMAN tool. It comes with the Oracle RDBMS and
it’s free. In this chapter we will cover:
* Backing up your database with RMAN
* Restoring your database with RMAN
So, without further delay, let’s get started on getting your database backed up.
Backup Your Database with RMAN
Database backups with RMAN are actually quite easy. Your database can be in one of two
modes, ARCHIVELOG or NOARCHIVELOG mode. The mode your database is in
determines what kinds of backups you can perform on your database. In this section we
will cover the following topics:
Starting RMAN
The RMAN client is started from the operating system prompt. To use RMAN, simply set
the Oracle environment as you would before you use any other Oracle client (like
SQL*Plus). Once the environment is set, then you start RMAN as seen in this example:
PREPARED BY RAVI KUMAR LANKE Page 2
rman target=/
Once you have started RMAN you will find yourself at the RMAN prompt. We are then
ready to begin our database backup.
Perform an Offline (Cold) Backup of your Database with RMAN
In this section we will show you how to perform an offline (or cold) backup using RMAN.
This will require that the database be down (that’s why it’s called an offline backup).
Oracle supports online backups also, and we will be covering these shortly.
Before we can use RMAN we need to configure a few settings. In this section we will look at
configuring the database for our backup, and then we will proceed to do the backup.
Configure Oracle and RMAN for Backup
Before we can use RMAN we will need to configure a few settings. In this section we will
assume:
1. That you will be backing up to a file system called /u01/app/oracle/backup. You will need
to create this file system if it does not already exist.
2. That you are using an SPFILE.
Note that if you created your database as we described earlier in the book, you should
already be using an SPFILE.
The configuration is pretty basic. First, we need to configure a couple of database
parameters. These parameters will configure the Flash Recovery Area of the database.
This is the location that all the disk backups will be made to. To configure the flash
recovery area we will use the alter system command to set the value of two database
parameters:
* db_recovery_file_dest – Determines the location of the flash recovery area.
* db_recovery_file_dest_size – Determines how much space can be used by Oracle in the
flash recovery area.
We will configure the flash recovery area to the value of /u01/app/oracle/backup, and we
will assign it a 2 Gigabyte limit. Note! Oracle flash recovery area re-named to fast
recovery area
You may need to assign your flash recovery area more space depending on the following
factors:
PREPARED BY RAVI KUMAR LANKE Page 3
* The size of your database
* The number of backups you want to keep
* If you are running your database in ARCHIVELOG mode (which we will discuss later in
this chapter).
Here is an example of configuring the flash recovery area for the settlings listed previously.
This assumes your database is using a SPFILE which we discussed in earlier chapters:
Alter system set db_recovery_file_dest=’/u01/app/oracle/backup’;
Alter system set db_recovery_file_dest_size=2G;
We will also want to set a couple of RMAN settings before we do our first backup. Start
RMAN as detailed earlier in this section with:
$ rman target /
Now, we want to configure the following:
* Automatic backups of the control file and SPFILE.
* Retention policy to a redundancy of 2
Next, we can use the RMAN configure command to configure these settings as seen in this
example:
-- Configure the retention policy to redundancy of 2.
-- This means RMAN will try to keep 2 copies of the database
backups.
RMAN> configure retention policy to redundancy 2;
-- Configure automated backups of the control file and SPFILE.
RMAN>configure controlfile autobackup on;
Now that RMAN and the database are configured, we are ready to proceed to backup the
database.

More Related Content

Viewers also liked

Integrating Twitter into Education
Integrating Twitter into EducationIntegrating Twitter into Education
Integrating Twitter into EducationJamie Edwards
 
Corporate Brochure Dynamis 2012
Corporate Brochure Dynamis 2012Corporate Brochure Dynamis 2012
Corporate Brochure Dynamis 2012Dynamis
 
Trio Kwek-Kwek
Trio Kwek-KwekTrio Kwek-Kwek
Trio Kwek-Kwekdhika
 
Developing a framework for managing academic standard dr melinda-day 1-session3
Developing a framework for managing academic standard dr melinda-day 1-session3Developing a framework for managing academic standard dr melinda-day 1-session3
Developing a framework for managing academic standard dr melinda-day 1-session3Fadi Nijem , MBA, MSc, CM, CPT, CCSE
 
Are 30 year fixed mortgages safe?
Are 30 year fixed mortgages safe?Are 30 year fixed mortgages safe?
Are 30 year fixed mortgages safe?Eric Kandell
 
Ajustament de Reaccions Redox (2)
Ajustament de Reaccions Redox (2)Ajustament de Reaccions Redox (2)
Ajustament de Reaccions Redox (2)mrosa berenguer
 
Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18
Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18
Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18Urska Saletinger
 
Pfs customer beef catelog 110510
Pfs customer beef catelog 110510Pfs customer beef catelog 110510
Pfs customer beef catelog 110510Jeff Cattell
 
Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...
Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...
Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...Kavita Lakhani
 
СПА-Форум в Новосибирске, Мир новых возможностей Интернета
СПА-Форум в Новосибирске, Мир новых возможностей ИнтернетаСПА-Форум в Новосибирске, Мир новых возможностей Интернета
СПА-Форум в Новосибирске, Мир новых возможностей ИнтернетаFert
 
How To Shop For A Low VA Loan Rate
How To Shop For A Low VA Loan RateHow To Shop For A Low VA Loan Rate
How To Shop For A Low VA Loan RateEric Kandell
 
Scholars and knowledge in the 21st century
Scholars and knowledge in the 21st centuryScholars and knowledge in the 21st century
Scholars and knowledge in the 21st centuryRoxanne Missingham
 
Ragionamenti 11 07 74
Ragionamenti 11 07 74Ragionamenti 11 07 74
Ragionamenti 11 07 74Self-Employed
 

Viewers also liked (17)

Integrating Twitter into Education
Integrating Twitter into EducationIntegrating Twitter into Education
Integrating Twitter into Education
 
Corporate Brochure Dynamis 2012
Corporate Brochure Dynamis 2012Corporate Brochure Dynamis 2012
Corporate Brochure Dynamis 2012
 
Trio Kwek-Kwek
Trio Kwek-KwekTrio Kwek-Kwek
Trio Kwek-Kwek
 
Developing a framework for managing academic standard dr melinda-day 1-session3
Developing a framework for managing academic standard dr melinda-day 1-session3Developing a framework for managing academic standard dr melinda-day 1-session3
Developing a framework for managing academic standard dr melinda-day 1-session3
 
Are 30 year fixed mortgages safe?
Are 30 year fixed mortgages safe?Are 30 year fixed mortgages safe?
Are 30 year fixed mortgages safe?
 
Ajustament de Reaccions Redox (2)
Ajustament de Reaccions Redox (2)Ajustament de Reaccions Redox (2)
Ajustament de Reaccions Redox (2)
 
Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18
Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18
Veliki povratek Myspacea_Marketing Magazin_nov2012_st.378_str.18
 
Excalibur
ExcaliburExcalibur
Excalibur
 
Pfs customer beef catelog 110510
Pfs customer beef catelog 110510Pfs customer beef catelog 110510
Pfs customer beef catelog 110510
 
Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...
Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...
Kavita lakhani- Advanced Program in Digital Marketing - Project Submission AP...
 
СПА-Форум в Новосибирске, Мир новых возможностей Интернета
СПА-Форум в Новосибирске, Мир новых возможностей ИнтернетаСПА-Форум в Новосибирске, Мир новых возможностей Интернета
СПА-Форум в Новосибирске, Мир новых возможностей Интернета
 
Noticias Tel Nov
Noticias Tel NovNoticias Tel Nov
Noticias Tel Nov
 
How To Shop For A Low VA Loan Rate
How To Shop For A Low VA Loan RateHow To Shop For A Low VA Loan Rate
How To Shop For A Low VA Loan Rate
 
Leveraging ArcGIS Online for Public Utility Data
Leveraging ArcGIS Online for Public Utility DataLeveraging ArcGIS Online for Public Utility Data
Leveraging ArcGIS Online for Public Utility Data
 
Scholars and knowledge in the 21st century
Scholars and knowledge in the 21st centuryScholars and knowledge in the 21st century
Scholars and knowledge in the 21st century
 
Nuh'un Gemisinde Hayvanlar Alemi
Nuh'un Gemisinde Hayvanlar AlemiNuh'un Gemisinde Hayvanlar Alemi
Nuh'un Gemisinde Hayvanlar Alemi
 
Ragionamenti 11 07 74
Ragionamenti 11 07 74Ragionamenti 11 07 74
Ragionamenti 11 07 74
 

More from Ravi Kumar Lanke

Creating and configuring vnc sessions
Creating and configuring vnc sessionsCreating and configuring vnc sessions
Creating and configuring vnc sessionsRavi Kumar Lanke
 
Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...Ravi Kumar Lanke
 
Exporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle databaseExporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle databaseRavi Kumar Lanke
 
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...Ravi Kumar Lanke
 
Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server Ravi Kumar Lanke
 
Enabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bitEnabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bitRavi Kumar Lanke
 
Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...Ravi Kumar Lanke
 
Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7Ravi Kumar Lanke
 
How to find ip and mac address
How to find ip and mac addressHow to find ip and mac address
How to find ip and mac addressRavi Kumar Lanke
 
Step by step deployment of sampleappv406
Step by step deployment of  sampleappv406Step by step deployment of  sampleappv406
Step by step deployment of sampleappv406Ravi Kumar Lanke
 
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bitInstalling and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bitRavi Kumar Lanke
 
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0Ravi Kumar Lanke
 
Installing my sql on windows
Installing my sql on windowsInstalling my sql on windows
Installing my sql on windowsRavi Kumar Lanke
 
How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...Ravi Kumar Lanke
 
How to disable and enable task manager
How to disable and enable task managerHow to disable and enable task manager
How to disable and enable task managerRavi Kumar Lanke
 
Deploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame worksDeploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame worksRavi Kumar Lanke
 
Installing oracle endeca commerce
Installing oracle endeca commerceInstalling oracle endeca commerce
Installing oracle endeca commerceRavi Kumar Lanke
 
How to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise mangerHow to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise mangerRavi Kumar Lanke
 
How to change the obiee 11g browser title
How to change the obiee 11g browser titleHow to change the obiee 11g browser title
How to change the obiee 11g browser titleRavi Kumar Lanke
 
Creating new service name for oracle database
Creating new service name for oracle databaseCreating new service name for oracle database
Creating new service name for oracle databaseRavi Kumar Lanke
 

More from Ravi Kumar Lanke (20)

Creating and configuring vnc sessions
Creating and configuring vnc sessionsCreating and configuring vnc sessions
Creating and configuring vnc sessions
 
Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...Copying files between linux machines using scp and ssh without linux user pas...
Copying files between linux machines using scp and ssh without linux user pas...
 
Exporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle databaseExporting schema to dmp file and importing it into other oracle database
Exporting schema to dmp file and importing it into other oracle database
 
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
Installing Endeca Server, Studio, Integrator ETL , Commerce and Platform Serv...
 
Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server Installing solaris on virtual box and installing weblogic server
Installing solaris on virtual box and installing weblogic server
 
Enabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bitEnabling remote desktop connection on windows 7 64 bit
Enabling remote desktop connection on windows 7 64 bit
 
Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...Connecting to the remote database through sql developer without database clie...
Connecting to the remote database through sql developer without database clie...
 
Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7Setting home path class path and path for java on windows 7
Setting home path class path and path for java on windows 7
 
How to find ip and mac address
How to find ip and mac addressHow to find ip and mac address
How to find ip and mac address
 
Step by step deployment of sampleappv406
Step by step deployment of  sampleappv406Step by step deployment of  sampleappv406
Step by step deployment of sampleappv406
 
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bitInstalling and configuring informatica 910 and dac 11 g on windows 64 bit
Installing and configuring informatica 910 and dac 11 g on windows 64 bit
 
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
Installing bi applications 7.9.6.4 on obiee 11.1.1.7.0
 
Installing my sql on windows
Installing my sql on windowsInstalling my sql on windows
Installing my sql on windows
 
How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...How to prevent access to command prompt and registry editing tools and window...
How to prevent access to command prompt and registry editing tools and window...
 
How to disable and enable task manager
How to disable and enable task managerHow to disable and enable task manager
How to disable and enable task manager
 
Deploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame worksDeploying an application into oracle endeca tools and frame works
Deploying an application into oracle endeca tools and frame works
 
Installing oracle endeca commerce
Installing oracle endeca commerceInstalling oracle endeca commerce
Installing oracle endeca commerce
 
How to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise mangerHow to deploy rpd and catalog without enterprise manger
How to deploy rpd and catalog without enterprise manger
 
How to change the obiee 11g browser title
How to change the obiee 11g browser titleHow to change the obiee 11g browser title
How to change the obiee 11g browser title
 
Creating new service name for oracle database
Creating new service name for oracle databaseCreating new service name for oracle database
Creating new service name for oracle database
 

Recently uploaded

Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Recently uploaded (20)

Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Oracle rman

  • 1. PREPARED BY RAVI KUMAR LANKE Page 1 Oracle RMAN One (if not the, most important) jobs of the Oracle DBA is to ensure that the databases in their care are protected. Databases, or data in the database, can be lost through a variety of ways including: * User error * Hardware failure * Software failure * Disasters * Application errors To protect your database, you will need to know how to back it up and you will need to know how to recover your database. Backup and recovery is what this last chapter is all about. Backup and recovery can be a very difficult and complex topic, for there are a number of different options for you to choose from when it comes to backing up a database. In this chapter, we aim to set you on the right course, showing you how to perform basic database backup and recovery operations. In this chapter we will use the Oracle RMAN tool. It comes with the Oracle RDBMS and it’s free. In this chapter we will cover: * Backing up your database with RMAN * Restoring your database with RMAN So, without further delay, let’s get started on getting your database backed up. Backup Your Database with RMAN Database backups with RMAN are actually quite easy. Your database can be in one of two modes, ARCHIVELOG or NOARCHIVELOG mode. The mode your database is in determines what kinds of backups you can perform on your database. In this section we will cover the following topics: Starting RMAN The RMAN client is started from the operating system prompt. To use RMAN, simply set the Oracle environment as you would before you use any other Oracle client (like SQL*Plus). Once the environment is set, then you start RMAN as seen in this example:
  • 2. PREPARED BY RAVI KUMAR LANKE Page 2 rman target=/ Once you have started RMAN you will find yourself at the RMAN prompt. We are then ready to begin our database backup. Perform an Offline (Cold) Backup of your Database with RMAN In this section we will show you how to perform an offline (or cold) backup using RMAN. This will require that the database be down (that’s why it’s called an offline backup). Oracle supports online backups also, and we will be covering these shortly. Before we can use RMAN we need to configure a few settings. In this section we will look at configuring the database for our backup, and then we will proceed to do the backup. Configure Oracle and RMAN for Backup Before we can use RMAN we will need to configure a few settings. In this section we will assume: 1. That you will be backing up to a file system called /u01/app/oracle/backup. You will need to create this file system if it does not already exist. 2. That you are using an SPFILE. Note that if you created your database as we described earlier in the book, you should already be using an SPFILE. The configuration is pretty basic. First, we need to configure a couple of database parameters. These parameters will configure the Flash Recovery Area of the database. This is the location that all the disk backups will be made to. To configure the flash recovery area we will use the alter system command to set the value of two database parameters: * db_recovery_file_dest – Determines the location of the flash recovery area. * db_recovery_file_dest_size – Determines how much space can be used by Oracle in the flash recovery area. We will configure the flash recovery area to the value of /u01/app/oracle/backup, and we will assign it a 2 Gigabyte limit. Note! Oracle flash recovery area re-named to fast recovery area You may need to assign your flash recovery area more space depending on the following factors:
  • 3. PREPARED BY RAVI KUMAR LANKE Page 3 * The size of your database * The number of backups you want to keep * If you are running your database in ARCHIVELOG mode (which we will discuss later in this chapter). Here is an example of configuring the flash recovery area for the settlings listed previously. This assumes your database is using a SPFILE which we discussed in earlier chapters: Alter system set db_recovery_file_dest=’/u01/app/oracle/backup’; Alter system set db_recovery_file_dest_size=2G; We will also want to set a couple of RMAN settings before we do our first backup. Start RMAN as detailed earlier in this section with: $ rman target / Now, we want to configure the following: * Automatic backups of the control file and SPFILE. * Retention policy to a redundancy of 2 Next, we can use the RMAN configure command to configure these settings as seen in this example: -- Configure the retention policy to redundancy of 2. -- This means RMAN will try to keep 2 copies of the database backups. RMAN> configure retention policy to redundancy 2; -- Configure automated backups of the control file and SPFILE. RMAN>configure controlfile autobackup on; Now that RMAN and the database are configured, we are ready to proceed to backup the database.