记一次数据库宕机处理
早上巡檢realsync時(shí)發(fā)現(xiàn)數(shù)據(jù)庫(kù)宕掉了,查看alert發(fā)現(xiàn)如下報(bào)錯(cuò):
Thu Dec 18 22:26:18 2014
KCF: read, write or open error, block=0x72d online=1
? ? ? ? file=1 '/oradata/****/temp01.dbf'
? ? ? ? error=27063 txt: 'IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 131072'
Errors in file /u01/app/diag/rdbms/**/***/trace/sjjz_dbw1_418098.trc:
Errors in file /u01/app/diag/rdbms/**/**/trace/sjjz_dbw1_418098.trc:
ORA-63999: data file suffered media failure
ORA-01114: IO error writing block to file 1025 (block # 1837)
ORA-01110: data file 1025: '/oradata/**/temp01.dbf'
ORA-27063: number of bytes read/written is incorrect
IBM AIX RISC System/6000 Error: 28: No space left on device
Additional information: -1
Additional information: 131072
DBW1 (ospid: 418098): terminating the instance due to error 63999
從報(bào)錯(cuò)No space left on device,懷疑系空間不足導(dǎo)致的,df查看果然/oradata文件系統(tǒng)剩余空間為0,占用率為100%;
進(jìn)一步查看temp01.dbf數(shù)據(jù)庫(kù)文件屬性:
1 /oradata/sjjz/temp01.dbf 1 TEMP 30408704 3712 ONLINE 1 YES 34359721984 4194302 80 29360128 3584
autoextensible為yes,即可以自動(dòng)對(duì)數(shù)據(jù)文件進(jìn)行擴(kuò)展,最大空間為34359721984,31GB。
當(dāng)io寫(xiě)入時(shí)發(fā)現(xiàn)已經(jīng)沒(méi)有空間寫(xiě)入了,instance abort!
在bing中查詢(xún)這個(gè)ora-63999,果然發(fā)現(xiàn)oracle 11g存在這個(gè)問(wèn)題,是由一個(gè)隱藏的啟動(dòng)參數(shù)決定的,
隱藏參數(shù)‘_datafile_write_errors_crash_instance’是在Oracle 11.2.0.1開(kāi)始導(dǎo)入的,
主要的機(jī)能是在,數(shù)據(jù)文件(sysytem以外表空間)I/O讀寫(xiě)錯(cuò)誤被發(fā)現(xiàn)時(shí),對(duì)實(shí)例的down進(jìn)行管理。
Oracle 11.2.0.1 的初始值是
_datafile_write_errors_crash_instance = FALSE
數(shù)據(jù)文件(sysytem以外表空間)I/O讀寫(xiě)錯(cuò)誤被發(fā)現(xiàn)時(shí),在歸檔模式下,發(fā)生錯(cuò)誤的數(shù)據(jù)文件
被OFFLINE,實(shí)例不會(huì)down。
Oracle 11.2.0.2開(kāi)始初始值變成TRUE
_datafile_write_errors_crash_instance = TRUE
因?yàn)镮/O錯(cuò)誤,數(shù)據(jù)文件讀寫(xiě)失敗被發(fā)現(xiàn)時(shí),ORA-63999錯(cuò)誤出力,實(shí)例down。
后又查看一篇文章:http://blog.itpub.net/23718752/viewspace-1122411
這個(gè)作者說(shuō)這是oracle11g一個(gè)bug,從11.2.0.2就解決了,但是我這個(gè)系統(tǒng)是oracle 11.2.0.4,按照文章作者的說(shuō)明從11.2.0.2在歸檔模式下不會(huì)出現(xiàn)instance abort,我這個(gè)數(shù)據(jù)庫(kù)是非歸檔模式的,這個(gè)就需要驗(yàn)證下了,有時(shí)間在驗(yàn)證下,到時(shí)把結(jié)果在補(bǔ)充上來(lái)。
轉(zhuǎn)載于:https://blog.51cto.com/vbird210/1591809
總結(jié)
以上是生活随笔為你收集整理的记一次数据库宕机处理的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: win7+eclipse用maven构建
- 下一篇: PL/SQL