Professional Documents
Culture Documents
Objectives
After completing this lesson, you should be able to do
the following:
Describe the RMAN repository and recovery
catalog
Describe the Media Management Library interface
Configure database parameters that affect RMAN
operations
Connect to the three different types of databases
by using RMAN
Configure two types of retention policies
Change RMAN default settings with CONFIGURE
2-2
2-3
How
How
How
How
2-4
Server
session
Target
database
Recovery
Manager
(RMAN)
Options
Auxiliary
database
Channel
Channel
Enterprise
Manager
Server
session
Channel
MML
Disk
2-6
Flash recovery
area
Recovery
catalog
database
2-8
2-9
Recovery catalog:
Simpler administration
Default
Metadata
Backup set list
Image copy list
.
.
.
2 - 10
Backup Destinations
Backups can be written to:
Disk directory
Media Management Library (tape device)
Typically used for disaster recovery, when disk
backups are lost
2 - 12
Media Management
Server
session
(channel)
Recovery
Manager
Oracle Secure
Backup with
built-in MML
2 - 13
Or
Media
management
library
Media
management
server software
RMAN backup
process
Database area
DB_RECOVERY_FILE_DEST = '/u01/oracle/fra'
DB_RECOVERY_FILE_DEST_SIZE = 2G
2 - 15
2 - 17
2 - 18
V$FLASH_RECOVERY_AREA_USAGE
You can query V$FLASH_RECOVERY_AREA_USAGE to
view the flash recovery area disk space usage.
SQL>
2
3
4
5
SELECT file_type,
percent_space_used AS used,
percent_space_reclaimable AS reclaimable,
number_of_files AS number
FROM v$flash_recovery_area_usage ;
FILE_TYPE
USED RECLAIMABLE FILES
----------------- --------- ----------- ------
2 - 19
V$FLASH_RECOVERY_AREA_USAGE
Output from the V$FLASH_RECOVERY_AREA_USAGE
query
FILE_TYPE
USED RECLAIMABLE
FILES
------------ ---------- ----------- ---------CONTROLFILE
0
0
0
ONLINELOG
0
0
0
ARCHIVELOG
69.13
0
593
BACKUPPIECE
0
0
0
IMAGECOPY
0
0
0
FLASHBACKLOG
1.77
0
37
2 - 20
2 - 21
2 - 22
Environment variables
NLS_DATE_FORMAT
NLS_LANG
2 - 23
Remote operations:
Set up the password file
Ensure that the password file is backed up
2 - 25
Target
database
Recovery
catalog DB
Recovery
Manager
2 - 26
Auxiliary
database
Starting RMAN
2 - 27
Additional RMAN
Command-Line Arguments
2 - 28
2 - 29
2 - 30
2 - 31
Retention Policies
File1
Now
File2 needs
to be backed up:
Seven-day retention
2 - 33
2 - 35
Channel Allocation
Target
database
2 - 36
Server
session
Channel
(DISK)
Server
session
Channel
(SBT)
RMAN
BACKUP
RESTORE
RECOVER
2 - 37
Configure parallelism:
RMAN> RUN {
2> ALLOCATE CHANNEL d1 DEVICE TYPE DISK
3> FORMAT '/disk1/backups/%U';
4> BACKUP DATABASE PLUS ARCHIVELOG; }
2 - 38
Summary
In this lesson, you should have learned how to:
Use either the control file or a recovery catalog for
the RMAN repository
Change RMAN default settings with CONFIGURE
Use the flash recovery area for RMAN operations
Monitor the flash recovery area by using v$ views
and Enterprise Manager
Implement recovery window and redundancy
retention policies
Implement manual and automatic channel
allocation
2 - 40
2 - 41