oracle 誤刪除記錄檔後的處理方法!

來源:互聯網
上載者:User
 

解決方案背景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>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.