Beruflich Dokumente
Kultur Dokumente
Objectives
After completing this lesson, you should be able to do the following: Use the RMAN BACKUP command to create bac up sets and image copies Manage the bac ups and image copies ta en with RMAN
3-2
"atch mode
Use with automated jobs# 'pecify a command file when starting RMAN# 'pecify the log file name to capture session log#
(ipe interface
'pecify the PIPE command)line argument# Use to communicate data between sessions or between RMAN and an e*ternal application#
3-3
3-4
-ob command:
Must be within the braces of a RUN command %s e*ecuted as a group
3-5
:> ;
3-
'tored scripts
REPORT LIST
!atalog database
3-!
3-8
BACKUP !ommand
$ablespace =R#DATA
"ac up set
3-*
"ac up !onstraints
$he database must be mounted or open# 5ou cannot bac up online redo logs# Only 6clean7 bac ups are usable in NOARC=I<ELO@ mode# Only 6current7 data file bac ups are usable in ARC=I<ELO@ mode#
3 - +0
0ata file 2
0ata file 3
0ata file ;
0ata file =
3 - ++
3 - +2
3 - +3
%mage !opy
RMAN> 2> 3> RMAN> %> (> BACKUP AS COPC DATAFILE '/ORADATA/u$01$#01#db01BdbA' FORMAT '/BACKUP/u$01$01BdbA'+ BACKUP AS COPC ARC=I<ELO@ LIKE 'a1c4#10,0Ba1c' FORMAT 'a1c4#10,0Bba '+
!opy of data file 3
0ata file 3 0ata file 3
3 - +4
3 - +5
D00 #Au..#bac u!
0ata file 3 0ata file 9
"ac up set
"ac up set
3-+
!hec for physical bloc corruptions# 'can for logical corruptions and physical corruptions# 'et a threshold on the number of detected corruptions allowed before aborting# ?alidate the target input files before performing a bac up operation# 0uple* the bac up set# Overwrite an e*isting bac up set or image copy# (ass control of the data transfer between storage devices and the data files on dis to the media management layer# &ncrypt the bac up files#
Copyright 2008, Oracle. All rights reserved.
3 - +8
RMAN> BACKUP 2> FORMAT '/d5$ 1/bac u!/a1#"/#"$#"!' 3> ARC=I<ELO@ FROM SE-UENCEE23% %> DELETE INPUT+
3 - +*
3 - 20
!ontrol file
'(.%/&
3 - 2+
3 - 22
3 - 23
1c
1c
Mon
$ue
@ed
$hu
.ri
'at 'un
$he bac up process can be streamlined by enabling bloc change trac ing, which: Records changed bloc s in a change trac ing file %s used automatically by RMAN, if enabled Optimi8es incremental bac ups by avoiding full data file scans during bac up
/ist of changed bloc s Redo generation 1B11BB1B1B11B BBB111B1BB1B1 1B1B1B111BB11 !hange trac ing file Redo log
!$@R
'DA
3 - 25
3-2
RMAN> RECO<ER COPC OF 2> DATAFILE {9F'A5.0#9a30'; 3> GIT= TA@ '59c1#u!d#dA1'+ %mage copy of data file updated to a more recent state Recovered data file
3 - 2! Copyright 2008, Oracle. All rights reserved.
LIST !ommand
/ist bac up sets and copies of data files:
RMAN> LIST BACKUP OF DATABASE+ RMAN> LIST BACKUP OF DATAFILE 2> H/db01/ORADATA/u03/u$01$01BdbAH+
/ist bac up sets and copies of any data file for a specified tablespace: /ist bac up sets and copies containing archive logs for a specified range:
REPORT !ommand
(roduces a detailed analysis of the repository (roduces reports to answer:
@hat are the data files in the databaseE @hich files need a bac upE @hich bac ups can be deletedE @hich files are unrecoverableE
3 - 2*
3 - 30
"ac up needed if there are not two or more bac ups already:
RMAN> REPORT NEED BACKUP 10du9da9c2 2+
.ind all recovery files that are deemed obsolete according to the current retention policy settings:
RMAN> REPORT OBSOLETE+
/ist the obsolete recovery files, if no more than two bac up copies are needed: 0elete the bac up set with a bac up set ey of 9: 0elete the recovery files considered obsolete, because they have more than two bac ups:
Navigation aid: 0atabase home page 4 Maintenance 4 Manage !urrent "ac ups
3 - 33 Copyright 2008, Oracle. All rights reserved.
<JARC=I<ED#LO@ <JBACKUP#CORRUPTION <JBACKUP#DE<ICE <JBACKUP#FILES <JBACKUP#PIECE <JBACKUP#REDOLO@ <JBACKUP#SET <JBACKUP#SPFILE <JCOPC#CORRUPTION <JRMAN#CONFI@URATION
3 - 34
3 - 35
3-3
3 - 3!
'ummary
%n this lesson, you should have learned how to: Use the RMAN BACKUP command to create bac up sets and image copies /ist bac ups and image copies ta en with RMAN Report and delete obsolete RMAN bac ups
3 - 38
3 - 3*
3 - 40