Professional Documents
Culture Documents
Les 05
Les 05
Objectives
After completing this lesson, you should be able to: Perform complete or incomplete user-managed recovery Identify situations here incomplete recovery is necessary Perform complete or incomplete recovery by using R!A" Perform incomplete recovery based on time, #$", log se%uence, restore points, or the cancel method Recover an automatically bac&ed up control file 'se (nterprise !anage to perform recovery Recover read-only tablespaces
5-2 Copyright 2008, Oracle. All rights reserved.
Recovery !ethods
+here are t o methods for performing recovery: 'ser-managed recovery
-iles must be maintained and moved into place manually) 'se #.*/Plus commands)
R!A" recovery
-iles are managed automatically) 'se R!A" functionality including all repository maintenance and reporting capabilities) +his can be done by using (nterprise !anager) Oracle $orporation recommends using this method)
5-3
5-4
r%n& s'( )ALTER TABLESPACE in*_tbs OFFLI+E I,,EDIATE)RESTORE TABLESPACE in*_tbsRECOVER TABLESPACE in*_tbs DELETE ARC.IVELO/s'( )ALTER TABLESPACE in*_tbs O+LI+E)0
5-5
1ith the (nterprise !anager Recovery 1i2ard, you can create and run an R!A" script to perform the recovery)
Incomplete recovery brings the database up to a specified point in time in the past, before the recovery operation as re%uested)
Copyright 2008, Oracle. All rights reserved.
5-!
'ndo applied
9 8
Restored data files
5 4
Recovered data files
6
Data files containing committed and uncommitted transactions
Copyright 2008, Oracle. All rights reserved.
5-8
Database opened
'ndo applied
9 8
Restored data files from as far bac& as necessary
5 4
PI+-recovered data files
6
Data files containing committed and uncommitted +ransactions up to PI+
Copyright 2008, Oracle. All rights reserved.
5-"
5 - #0
5 - ##
5 - #2
5 - #3
5 - #4
5 - #5
S.2TDO9+ I,,EDIATE /BAC82P/=#db$/%!"/db!"/ORADATA START2P ,O2+T RECOVER DATABASE 2+TIL TI,E '2!!34""42>6""6556!!'ALTER DATABASE OPE+ RESETLO/SCopyright 2008, Oracle. All rights reserved.
5 - #!
5 - #8
5 - #"
5 - 20
5 - 2#
5 - 22
5 - 23
5 - 24
5 - 25
Restore Points
A restore point: #erves as an alias for an #$" or a specific point in time Is stored in the control file $an be used ith:
RECOVER DATABASE FLAS.BAC8 DATABASE FLAS.BAC8 TABLE
be$ore_(o d
8 7
5-2
R,A+> RECOVER DATABASE 2+TIL RESTORE POI+T be$ore_(o dCopyright 2008, Oracle. All rights reserved.
5 - 2!
5 - 28
5 - 2"
5 - 30
$reating a "e
$ontrol -ile
#>#+(!
'#(R#
Parameter file
#>#A': I"D(:
5 - 3#
$reating a "e
$ontrol -ile
5 - 32
/
$ase 8
/
$ase 7 Read-only Read? rite
/
$ase 6 Read? rite Read-only
$ontrol file / bac&up to be used for recovery if current one lost
,ac&up
5 - 33
5 - 34
5 - 35
5-3
#ummary
In this lesson, you should have learned ho to: Perform complete or incomplete user-managed recovery Perform complete or incomplete recovery by using R!A" Identify situations here incomplete recovery is necessary Perform incomplete recovery based on time, #$", log se%uence, restore points, or the cancel method Recover a control file autobac&up 'se (nterprise !anage to perform recovery Recover read-only tablespaces
5 - 3! Copyright 2008, Oracle. All rights reserved.
5 - 38