1)
recover until cancel;
cancel
alter database open resetlogs;
Код:
SQL> startup open
ORACLE instance started.
Total System Global Area 1534600116 bytes
Fixed Size 70580 bytes
Variable Size 289267712 bytes
Database Buffers 1245184000 bytes
Redo Buffers 77824 bytes
Database mounted.
ORA-01578: ORACLE data block corrupted (file # 2, block # 1026)
ORA-01110: data file 2: 'F:\ORACLES\ORANTS\ORADATA\CZABOTA\RBS01.DBF'
SQL> shutdown immediate;
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 1534600116 bytes
Fixed Size 70580 bytes
Variable Size 289267712 bytes
Database Buffers 1245184000 bytes
Redo Buffers 77824 bytes
Database mounted.
SQL> recover until cancel;
ORA-00279: change 409509172 generated at 08/04/2011 20:26:02 needed for thread
1
ORA-00289: suggestion : C:\ORACLES\ORANTS\RDBMS\ARC00003.001
ORA-00280: change 409509172 for thread 1 is in sequence #3
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
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: 'F:\ORACLES\ORANTS\ORADATA\CZABOTA\SYSTEM01.DBF'
ORA-01112: media recovery not started
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 2, block # 1026)
ORA-01110: data file 2: 'F:\ORACLES\ORANTS\ORADATA\CZABOTA\RBS01.DBF'
SQL> recover database using backup controlfile;
ORA-00279: change 409509174 generated at 08/04/2011 20:30:25 needed for thread
1
ORA-00289: suggestion : C:\ORACLES\ORANTS\RDBMS\ARC00001.001
ORA-00280: change 409509174 for thread 1 is in sequence #1
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
F:\oracles\orants\ORADATA\czabota\REDO01.LOG
ORA-00339: archived log does not contain any redo
ORA-00334: archived log: 'F:\ORACLES\ORANTS\ORADATA\CZABOTA\REDO01.LOG'
SQL> recover database using backup controlfile;
ORA-00279: change 409509174 generated at 08/04/2011 20:30:25 needed for thread
1
ORA-00289: suggestion : C:\ORACLES\ORANTS\RDBMS\ARC00001.001
ORA-00280: change 409509174 for thread 1 is in sequence #1
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
F:\oracles\orants\ORADATA\czabota\REDO03.LOG
Log applied.
Media recovery complete.
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-03113: end-of-file on communication channel
SQL> disconnect
Disconnected from Oracle8i Enterprise Edition Release 8.1.6.3.0 - Production
JServer Release 8.1.6.3.0 - Production
SQL> connect sys/qqq@czabota as sysdba;
ERROR:
ORA-03113: end-of-file on communication channel
теперь только перезапуск сервиса базы поможет :(
2)
ALTER DATABASE CLEAR LOGFILE 'filename';
alter database open;
не стал делать так как не понял зачем чистить логфайл если он живой
3)
recover database using backup controlfile;
подсовываем редо-логи (просматривая необходимые sequence через v$log и v$logfile)
alter database open;
попробовал см выше, не помогает :(
4) если уж совсем дело плохо, можно попробовать _allow_resetlogs_corruption=true
startup mount
alter system clear logfile;
recover database until cancel using backup controlfile ;
cancel
alter database open resetlogs;
попробовал,
тот же самый результат :(
один в один, даже ничего не изменилось :(
едиственное выругалась
SQL> alter system clear logfile;
alter system clear logfile
*
ERROR at line 1:
ORA-02065: illegal option for ALTER SYSTEM
что еще можно сделать?