ITPub博客

首页 > 数据库 > Oracle > 强制关机后出现ORA-16038、ORA-19502、ORA-00312错误

强制关机后出现ORA-16038、ORA-19502、ORA-00312错误

原创 Oracle 作者:studyingeveryday 时间:2014-05-26 16:23:11 0 删除 编辑
SQL> startup
ORACLE instance started.


Total System Global Area  285212672 bytes
Fixed Size    1273276 bytes
Variable Size  260047428 bytes
Database Buffers   20971520 bytes
Redo Buffers    2920448 bytes
Database mounted.
ORA-16038: log 1 sequence# 19 cannot be archived
ORA-19502: write error on file "", blockno  (blocksize=)
ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/orcl/redo01.log'

解决:

select group#,sequence#,archived,status from v$log;


GROUP#  SEQUENCE# ARC STATUS
---------- ----------             --- ----------------
    1       19                 NO  INACTIVE
    3       21                 NO  CURRENT
    2       20                 NO  INACTIVE

SQL> alter database clear unarchived logfile group 1;


Database altered.


SQL> alter database clear unarchived logfile group 2;


Database altered.


SQL> alter database clear unarchived logfile group 3;


Database altered.

SQL> shutdown immediate
Database dismounted.
startup mount
ORACLE instance shut down.
SQL> ORACLE instance started.


Total System Global Area  285212672 bytes
Fixed Size    1273276 bytes
Variable Size  260047428 bytes
Database Buffers   20971520 bytes
Redo Buffers    2920448 bytes
Database mounted.

问题解决。。。


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29668428/viewspace-1170220/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
努力学习,并分享工作中的知识,欢迎阅读一起进步!

注册时间:2014-05-20

  • 博文量
    18
  • 访问量
    79165