You are on page 1of 2

########## using RMAN to perform recovery

in last chapter we disscussed, complete and incomplete recovery.

discussed i) critical damage ii) non-critical damage

##### Complete recovery:


mean we have control files, redolog files
and archive logs
only data files are crashed.

Critical damage:
system , undo tablespace
damaged.

non-critical damage:
damage except system and
undo tablespace;

######## Incomplete recovery

if our all control file are damaged..


in this case, a complete recovery can also be
done , but we wil have to open database with resetlogs.

we do poin-in-time recovery when there comes


technical limitation.
or on demand..

tehnical limitation:
if our control files are damaged.
if cleared our redolog files.
if our archive-log sequence is breaked
these are our techincal
limitations;
### or on demand
like last-time we dropped tablespace, and
we recovered it

we have different cases:


for example erronously, we
dropped table,
////////////////////////we
dropped user
or some errornous DMLs

there is no need for


incomplete recovery, we have a
flash-back recovery solution.
only when physical damage
physical files damaged
control files damaged
tablespace dropped.

then we would have to do incomplete


recovery

######## last time we did not had any tool, now we are going to use RMAN
##using RMAN to restore and recover commands
for example we have to recover tablespace...

tablespace except system, undo.....may damaged


we execute run block.

RMAN> SQL 'ALTER TABLESPACE inv_tbs OFFLINE IMMEDIATE';


RMAN> RESTORE TABLESPACE inv_tbs;
RMAN> RECOVER TABLESPACE inv_tbs;
RMAN> SQL 'ALTER TABLESPACE inv_tbs ONLINE';

here we are writing "restore" command, in user-


manmaged, we do copy-paste ourself.
in "recover" command,in user-manged, he asks
sequence instrunctions
here we have no responsibility.

#### Performing user manged recovery:

RMAN says if this is your complete recovery, and damage is non-


critical, then its ok.

if critical damage, if datafile damaged , then we would perform


restoration and recovery at datafile level.
but for this archive-log should be enabled.

###### Recovering image copies:

RMAN says if u have made image copies, then apply recovery on your
backup image copies.

You might also like