下面有原來的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 去掉。