ORA-00471 處理方法筆記

來源:互聯網
上載者:User

公司新上架一台服務到機房,硬體是IBM X3850 X5,硬體設定算是好的,記憶體有128GB。SA安裝好系統--(版本sule 32bit)後通知我可以安裝資料庫了。忙活半天,安裝好Oracle 9204後,準備建資料表空間匯入資料。因為資料量比較大,我打算建立一個10G的資料檔案用來儲存這寫資料。打入建立資料表空間的命令後,沒過多久資料庫出現宕機現象。後來我又重新操作一遍還是故障依舊。以下是日誌資訊:

alert.log:

Errors in file /u01/oracle/admin/orcl/bdump/orcl_pmon_13918.trc:
ORA-00471: DBWR process terminated with error
Wed Aug 21 15:56:16 2013
PMON: terminating instance due to error 471
Instance terminated by PMON, pid = 13918

 

trace file:

/u01/oracle/admin/orcl/bdump/orcl_pmon_13918.trc
Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
ORACLE_HOME = /u01/oracle/product/9.2.0
System name: Linux
Node name: dbprod
Release: 2.6.27.19-5-pae
Version: #1 SMP 2009-02-28 04:40:21 +0100
Machine: i686
Instance name: orcl
Redo thread mounted by this instance: 1
Oracle process number: 2
Unix process pid: 13918, image: oracle@dbprod</a> (PMON)

*** 2013-08-21 15:56:16.296
*** SESSION ID:(1.1) 2013-08-21 15:56:16.277
error 471 detected in background process
ORA-00471: DBWR process terminated with error

 

/var/log/messages:

Aug 21 14:01:14 dzjg kernel: lowmem_reserve[]: 0 872 62301 62301
Aug 21 14:01:14 dzjg kernel: Node 0 Normal free:3704kB min:3744kB low:4680kB high:5616kB active:3096kB inactive:3092kB present:893200kB

…

…

Aug 21 14:01:14 dzjg kernel: Out of memory: kill process 12867 (oracle) score 414016 or a child
Aug 21 14:01:14 dzjg kernel: Killed process 12867 (oracle)

初步判斷是系統記憶體不夠,但是通過free -m查看系統有60G的記憶體。通過上網查閱相關文檔對故障分析如下:

1.出現故障的原因:

在32位CPU下定址範圍是有限的,Linux核心定義了下面三個地區:

# DMA: 0x00000000 - 0x00999999 (0 - 16 MB)

 

# LowMem: 0x01000000 - 0x037999999 (16 - 896 MB) - size: 880MB

 

# HighMem: 0x038000000 - (由伺服器硬體決定 )

 

在 32位系統中,記憶體被分為 以上3 個地區,DMA zone,Normal zone(也叫做LowMem)和 HighMem zone其中 DMA zone主要用於 DMA 傳輸資料,位於低地址空間,其服務物件為各種驅動程式,其大小為 16MB,其中 LowMem (也叫做Normal zone)是 kernel 可以直接存取的地址空間,其大小為 880 MB,基本上所有的核心資料都在這個地區,同時如果核心要訪問更高地址空間的內容,均需要通過 Normal zone映射過去才可以。地址空間大於 880 MB 的為 HIghMem zone.

 

截取的系統日誌如下:

Aug 21 14:01:14 dzjg kernel: lowmem_reserve[]: 0 872 62301 62301
Aug 21 14:01:14 dzjg kernel: Node 0 Normal free:3704kB min:3744kB low:4680kB high:5616kB active:3096kB inactive:3092kB present:893200kB

…

…

Aug 21 14:01:14 dzjg kernel: Out of memory: kill process 12867 (oracle) score 414016 or a child
Aug 21 14:01:14 dzjg kernel: Killed process 12867 (oracle)

我們可以看到normal zone free 3704KB < min 3744KB,核心申請最小的記憶體3744KB,此時系統閒置lowmem 3704KB,不能滿足需求。該問題是low memory耗盡,因為核心使用low memory來跟蹤所有的記憶體配置。當low memory耗盡,不管high memory剩多少,會觸發oom-killer機制(out of memory killer)殺死進程,以保持系統的正常運行。根據一些文檔描述,OOM-Killer 在 2.4 與 2.6 上表現是不一樣的。2.4的版本中是把新進來(新申請記憶體)的進程殺掉。而 2.6上是殺掉佔用記憶體最厲害的進程(這是很危險的,很容易導致系統應用癱瘓)。我們目前的系統核心版本為2.6,從而導致系統將資料庫LGWR進程殺死.

SPFILE 錯誤導致資料庫無法啟動(ORA-01565)

ORA-01172、ORA-01151錯誤處理

ORA-00600 [2662]錯誤解決

ORA-01078 和 LRM-00109 報錯解決方案

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.