![Page 1: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/1.jpg)
15Copyright © 2005, Oracle. All rights reserved.
Performing Database Backups
![Page 2: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/2.jpg)
15-2 Copyright © 2005, Oracle. All rights reserved.
Objectives
After completing this lesson, you should be able to do the following:
• Create consistent database backups
• Back up your database without shutting it down
• Create incremental backups
• Automate database backups
• Monitor the flash recovery area
![Page 3: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/3.jpg)
15-3 Copyright © 2005, Oracle. All rights reserved.
Backup Solutions Overview
Backups can be performed by using:
• Recovery Manager
• Oracle Secure Backup
• A user-managed scenario
![Page 4: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/4.jpg)
15-4 Copyright © 2005, Oracle. All rights reserved.
Oracle Secure Backup
• Oracle Secure Backup and RMAN provide an end-to-end backup solution for Oracle environments:– Centralized backup management to tape for file
system data and the Oracle database– Provides most well-integrated media management
layer for RMAN backups– Backup of any data anywhere on the network
• A single technical support resource for the entire backup solution expedites problem resolution.
• This ensures reliable data protection at lower cost and complexity.
![Page 5: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/5.jpg)
15-5 Copyright © 2005, Oracle. All rights reserved.
User-Managed Backup
A user-managed scenario:
• It is a manual process of tracking backup needs and status.
• It requires the DBA to write scripts.
• Database files must be put in the
correct mode for backup.
• Operating system commands are
used to make backups of files.
![Page 6: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/6.jpg)
15-6 Copyright © 2005, Oracle. All rights reserved.
Terminology
• Backup strategy may include:– The entire database (whole)– A portion of the database (partial)
• Backup type may be:– All information from all data files (full)– Only information that has changed since some
previous backup (incremental)
• Backups mode may be:– Offline (consistent, cold)– Online (inconsistent, hot)
![Page 7: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/7.jpg)
15-7 Copyright © 2005, Oracle. All rights reserved.
Terminology
Backups may be stored as:
• Image copies
• Backup sets
Data file #2
Data file #3
Data file #4
Data file #5
Data file #1
Data file #6Image copies
Backup set
Data file #1 Data file #2
Data file #3 Data file #4
Data file #5 Data file #6
![Page 8: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/8.jpg)
15-8 Copyright © 2005, Oracle. All rights reserved.
Recovery Manager (RMAN)
Enterprise Manager uses Recovery Manager (RMAN) to perform backup and recovery operations. RMAN:
• Is a command-line client for advanced functions
• Has powerful control and scripting language
• Has a published API that enables interface with most popular backup software
• Backs up data, control, archived log, and server parameter files
• Backs up files to the disk or tape
![Page 9: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/9.jpg)
15-9 Copyright © 2005, Oracle. All rights reserved.
Configuring Backup Settings
![Page 10: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/10.jpg)
15-10 Copyright © 2005, Oracle. All rights reserved.
Configuring Backup Settings
![Page 11: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/11.jpg)
15-11 Copyright © 2005, Oracle. All rights reserved.
Scheduling Backups: Strategy
Select whole or partial database backup.
![Page 12: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/12.jpg)
15-12 Copyright © 2005, Oracle. All rights reserved.
Scheduling Backups: Options
![Page 13: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/13.jpg)
15-13 Copyright © 2005, Oracle. All rights reserved.
Scheduling Backups: Settings
![Page 14: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/14.jpg)
15-14 Copyright © 2005, Oracle. All rights reserved.
Scheduling Backups: Schedule
![Page 15: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/15.jpg)
15-15 Copyright © 2005, Oracle. All rights reserved.
Scheduling Backups: Review
Click Edit RMAN Script to review RMAN commands.
![Page 16: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/16.jpg)
15-16 Copyright © 2005, Oracle. All rights reserved.
Back Up the Control File to a Trace File
Control files have an additional backup option.
Control file trace backups may be used to recover from loss of all control files.
![Page 17: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/17.jpg)
15-18 Copyright © 2005, Oracle. All rights reserved.
Managing Backups
![Page 18: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/18.jpg)
15-19 Copyright © 2005, Oracle. All rights reserved.
Flash Recovery Area
Monitor the flash recovery area to:
• Configure flashback logging
• Size the recovery area
• View current space consumption
![Page 19: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/19.jpg)
15-20 Copyright © 2005, Oracle. All rights reserved.
Summary
In this lesson, you should have learned how to:
• Create consistent database backups
• Back up your database without shutting it down
• Create incremental backups
• Automate database backups
• Monitor the flash recovery area
![Page 20: 15 Copyright © 2005, Oracle. All rights reserved. Performing Database Backups](https://reader036.vdocument.in/reader036/viewer/2022062407/56649e685503460f94b63a24/html5/thumbnails/20.jpg)
15-21 Copyright © 2005, Oracle. All rights reserved.
Practice Overview:Creating Database Backups
This practice covers the following topics:
• Configuring your database for backups
• Backing up your database while the database is open for user activity
• Scheduling automatic nightly incremental backups for your database