Oracle 11g的Memory_target與自動記憶體管理

來源:互聯網
上載者:User

Oracle11g的自動記憶體管理(Automatic Memory Management)的新特性是Oracle在記憶體管理上的又一重要增強。如果這個參數設定過高,在執行個體啟動時可能會出現如下錯誤提示:

SQL*Plus: Release 11.1.0.5.0 - Beta on Sun Jul 29 08:35:28 2007
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-00845: MEMORY_TARGET not supported on this system

這一提示不是指特性不支援,而是你需要去調整記憶體設定。

在設定了這個參數後,自動記憶體調整啟用:

SQL> show parameter memory
NAME            TYPE   VALUE
--------------------------------  ----------
hi_shared_memory_address integer     0
memory_max_target      big integer  416M
memory_target          big integer  416M
shared_memory_address   integer     0

類似SGA_MAX_SIZE與SGA_TARGET一樣,MEMORY_MAX_TARGET與MEMORY_TARGET成對出現,這一特性的出現使得PGA+SGA作為整體記憶體使用量被一致的納入自動管理範疇。

而同樣與Oracle10g類似,設定了自動記憶體管理之後,PGA_AGGREGATE_TARGET參數不再需要設定,代之發揮作用的參數是帶有2個底線的__PGA_AGGREGATE_TARGET參數,我們可以來看一下這幾個參數的解釋:

SQL> select ksppinm,ksppdesc from x$ksppi
 2 where ksppinm like '%pga%';
KSPPINM
KSPPDESC
_pga_large_extent_size 
PGA large extent size
_use_ism_for_pga     
Use ISM for allocating large extents
_kdli_sio_pga        
use PGA allocations for direct IO
_kdli_sio_pga_top     
PGA allocations come from toplevel PGA heap
pga_aggregate_target  
Target size for the aggregate PGA memory consumed by the instance
__pga_aggregate_target 
Current target size for the aggregate PGA memory consumed
_pga_max_size       
Maximum size of the PGA memory for one process

總結:

Oracle11g的自動記憶體管理特性是早已被預期的Oracle的又一增強,是Oracle朝著自動記憶體管理方向所邁出的又一堅定步伐,是Oracle既定路線的又一延伸。

聯繫我們

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