解決方案背景1 整理c盤的垃圾檔案,吧oralce的。log記錄檔刪除。2 然後oralce一直不能使用,提示tns有問題,然後再往上找資料,一直沒有解決掉,後來看到一邊文章如下,問題解決掉了,特和大家分享!===================================================下屬內容為轉=================================================== 自己機器安裝的oracle,完全是為了方便學習,但是如果startup,機器十分慢(記憶體512M),所以好久沒有startup了,今天startup,出問題了: Microsoft Windows XP [版本 5.1.2600] (C) 著作權 1985-2001 Microsoft Corp. C:/Documents and Settings/5201314 >sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on 星期五 5月 26 10:14:25 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> conn sys/dd as sysdba 已串連到空閑常式。 SQL> statrup SP2-0042: 未知命令 "statrup" - 其餘行忽略。 SQL> startup ORACLE 常式已經啟動。 Total System Global Area 205520896 bytes Fixed Size 1248092 bytes Variable Size 88081572 bytes Database Buffers 109051904 bytes Redo Buffers 7139328 bytes 資料庫裝載完畢。 ORA-00313: 無法開啟日誌組 1 (用於線程 1) 的成員 ORA-00312: 聯機日誌 1 線程 1: 'C:/ORACLE/PRODUCT/10.2.0/ORADATA/MYDB/REDO01.LOG' SQL> alter database open resetlogs; alter database open resetlogs * 第 1 行出現錯誤: ORA-01139: RESETLOGS 選項僅在不完全資料庫恢複後有效 SQL> alter database open resetlog; alter database open resetlog * 第 1 行出現錯誤: ORA-02288: 無效的 OPEN 模式 SQL> alter database open resetlogs 2 / alter database open resetlogs * 第 1 行出現錯誤: ORA-01139: RESETLOGS 選項僅在不完全資料庫恢複後有效 SQL> alter database open; alter database open * 第 1 行出現錯誤: ORA-00313: 無法開啟日誌組 1 (用於線程 1) 的成員 ORA-00312: 聯機日誌 1 線程 1: 'C:/ORACLE/PRODUCT/10.2.0/ORADATA/MYDB/REDO01.LOG' SQL> 解決過程: Microsoft Windows XP [版本 5.1.2600] (C) 著作權 1985-2001 Microsoft Corp. C:/Documents and Settings/5201314>sqlplus /nolog SQL*Plus: Release 10.2.0.1.0 - Production on 星期六 5月 27 11:19:52 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. SQL> conn sys/dd as sysdba 已串連。 SQL> startup mount ORA-01081: 無法啟動已在啟動並執行 ORACLE - 請首先關閉它 SQL> recover database until time '2006-05-19 13:45:02'; 完成介質恢複。 SQL> alter database open resetlogs; 資料庫已更改。 SQL> shutdown immediate; 資料庫已經關閉。已經卸載資料庫。 ORACLE 常式已經關閉。 SQL> startup ORACLE 常式已經啟動。 Total System Global Area 205520896 bytes Fixed Size 1248092 bytes Variable Size 79692964 bytes Database Buffers 117440512 bytes Redo Buffers 7139328 bytes 資料庫裝載完畢。資料庫已經開啟。 SQL>