ORA-01152錯誤解決方案 用老的備份controlfile

來源:互聯網
上載者:User

下面有原來的controlfile 來試試:

具體步驟如下:
startup force;
alter system set "_allow_resetlogs_corruption"=true scope=spfile;
recover database using backup controlfile until cancel;
alter databse open resetlogs; 

SQL> startup force;
Oracle 常式已經啟動。

Total System Global Area  603979776 bytes
Fixed Size                  1250380 bytes
Variable Size             222301108 bytes
Database Buffers          373293056 bytes
Redo Buffers                7135232 bytes
資料庫裝載完畢。
ORA-01190: 控制檔案或資料檔案 1 來自最後一個 RESETLOGS 之前
ORA-01110: 資料檔案 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\SHENG\SYSTEM01.DBF'


SQL> alter system set "_allow_resetlogs_corruption"=true scope=spfile;

系統已更改。

SQL> recover database using backup controlfile until cancel;
ORA-00279: 更改 563772 (在 12/29/2011 17:13:09 產生) 對於線程 1 是必需的
ORA-00289: 建議: D:\ORACLE\PRODUCT\10.2.0\ORADATA\ARCH\00100001771181989.ARC
ORA-00280: 更改 563772 (用於線程 1) 在序列 #1 中


指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
介質恢複已取消。

D:\oracle\product\10.2.0\db_1\RDBMS\lib>sqlplus / as sysdba

SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 12月 29 19:50:18 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


串連到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options

SQL> select status from v$intance;
select status from v$intance
                   *
第 1 行出現錯誤:
ORA-01219: 資料庫未開啟: 僅允許在固定表/視圖中查詢


SQL> select status from v$instance;

STATUS
------------
MOUNTED

SQL> alter database open resetlogs;

資料庫已更改。

SQL>
SQL> select status from v$instance;

STATUS
------------
OPEN

注意,open 以後把"_allow_resetlogs_corruption"=true 去掉。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.