oracle中ORA-01219錯誤的解決方法

oracle中ORA-01219錯誤的解決方法
來源:青年人(Qnr.Cn) 2009-11-24 20:07:30  sql

 

形成的緣由是log被損壞。oracle

  cmd -> sqlpluside

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

  GROUP#  SEQUENCE# ARC STATUSorm

  ---------- ---------- --- ----------------cmd

  1         86 NO  INACTIVEit

  2         87 NO  INVALIDATEDclass

  3         85 NO  INACTIVEfile

  alter database clear logfile group 1;select

  alter database clear logfile group 2;

  alter database clear logfile group 3;

  shutdown immediate;

  startup mount;

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

  GROUP#  SEQUENCE# ARC STATUS

  ---------- ---------- --- ----------------

  1         88 NO  CURRENT

  2          0 NO  UNUSED

  3          0 NO  UNUSED

  alter database clear logfile group 1;

  alter database clear unarchived logfile group 1;

  alter database clear logfile group 2;

  alter database clear unarchived logfile group 2;

  alter database clear logfile group 3;

  alter database clear unarchived logfile group 3;

相關文章
相關標籤/搜索