在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問題解決的相關代碼的描述,希望會給你帶來一些幫助在此方面。