출처 : http://shaharear.blogspot.kr/2013/06/recover-database-from-ora-00333-redo.html
아래의 step을 차근차근 따라하면 해소된다.
빨간 글씨는 직접 입력 내용이다.
파란 글씨는 출력 내용중 핵심 내용이다.
In development environment, it is very common scenario that we have multiple databases in a single machine by using VMware (i.e, each VMware contains one database). Again those machines doesn't have consistant power backup. Therefore we have to face power failure or VMware hang-up. So, we are forced to restart the machine while databases are still up & running. After restarting the machine, we have mostly got he following error:
SQL> startup
ORACLE instance started.
Total System Global Area ***** bytes
Fixed Size ***** bytes
Variable Size ***** bytes
Database Buffers ***** bytes
Redo Buffers ***** bytes
Database mounted.
ORA-00333: redo log read error block *Number* count *Number*
Step 1: As the Db is in mount mode, We can query v$log & v$logfile to identify the status of log file group and their member.
SQL> select l.status, member from v$logfile inner join v$log l using (group#);
STATUS MEMBER
------------- --------------------------------------
CURRENT /oracle/fast_recovery_area/redo01.log
INACTIVE /oracle/fast_recovery_area/redo02.log
INACTIVE /oracle/fast_recovery_area/redo03.log
Step 2: Recover the database using ackup controlfile.
SQL> recover database using backup controlfile;
ORA-00279: change generated at needed for thread 1
ORA-00289: suggestion : /oracle/fast_recovery_area/archivelog/o1_mf_1_634_%u_.arc
ORA-00280: change for thread 1 is in sequence #
Specify log: {=suggested | filename | AUTO | CANCEL}
Step3: Give 'CURRENT' log file member along with location as input. If it does not work give other log file members along with location in input prompt. In our case we give (위의 step 1의 current log 파일을 입력하면 됨)
/oracle/fast_recovery_area/redo01.log
Log applied.
Media recovery complete.
Step 4: Open the database with reset logfile
SQL> alter database open resetlogs;
Database altered.
'DB > Oracle' 카테고리의 다른 글
Oracle에서 사용자가 생성한 모든 Table, View를 삭제하는 쿼리 만들기 (0) | 2016.07.13 |
---|---|
오라클 session의 관련된 잡다한 지식. (0) | 2015.09.21 |
Oracle - TNSListener 서비스가 시작되지 않을 때 (2) | 2014.02.19 |
Windows 2008 R2 (or Windows 7)에 오라클 10g 설치시 주의사항 (0) | 2013.10.10 |
Oracle TABLESPACE 생성 후 유저 생성 팁 (0) | 2013.10.02 |