重建控制檔案 recreate control file
簡單總結如下:
1) 啟動到mount
2) 執行Alter database backup controlfile to trace;
3) 找到第2步生成的trace檔案,並作相應修改. 只保留建立語句
4) shutdown並啟動到nomount, 執行建立語句
5) 啟動到mount
6) 執行下面指令碼,進行恢復
$more recover_db.sh
#!/bin/bash
source /home/oracle/.bash_profile
cd `dirname $0`
sqlplus / as sysdba <
recover database noparallel;
auto
EOD
7) 執行ALTER SYSTEM ARCHIVE LOG ALL;
8) ALTER DATABASE OPEN;
9) 註冊臨時檔案 (語句在第2步生成的trace檔案末尾)
ALTER TABLESPACE TEMP2 ADD TEMPFILE '+DATA1/isddw/datafile/temp2_01' REUSE;
....
附Metalink中的步驟
Applies to:
Oracle Server - Enterprise Edition
Information in this document applies to any platform.
"Checked for relevance on 12-March-2008"
***Checked for relevance on 25-Jul-2010***
Symptoms
ORA-1122 :database file %s failed verification check
ORA-1110 : datafile :
ORA-1207: ORA 1207 file is more recent than control file
Cause
The information in this file is inconsistent with information from the control file.
The datafile header CHECKPOINT count is beyond the controlfile CHECKPOINT count.
Solution
1.Mount the database
SQL>Startup mount
2. trace the control file
SQL> Alter database backup controlfile to trace;
3. Create a control file creation script. from the tracefile generated in user_dump_dest.
Use the Noresetlogs option
4.shutdown the database and start it NOMOUNT mode
SQL>shutdown abort
SQL>startup NoMount
5.Create the control file
Use the script. generated by the 'backup controlfile to trace' command above.
Reference: Note:1012929.6 How to Recreate the Controlfile
6.Recover database
SQL>recover database ;
7.Open the database
SQL>Alter database open
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/94384/viewspace-684444/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE 控制檔案(Control Files)概述Oracle
- 轉:Intellij idea Version Control File Status Colors ( 版本控制檔案狀態顏色 )IntelliJIdea
- Controlfile 重建控制檔案 noresetlogs, resetlogs..
- querydsl報錯: Attempt to recreate a file for type
- oracle快速拿到重建控制檔案語句的方法二Oracle
- I/O上的等待事件 —— control file sequential read/control file parallel write事件Parallel
- [20181130]control file sequential read.txt
- HTML input file 檔案域HTML
- Java —— 檔案類(File 類)Java
- HTML input file檔案域HTML
- 6.2file寫檔案
- 6.1file讀檔案
- Java : File 檔案類操作Java
- 惡意軟體PE檔案重建指南
- python file 檔案操作筆記Python筆記
- File Juicer for Mac(檔案提取工具)UIMac
- 檔案伺服器 — File Browser伺服器
- ThunderSoft File Lock for Mac檔案鎖Mac
- [20181129]大量的control file sequential read.txt
- Oracle 控制檔案Oracle
- Swift-控制流(Control Flow)Swift
- input file multiple 批量上傳檔案
- Python3之檔案操作filePython
- <input type="file"> 限制檔案型別型別
- pycharm建立臨時檔案scatch filePyCharm
- Find Any File for Mac(檔案搜尋)Mac
- 2.6.4 指定控制檔案
- 表示一個檔案的 File 型別型別
- 如何使用File APIs來讀取檔案API
- Mac檔案修改軟體——File Peek for macMac
- <input type="file"> 選中多個檔案
- 函式:file.move 移動檔案函式
- 檔案搜尋工具:Find Any File for MacMac
- Nifty File Lists for mac檔案列表建立工具Mac
- 如何檢視Control File中儲存的內容
- 簡單檔案搜尋:Find Any File for MacMac
- 如何在File Cabinet Pro中對檔案排序?排序
- File list Export for Mac檔案列表匯出工具ExportMac
- File list Export for Mac(檔案列表匯出工具)ExportMac