OCP-V13-003

QUESTION 3
Your database is in ARCHIVELOG mode. You have two online redo log groups, each of which contains
one redo member. When you attempt to start the database, you receive the following errors:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: ‘D:\REDO01.LOG’
You discover that the online redo log file of the current redo group is corrupted.
Which statement should you use to resolve this issue?
A. ALTER DATABASE DROP LOGFILE GROUP 1;
B. ALTER DATABASE CLEAR LOGFILE GROUP 1;
C. ALTER DATABASE CLEAR UNARCHIVED LOGFILE GROUP 1;
D. ALTER DATABASE DROP LOGFILE MEMBER ‘D:\REDO01.LOG’;
Correct Answer: C

您的数据库在ARCHIVELOG模式。您有2个联机重做日志组,其中每一个包含
一个重做成员。
当您尝试启动数据库时,您收到以下错误:
ora-00313:开放为线程1

组1成员登录失败
ora-00312:在线日志1线程1:“D: \ redo01日志”。
你发现当前重做组的联机重做日志文件已损坏

C.清理未归档日志

ORA-00313: 无法打开日志组1(线程1)的成员
ORA-00312: 联机日志1线程1:’E:\ORACLE\ORADATA\ORCL\REDO01.LOG’
查看’E:\ORACLE\ORADATA…\下的文件,没有REDO01.LOG文件,只有REDO03.LOG,显然,这才是oracle启动失败的问题根源,而ORA-01033错误只是表面现象。找到问题根源就好办了,google一下,果然有解,不禁再次感慨有狗狗的世界没有解决不了的问题。解决方法如下:
c:\sqlplus /nolog
sql>connect sys /as sysdba
sql>alter database clear logfile group 1;
sql>alter database clear logfile group 2;

重启oracle服务,果然没问题了,文件夹下果然出现了REDO01.LOG和REDO02.LOG。

你可能感兴趣的:(oracle,数据库,log,OCP)