在Oracle问题解决之前曾遇到过这样的问题,当时由于时间紧急,不知怎么解决,所以就拿出来和大家一起分享,以下就是文章的详细内容介绍,望大家借鉴。今天又遇到,造成的原因是log被损坏。
- cmd -> sqlplus
- SQL> select group#,sequence#,archived,status from v$log;
- GROUP# SEQUENCE# ARC STATUS
- 86 NO INACTIVE
- 87 NO INVALIDATED
- 85 NO INACTIVE
- alter database clear logfile group 1;
- 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
- 88 NO CURRENT
- 0 NO UNUSED
- 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;
- shutdown;
- startup mount;
- alter database open;
上述的相关内容就是对Oracle问题解决的相关代码的描述,希望会给你带来一些帮助在此方面。
【编辑推荐】