Você está na página 1de 24

Oracle Recovery Manager (RMAN) 10g : Reloaded

Boris Gurov Support Engineer Oracle Bulgaria

Agenda
What is Recovery Manager? Automatic disk based recovery Optimi ed incremental backups !ncrementally updated backups "ust say no to shrinking backup #indo#s A ne# t#ist to transportable tablespaces $%A

Recovery Manager: Oracles Backup & Recovery Ut l ty


Over !" Man #ears o$ %ng neer ng &ec'nology prov des:
Recovery Manager %nterpr se Manager & /rd 1arty &ools
& & & & &

Med a Manage)ent 0ayer

&

Network

&

(nt )ate kno*ledge o$ data+ase $ le $or)ats and recovery procedures Manages and auto)ates t'e +ackup, restore, and recovery process -reates and )a nta ns +ackup pol c es -atalogs all +ackup and recovery act v t es Operates on.l ne and n parallel $or $ast process ng -orrupt +lock detect on dur ng +ackup and restore and t'e a+ l ty to val date +ackups (ntegrated * t' %nterpr se Manager & /rd party net*ork +ackup products

Ne* 2orld: 3 sk Based 3ata Recovery


1670s . !00 MB

3 sk econo) cs are close to tape 3 sk s +etter t'an tape


&

Rando) access to any data

'((() increase

2e rearc' tected our recovery strategy to take advantage o$ t'ese econo) cs


&

Rando) access allo*s us to +ackup and recover 4ust t'e c'anges to t'e data+ase

Backup and Recovery goes $ro) 'ours to ) nutes


!000s . !00 5B

8las' Recovery Area


Un $ ed storage locat on $or all recovery $ les and recovery related act v t es n an Oracle 3ata+ase9 & -entral :ed locat on $or control $ les, onl ne redo logs, arc' ve logs, $las'+ack logs, +ackups & A $las' recovery area can +e de$ ned as a d rectory, $ le syste), or A;M d sk group & A s ngle recovery area can +e s'ared +y )ore t'an one data+ase M n ) :e t'e nu)+er o$ n t al :at on para)eters to set *'en you create a data+ase & 3e$ ne a data+ase area and $las' recovery area locat on & Oracle creates and )anages all $ les us ng OM8

3ata+ase Area

8las' Recovery Area

8las' Recovery Area ;pace Manage)ent


Arc' ve 0ogs & 3ata+ase 8 le Backups 8las' Recovery Area 3 sk l ) t s reac'ed and a ne* $ le needs to +e *r tten nto t'e 8las' Recovery Area ;pace 1ressure occurs 2arn ng (ssued to user RMAN updates l st o$ $ les t'at )ay +e deleted 1 ! Backup 8 les to +e deleted Oracle delete $ les t'at are no longer re<u red on d sk9

Bene$ ts to Us ng a 8las' Recovery Area


*ni+ies the storage location o+ related recovery +iles Manages the disk space allocated +or recovery +iles automatically Simpli+ies database administrator tasks
Much +aster backup Much +aster restore Much more reliable due to inherent reliability o+ disks

-'ange &rack ng 8 le
Optimi es incremental backups & ,rack #hich blocks have changed since last backup !ntegrated change tracking +ile & -hanged blocks are tracked as redo is generated & RMA. backup automatically uses changed block list

8las' Recovery Area


1011001010110 0001110100101 1010101110011

Change Tracking File

&'e ; :e o$ t'e -'ange &rack ng 8 le

Appro)imately '/01(((( o+ the total si e o+ the database 2epends on the number o+ the threads in RA- environment 2epends on the number o+ the old backups 3ma) 4 backups are tracked5

Enabling Block -hange ,racking


&

A6,ER 2A,ABASE E.AB6E B6O-7 -8A.GE ,RA-7!.G 9*S!.G :!6E ;/oracle/u'('/changetrack/o'<m+<y c mrr=<> chg;?@ ,he -hange ,racking Writer 3-,WR5 process vAblock<change<tracking vie# S,A,*S :!6E BB,ES

& &

:aster Optimi es incremental backups to only backup those changed blocks directly !ntegrated #ith 2B recovery and logging Better *ses less space since changes are tracked per block group RA- enabled Simpler & Automatically integrates #ith backup and recovery & ero e++ort

(ncre)ental Backup and -'anged &rack ng 8 le Bene$ ts

(ncre)entally Updated Backups


Incrementally Updated Backups
RMAN RECOVER COPY OF DATAFILE

RMAN incremental backup

Initiate Merge
%l ) nates t'e need to per$or) a *'ole data+ase +ackup9 Reduces t'e t )e re<u red $or )ed a recovery s nce t'e )age copy s updated * t' t'e latest +lock c'anges9

%l ) nate ;'r nk ng Backup 2 ndo* ;yndro)e=


:ully automatic disk based backup and recovery
&

Set it and :orget it

.ightly incremental backup rolls +or#ard recovery area backup


&

-hanged blocks are tracked in production 2B 2ramatically +aster 30()5 Blocks validated to prevent corruption o+ backup copy

3ata+ase Area

N g'tly 8las' Recovery Apply Area >al dated (ncre)ental

2eekly Arc' ve &o &ape

:ull scan is never needed


& &

&*o (ndependent 3 sk ;yste)s

*se lo# cost disk array +or recovery area

Oracle ;uggested ;trategy


Easy % Reliable
&

!ntegrates the Oracle 2B '(g +eatures

:ast Recovery Options


&

Backup and Recovery goes +rom hours to minutes

Auto)ated 3 sk Based Backup & Recovery Bene$ ts


Much +aster backup & "ust propagate changes to recovery area & 2ramatic di++erence +or large databases Much +aster restore & -opy backup +iles +rom the :lash Recovery Area & Or simply use the copy in the :lash Recovery Area Much more reliable due to inherent reliability o+ disks & ,apes not needed +or normal backup/recoveryC only +or archiving

Backup Manage)ent
6ist RMA. backups
&

Die# +iles included in a backup set Remove obsolete backups #ith a single click

Eer+orm maintenance
&

2'at s &ransporta+le &a+lespace?


Mechanism to Fuickly move a tablespace across Oracle databases Most e++icient means to move bulk data bet#een databases>
&

:ile is simply copied at OS level

File 1 File 2

OS copy
expdat.dmp

File 1 File 2

expdat.dmp
24

Oracle10g -ross 1lat$or) &ransporta+le &a+lespace


;)all %nd an 1lat$or)s
0 nuC ((ntel (A/!B@A) 2 ndo*s ((ntel (A/!B@A) Open >M; ((ntel (A@A) &ru@A UN(D (Alp'a)
; )ple 8 le -opy 2 t' n &'ese

B g %nd an 1lat$or)s
;olar s (;1AR-) E1.UD ((ntel (A@A) E1.UD (1A.R(;-) A(D (1o*er1-)
; )ple 8 le -opy 2 t' n &'ese

E g' ;peed 8 le -onvert

RMAN

-ross 1lat$or) &ransporta+le &a+lespace Bene$ ts


:ast data distribution in 2ata Warehousing environment 3data marts5 *sed +or publishing structured data 3i>e> catalogs on -2s5 Sharing o+ read only tablespaces by heterogeneous systems Allo#ing a database to be migrated +rom one plat+orm to another

-reating -ompressed Backups


-ompression o+ archive logs and backupses using 6G based approach ,he compressed backupset is not be usable #ith pre& Oracle 2atabase '(g RMAN> BACKUP COMPRESSED BACKUPSET DATABASE; RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;

Ot'er Oracle10g Backup & Recovery %n'ance)ents


Restore tolerates missing or corrupt backup
&

Automatically +ails over to previous backup

Automated recovery through a previous point in time recovery


&

Recovery through resetlogs

:ully automated tablespace pointHinHtime recovery Automatic channel +ailover on backup or restore ,ime #indo# based throttling o+ backups ,ablespace Rename 2rop 2atabase

Resources
8A O,.I
httpI//otn>oracle>com/deploy/availability

RMA. 2iscussion :orum


httpI// otn>oracle>com

Meta6ink
httpI// Meta6ink>oracle>com

FU%;&(ON; AN;2%R;

&

Você também pode gostar