Oracle資料庫案例整理-Oracle系統運行時故障-Shared Pool記憶體不足導致資料庫響應緩慢

來源:互聯網
上載者:User

1.1       現象描述

資料庫節點響應緩慢,部分使用者業務受到影響。

查看資料庫警示日誌,開始顯示ORA-07445錯誤,然後是大量的ORA-04031錯誤和ORA-00600錯誤。

檢查資料庫日誌,資料庫仍處於活動狀態的資訊如下:

Sat Jul 17 07:51:52 2010
Thread 1 advanced to log sequence 266272
  Current log# 2 seq# 266272 mem# 0: /dev/rlv_redo121
  Current log# 2 seq# 266272 mem# 1: /dev/rlv_redo122
1.2       可能原因

由於資料庫使用者業務繁忙,活動會話較多,佔用了大量的Shared Pool記憶體。同時Shared Pool內部參數配置不合理導致產生大量的記憶體片段。因此,導致部分進程無法申請到足夠的Shared Pool記憶體,出現ORA-07445錯誤和ORA-04031錯誤。由於Shared Pool壓力越來越大,最後還引發ORA-00600錯誤。

1.3       處理步驟
  1. 以oracle使用者登入資料庫主機。
  2. 以sysdba使用者串連資料庫。

% sqlplus /nolog

SQL> conn /as sysdba;

Connected.
  1. 提高Shared Pool的“reserved pool”比例。

SQL> alter system set "_shared_pool_reserved_pct"=10 scope=spfile;

  1. 降低“reserved pool”的最小請求大小。

SQL> alter system set "_shared_pool_reserved_min_alloc"=4000 scope=spfile;

  1. 將Shared Pool子池個數減少到兩個。

SQL> alter system set "_kghdsidx_count"=2 scope=spfile;

  1. 分別關閉主備節點資料庫。

SQL> shutdown immediate

  1. 分別在主備節點重新啟動資料庫。

SQL> startup

  1. 查詢設定的參數。

SQL> select a.ksppinm "Parameter", b.ksppstvl "Session Value", c.ksppstvl "Instance Value"

from x$ksppi a, x$ksppcv b, x$ksppsv c

where a.indx = b.indx and a.indx = c.indx and a.ksppinm = '_shared_pool_reserved_pct'; 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.