归档模式下redo丢失或损坏(inactive状态)



归档模式下redo丢失或损坏(inactive状态)


1)inactive  logfile损坏的情况

++++Session 1

SQL> select * from v$Log;

GROUP#   THREAD#  SEQUENCE#    BYTES  BLOCKSIZE   MEMBERS ARC STATUS   FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
 1        1         0       52428800    512       1      YES  UNUSED    1629032      29-DEC-15  1629391      29-DEC-15
 2        1        17       20971520    512       1      NO   CURRENT   1629391      29-DEC-15  2.8147E+14
 3        1        15       52428800    512       1      YES  INACTIVE  1629028      29-DEC-15  1629032      29-DEC-15
 

SQL> col member format a50
SQL> select * from v$logfile;

    GROUP# STATUS  TYPE    MEMBER                             IS_
---------- ------- ------- -------------------------------------
  1    ONLINE  /u01/app/oracle/oradata/orcl/redo01.log       NO
  2    ONLINE  /u01/app/oracle/oradata/orcl/redo02.log       NO
  3    ONLINE  /u01/app/oracle/oradata/orcl/redo03.log       NO



++++Session 2

[oracle@zw_test_26_75 trace]$ dd if=/dev/null of=/u01/app/oracle/oradata/orcl/redo03.log bs=512 count=10
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00015951 s, 0.0 kB/s
 


SQL> startup
ORACLE instance started.

Total System Global Area  952020992 bytes
Fixed Size      2258960 bytes
Variable Size    314574832 bytes
Database Buffers   629145600 bytes
Redo Buffers      6041600 bytes
Database mounted.
ORA-03113: end-of-file on communication channel
Process ID: 17653
Session ID: 145 Serial number: 3

alert_orcl.log报错
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/orcl/redo03.log'
ORA-27047: unable to read the header block of file
Linux-x86_64 Error: 25: Inappropriate ioctl for device
Additional information: 1


SQL> alter database clear logfile group 3;

Database altered.

SQL> alter database open;

Database altered.

或者直接删除日志,打开数据库后再重新添加;

SQL> alter database drop logfile group 3;
Database altered.

SQL> alter database open;
Database altered.

SQL> alter database add logfile group 3 ('/home/ora10g/oradata/roger/redo03.log') size 10m reuse;
Database altered.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值