Академический Документы
Профессиональный Документы
Культура Документы
Objectives
After completing this lesson, you should be able to do the following: Describe the RMA repository and recovery catalog Describe the Media Management !ibrary interface Configure database parameters that affect RMA operations Connect to the three different types of databases by using RMA Configure two types of retention policies Change RMA default settings with CONFIGURE
2-2
(ow to configure ARCHIVELOG mode (ow to automate bac#ups (ow to do incremental bac#ups (ow to perform and tune instance recovery
2-3
2-4
2-5
$arget database
'erver session
Channel
Channel
Dis#
2-
2-!
2-8
Recovery catalog:
Replicates control file data (as room for more data Can service many targets Can store RMA scripts
2-(
2 - )0
"ac#up Destinations
"ac#ups can be written to: Dis# directory Media Management !ibrary .tape device/
$ypically used for disaster recovery, when dis# bac#ups are lost
2 - ))
Media Management
Recovery Manager 'erver session .channel/
Or
2 - )2
2 - )3
2 - )4
2 - )5
2-)
2 - )!
V%FLASH_RECOVERY_AREA_USAGE
6ou can 8uery V%FLASH_RECOVERY_AREA_USAGE to view the flash recovery area dis# space usage2
S&L' # 0 3 4 SELECT !(l _)*+ , + rc -)_.+ac _u. / AS u. /, + rc -)_.+ac _r cla(1a2l AS r cla(1a2l , -u12 r_o!_!(l . AS -u12 r FRO5 6%!la.7_r co6 r*_ar a_u.a8 9
2 - )8
V%FLASH_RECOVERY_AREA_USAGE
Output from the V%FLASH_RECOVERY_AREA_USAGE 8uery
FILE_TY$E USED RECLAI5ABLE FILES :::::::::::: :::::::::: ::::::::::: :::::::::: CONTROLFILE 0 0 0 ONLINELOG 0 0 0 ARCHIVELOG ;<=10 0 4<0 BAC>U$$IECE 0 0 0 I5AGECO$Y 0 0 0 FLASHBAC>LOG 1=?? 0 0?
2 - )(
2 - 20
2 - 2)
0nvironment variables
NLS_DATE_FOR5AT NLS_LANG
2 - 22
2 - 23
Remote operations:
'et up the password file 0nsure that the password file is bac#ed up
2 - 24
$arget database
Au*iliary database
Recovery Manager
2 - 25
'tarting RMA
'tarting RMA locally
B+or) ORACLE_SID
2-2
2 - 2!
2 - 28
2 - 2(
"est practice: Oracle recommends that you enable control file autobac#up2
2 - 30
2 - 3)
Retention +olicies
A retention policy describes which bac#ups will be #ept and for how long2 $here are two types of retention policies:
Recovery window: 0stablishes a period of time within which point,in,time recovery must be possible
)ile3 )ile3 needs to be bac#ed up: 'even,day retention )ile1 ow
2 - 32
$hese policies are mutually e*clusive and can be set with the CONFIGURE command2
Copyright 2008, Oracle. All rights reserved.
2 - 33
R5AN' SHOE CONTROLFILE AUTOBAC>U$ FOR5AT9 R5AN' SHOE E@CLUDE9 R5AN' SHOE ALL9
-se the CLEAR command to reset any persistent setting to its default value:
R5AN' CONFIGURE BAC>U$ O$TI5I"ATION CLEAR9 R5AN' CONFIGURE 5A@SETSI"E CLEAR9 R5AN' CONFIGURE DEFAULT DEVICE TY$E CLEAR9
2 - 34
Channel Allocation
Channel .D&':/
RMA
'erver session
Channel .'"$/
2 - 35
A manually allocated channel is one that overrides the automatic channel setting2 $his channel overrides the automatic channel for this run bloc#:
R5AN' RUN G #' ALLOCATE CHANNEL c1 DEVICE TY$E /(.H9 0' BAC>U$ DATAFILE '/u01/ora/a)a/u. r01=/2!'9 3' I
2-3
R5AN' RUN G #' ALLOCATE CHANNEL /1 DEVICE TY$E DIS> 0' FOR5AT '//(.H1/2acHu+./JU'9 3' BAC>U$ DATABASE $LUS ARCHIVELOG9 I
2 - 3!
2 - 38
'ummary
&n this lesson, you should have learned how to: -se either the control file or a recovery catalog for the RMA repository Change RMA default settings with CONFIGURE -se the flash recovery area for RMA operations Monitor the flash recovery area by using 6% views and 0nterprise Manager &mplement recovery window and redundancy retention policies &mplement manual and automatic channel allocation
2 - 3(
2 - 40