Rereading datafile 201 header failed with ORA-01203
一、簡要介紹
Oracle 版本 11.2.0.3,Linux環境,2個節點的Oracle DataGuard環境,StandBy節點以Read Only模式開啟,已經執行許多天沒有出現問題,今天在主庫為某個表空間增加了一個資料檔案後,在日誌檔案中出現如下資訊提示:
-
Read of datafile '/data/oracle_data/ORCL/temp01.dbf' (fno 201) header failed with ORA-01203
-
Rereading datafile 201 header failed with ORA-01203
-
Errors in file /u01/app/oracle/diag/rdbms/phis_ty_dg2/ORCL/trace/ORCL_dbw0_18157.trc:
-
ORA-01186: file 201 failed verification tests
-
ORA-01122: database file 201 failed verification check
-
ORA-01110: data file 201: '/data/oracle_data/ORCL/temp01.dbf'
-
ORA-01203: wrong incarnation of this file - wrong creation SCN
- File 201 not verified due to error ORA-01122
-
SYS@ORCL> select * from dba_temp_files;
-
select * from dba_temp_files
-
*
-
ERROR at line 1:
-
ORA-01187: cannot read from file because it failed verification tests
- ORA-01110: data file 201: '/data/oracle_data/ORCL/temp01.dbf'
二、具體操作步驟
停止了StandBy節點與主庫的同步,將資料庫重新啟動到Mount階段,本打算重新建立新的臨時表空間的,但是最發現在Mount階段是無法建立表空間的
然後我在Mount階段刪除了有問題的資料檔案,然後想再新增一個新的資料檔案,但是還是不能新增資料檔案,最後我發現在ReadOnly模式下是可以新增臨時表空間資料檔案的。具體的操作如下:
1、在Mount階段刪除了有問題的資料檔案,在ReadOnly模式下也應該可以刪除
-
SYS@ORCL> alter database tempfile '/data/oracle_data/ORCL/temp01.dbf' drop;
-
- Database altered.
2、將資料庫切換至ReadOnly模式
-
SYS@ORCL> alter database open read only;
-
- Database altered.
3、為臨時表空間新增新的資料檔案
-
YS@ORCL> alter tablespace temp add tempfile '/data/oracle_data/ORCL/temp01.dbf' size 30M reuse;
-
- ablespace altered.
4、確認臨時表空間資料檔案
-
SYS@ORCL> select * from dba_temp_files;
-
-
FILE_NAME
-
--------------------------------------------------------------------------------
-
FILE_ID TABLESPACE_NAME BYTES BLOCKS STATUS
-
---------- ------------------------------ ---------- ---------- -------
-
RELATIVE_FNO AUT MAXBYTES MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
-
------------ --- ---------- ---------- ------------ ---------- -----------
-
/data/oracle_data/ORCL/temp01.dbf
-
1 TEMP 31457280 3840 ONLINE
-
1 NO 0 0 0 30408704 3712
-
-
/data/oracle_data/ORCL/temp02.dbf
-
2 TEMP 5368709120 655360 ONLINE
- 2 YES 3.4360E+10 4194302 1 5367660544 655232
5、重新啟動資料同步
- alter database recover managed standby database using current logfile disconnect from session;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/2317695/viewspace-2136485/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- v$datafile_header 查詢datafile 狀態Header
- alter system dump datafile headerHeader
- oracle_bbed.Datafile.Header_System.資料檔案頭資訊OracleHeader
- v$datafile&v$datafile_header,oracle 備份恢復時,查詢資料檔案資訊HeaderOracle
- zt_Archivelog 模式下,datafile header損壞,如何恢復?Hive模式Header
- Open DB failed-DATAFILE NEEDS MORE RECOVERY TO BE CONSISTENT_1528788.1AI
- Failed to connect to ESP8266: Timed out waiting for packet headerAIHeader
- rman copy asm datafile(rename asm datafile)ASM
- 【Datafile】Oracle單個datafile大小的限制Oracle
- Oracle datafileOracle
- 為什麼在mount狀態下,可以從v$datafile_header中讀出檢查點資訊Header
- alter database create datafileDatabase
- alter database create datafile '' as ''Database
- how to remove datafile pathREM
- 201-Bitwise AND of Numbers Range
- jQuery :headerjQueryHeader
- HTTP headerHTTPHeader
- MYSQL Space id in fsp header,but in the page header錯誤MySqlHeader
- alter database datafile offline drop 與 alter tablespace drop datafile 區別Database
- Renaming a Datafile in the Primary DatabaseDatabase
- 收縮datafile for oracle -- 轉Oracle
- (201)Atomic*實現原理
- Python 201:多程式教程Python
- Optimization with Function-Based Indexes (201)FunctionIndex
- [ERROR]Space id in fsp header but in the page header一列ErrorHeader
- 【Azure API 管理】解決呼叫REST API操作APIM(API Management)需要認證問題(Authentication failed, The 'Authorization' header is missing)APIRESTAIHeader
- SGU 201 Non Absorbing DFA (DP)ORB
- Move datafile:From File System to ASMASM
- Move datafile:From ASM to File SystemASM
- ALTER DATABASE DATAFILE OFFLINEDatabase
- How to Choose Size of Datafile on Raw Devicedev
- 重新認識CREATE DATAFILE命令
- 冷備_並行copy datafile並行
- http設定headerHTTPHeader
- HTML <header> 標籤HTMLHeader
- HTTP Header 詳解HTTPHeader
- HTTP header介紹HTTPHeader
- Oracle ASM Disk HeaderOracleASMHeader