Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Database backups
1. Database all data files ( CRD Files).
a.
b.
c.
d.
a.
b.
d.
Vi crete_ctl.sql
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u01/app/oracle/oradata/rev1/system01.dbf'
apply the current online redolog files for recover the database here in our example the
current
logfile is redo02.log
SQL> col member format a50
SQL> select a.group#,a.member,b.status from v$logfile a, v$log b where
a.group#=b.group#;
When you get some data blocks in the data files physically corrupt, then you will
have to restore the full data file from backup for the recovery of those few block,
if you don't have RMAN backups. But if you do then you can take benefit of this
very powerful feature of RMAN called BMR (BLOCK MEDIA RECOVERY). Using
BMR only those blocks which are corrupt can be recovered from a backup instead
of recovering whole file.
The header of the table is in block 43, so if the block 44 or so are corrupted we
will get an error when we try to select data from the table. Lets corrupt block 44
using the "dd" command in Linux.
DISCLAIMER: The dd command given below is just for learning purposes and
should only be used on testing systems. I will not take any responsibility of any
consequences or loss of data caused by this command.
/*
We need to flush the buffer_cache because if the block 44 is
in the buffer_cache already it will not be read from the data file.
*/
The error that we get due to a block corruption is very clear. It will tell you the file
and block#.
Let’s do BMR for data file 5 and block 44.