Академический Документы
Профессиональный Документы
Культура Документы
Objectives
Commands
BACKUP
Block C.T.
Inc. Update
LIST
REPORT
DELETE
Interactive client
Enter commands at RMAN prompt.
Use when performing analysis, or when running
reports or stored scripts.
Batch mode
Use with automated jobs.
Specify a command file when starting RMAN.
Specify the log file name to capture session log.
Pipe interface
Specify the PIPE command-line argument.
Use to communicate data between sessions or
between RMAN and an external application.
Job command:
Must be within the braces of a RUN command
Is executed as a group
RUN {
BACKUP AS BACKUPSET
FORMAT '/u01/db01/backup/%d_%s_%p'
DURATION 10:00 MINIMIZE LOAD
(DATABASE);
SQL 'alter system archive log current';
7> }
SPFILE
Target
database
Control
file
Archived
log files
Enterprise
Manager
RMAN
BACKUP
Stored
scripts
Catalog maintenance
CROSSCHECK
DELETEEXPIRED
CHANGE
REPORT
LIST
Catalog
database
BACKUP Command
Data file
1
Data file
2
Data file
2
Data file
3
Data file
3
Tablespace
HR_DATA
Backup
set
Commands
> BACKUP
Block C.T.
Inc. Update
LIST
REPORT
DELETE
Backup Constraints
Data file
4
Data file
5
Channel
MML
Data file
2
Data file
3
Data file
9
Channel
MML
Data file
6
Data file
7
Data file
8
Backup
piece 1
Backup
piece 2
Channel
MML
Backup
Piece 3
Compressed Backups
RMAN> BACKUP AS
2> COMPRESSED BACKUPSET
3> DATABASE;
Database files
RMAN>
2>
3>
4>
Compressed
backup files
Image Copy
RMAN>
2>
3>
RMAN>
4>
5>
BACKUP AS COPY
DATAFILE '/ORADATA/users_01_db01.dbf'
FORMAT '/BACKUP/users01.dbf';
BACKUP AS COPY
ARCHIVELOG LIKE 'arch_1060.arc'
FORMAT 'arch_1060.bak';
Copy of data file 3
Data file 3
Data file 3
Archived
log file
week_full_backup
Data files
1,3
Data file
3
Data files
2,4
Data file
4
Backup set
Backup set
RMAN> BACKUP
2>
FORMAT '/disk1/backup/ar_%t_%s_%p'
3>
ARCHIVELOG FROM SEQUENCE=234
4>
DELETE INPUT;
Archived log
file copies
Data file
copies
Control
file
SPFILE
Full, or "level 0
incremental backup"
Cumulative
incremental backup
Differential
incremental backup
0
Lvl
Day Sun
Level 0
1c
Mon
Tue
Wed
Thu
1c
Fri
Sat Sun
Commands
BACKUP
> Block C.T.
Inc. Update
LIST
REPORT
DELETE
CTWR
SGA
Redo
generation
1011001010110
0001110100101
1010101110011
Change
tracking
file
Redo log
Incrementally Updating
Backups
Image copy
of data file
Incremental
backup files
Commands
BACKUP
Block C.T.
> Inc. Update
LIST
REPORT
DELETE
LIST Command
Commands
BACKUP
Block C.T.
Inc. Update
> LIST
REPORT
DELETE
REPORT Command
Commands
BACKUP
Block C.T.
Inc. Update
LIST
> REPORT
DELETE
Incremental
Days
Redundancy
Recovery window
Commands
BACKUP
Block C.T.
Inc. Update
LIST
REPORT
> DELETE
Navigation aid:
Database home page > Maintenance > Manage Current Backups
V$ARCHIVED_LOG
V$BACKUP_CORRUPTION
V$BACKUP_DEVICE
V$BACKUP_FILES
V$BACKUP_PIECE
V$BACKUP_REDOLOG
V$BACKUP_SET
V$BACKUP_SPFILE
V$COPY_CORRUPTION
V$RMAN_CONFIGURATION
Summary
In this lesson, you should have learned how to:
Use the RMAN BACKUP command to create backup
sets and image copies
List backups and image copies taken with RMAN
Report and delete obsolete RMAN backups