ORA-01251: Unknown File Header Version read for file number 7
今天在公司幫開發部門開啟一個測試庫,到open狀態時,報以下錯誤:
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01122: database file 6failed verification check
ORA-01110: data file 6: '/u02/oradata/crmdb/test01.dbf'
ORA-01251: Unknown File Header Version read for file number 6
提示資料檔案6的檔案頭資訊已經損壞,不能正確讀取
分三種情況恢復:
第一.非歸檔模式 則會丟失這個表空間下的所有資料
fix:
Drop the datafile and the associated tablespace.
1. Connect to the database as a user with SYSDBA privileges.
SVRMGRL>connect sys/
2. Mount the database.
SVRMGRL>startup mount;
3. Drop the datafile specified in the error message.
SVRGMRL>alter database datafile '
4. Open the database.
SVRMGRL>alter database open;
5. Drop the tablespace associated with the datafile.
SVRMGRL>drop tablespace '
第二.歸檔模式,並且建立這個資料檔案以來的歸檔日誌都在
1. The database needs to be in Archive log mode.
2. You need to have all the Archive log file from the time the datafile was created .
3. The control file should have datafile created information.If the controlfile was re-created
after the datafile was created then the below solution will not work and step 2 will
error with ORA-01178
Steps to be followed
====================
Step1 :-
Take the problematic datafile offline.
SQL> Alter database datafile '/oracle/test_lob12.dbf' offline;
Copy the file to an alternate backup location.
Step 2:-
Issue the following command to re-create the file :
SQL> Alter database create datafile '/oracle/test_lob12.dbf';
Step 3:-
Start applying the archive log file to recreate datafile.
SQL> Recover datafile '/oracle/test_lob12.dbf';
Step 4:-
When the recovery is finished, bring the datafile online.
SQL> Alter database datafile '/oracle/test_lob12.dbf' online;
3.用dul工具直接提取資料檔案中的資料
這個提取資料難度就有點高。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-673944/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 原創:java.lang.UnsupportedClassVersionError: Bad version number in .class fileJavaError
- 等待事件db file sequential read、db file scattered read和direct read的區別事件
- read content in a text file in pythonPython
- Oracle:db file scattered readOracle
- db file scattered read等待事件事件
- db file sequential read等待事件事件
- 【等待事件】db file sequential read事件
- 【等待事件】db file scattered read事件
- [20181130]control file sequential read.txt
- C# read excel file via ExcelDataReaderC#ExcelLDA
- iis 0x80070032 Cannot read configuration file because it exceeds the maximum file size
- I/O上的等待事件 —— control file sequential read/control file parallel write事件Parallel
- Bug:java.lang.IllegalArgumentException: unknown document format for file:JavaExceptionORM
- [20220128]Check the datapump file header information in Oracle.txtHeaderORMOracle
- 0316理解db file parallel read等待事件Parallel事件
- ORA-39358: Export dump file version 12.1.0 not compatible with target version 11Export
- [20201221]KTFB Bitmapped File Space Header的恢復.txtAPPHeader
- [20181129]大量的control file sequential read.txt
- 0322理解db file parallel read等待事件2Parallel事件
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- 解決 Error: ENOSPC: System limit for number of file watchers reachedErrorMIT
- The number of method references in a .dex file cannot exceed 64K.
- gulp使用gulp-file-include將header/footer引入頁面Header
- 每日一個 Golang Packages 06/07 os File Read wtiteGolangPackage
- idea怎麼修改檔案的file is read-onlyIdea
- [20210315]理解db file parallel read等待事件3.txtParallel事件
- [20210315]理解db file parallel read等待事件4.txtParallel事件
- Unable to read TLD "META-INF/c.tld" from JAR fileJAR
- remount of /system failed: Read-only file system原因及解決REMAI
- 【TUNE_ORACLE】等待事件之IO等待“db file scattered read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“db file sequential read”Oracle事件
- 【問題處理】ORA-00376 file xx cannot be read at this time
- cat > file << EOF 與 cat > file << -
- 【故障解決】ORA-17630: Mismatch in the remote file protocol version client 2REMProtocolclient
- Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
- java.lang.IllegalArgumentException: Unsupported class file major version xx解決之道JavaException
- Warning: Cannot modify header information - headers already sent by (output started at file_path:line)HeaderORM
- [20200416]ORA-01187 cannot read from file because it failed verification tests.AI
- File