PRODUCT
LOGO
• Oracle knows when to delete or trim • Complete the set for fast recovery
• Age-out
g or backed-up
p to tertiary
y p FRA so DBA must monitor
• Could fill up
• All recovery-related
l t d files
fil iin F
Fastt Recovery
R A
Area
• Disk
Di k Q
Quota:
t DB_RECOVERY_FILE_DEST_SIZE
– Per Database; provision for all permanent and transient files
• Location: DB_RECOVERY_FILE_DEST
DB RECOVERY FILE DEST
– File system directory or ASM group
Vi l t
Viewlet
# d
daily
il di
disk
k (k
(keeps 7
7-day-old
d ld i
image copy)
)
recover copy of database with tag DB_BACKUP
until
ntil time 's
'sysdate-8';
sdate 8'
backup incremental level 1 for recover of
copy with tag DB
DB_BACKUP
BACKUP database;
• Oracle
O l implicitly
i li itl deletes
d l t obsolete
b l t ((or ttrims)
i ) fil
files iin FRA
– Tertiary storage not part of FRA, hence explicit sbt delete command
•B
Backup
k and d Fl
Flashback
hb k policies
li i ddefine
fi which/how
hi h/h many
files are kept for how long in FRA –
– We already learned by example how to sum up those files
Vi l t
Viewlet
• If Flashback is enabled
SELECT estimated_flashback_size,
FROM V$FLASHBACK_DATABASE_LOG;
V$FLASHBACK DATABASE LOG;
… Oracle
O l takes
k care off routine
i space management
ORA-19809: limit exceeded for recovery files
33
About Me/Enkitec
y Who am I?
y Principal Consultant at Enkitec
y Worked with Oracle dating back to version 7
y What is Enkitec?
y Oracle-centered Platinum Partner based in Irving, TX
y Database consultants averaging over 15 years Oracle
experience
y Making a name for ourselves in the Exadata world
34
Why I Use the FRA
y Ease of use
NAME % USED
------------------------- ------
/u03/fast_recovery_area 85.87
35
Two Real World Customers
Customer #1 – Document Processing
36
Customer #1 – Document Processing
y 15TB database,, p
production environment
37
#1 – Accelerated Database Growth
7x Growth in 3 Years
16.000
14.000
e - TB
12.000
10.000
Dattabase Size
8.000
6.000
4.000
2.000
0.000
38
#1 – Document Processing - Solution
y FRA originally
g y sized at 2TB ((based on 7 dayy archive log
g retention))
39
#1 – Document Processing - Solution
Data Guard Considerations
40
#1 – Backup Commands
#RMAN archivelog
# g backup
p command
41
#1 – FRA file management
g
RMAN> backup archivelog all not backed up;
skipping
s pp g aarchived
c ed log
og file
e <archive
a c e_log>;
og ; a
already
eady backed
bac ed on
o <date>
date
...
input
p archived log
g thread=1 sequence=7
q RECID=26 STAMP=762905532
42
Customer #2 – Energy Utility
y Development
p database
y 600GB database
y Frequent
q database flashbacks
44
#2 – Energy Utility - Solution
Flashback Methodology
y Flashback retention set to 1 week
y After process was repeated a few times, optimal FRA size was
found,, based on recoveryy file g
generation
45
#2 – Energy Utility - Solution
Monitoring FRA Usage
SQL> SELECT * FROM V$FLASH_RECOVERY_AREA_USAGE
V$FLASH RECOVERY AREA USAGE WHERE PERCENT
PERCENT_SPACE_USED
SPACE USED > 0 ;
46
Two Real World Customers
Customer #1 – Document Processing
47
FRA On Exadata and ODA
y Planning the size of the FRA is even more important with
Oracle’ss engineered systems
Oracle
48
Questions?
Andy Colvin, Enkitec
http://www.enkitec.com
http://blog.oracle-ninja.com
andy.colvin@enkitec.com
49
Best Practice: Provision, Monitor, Repeat
• Repeat
• Provision,
Provision Monitor,
Monitor Repeat
– Understand how FRA works and when DBA action is necessary
Tokyo 2012
April 4–6, 2012