首页|资讯|互联网|电信|硬件|软件|情报|产经|博客|家庭|商用电脑|游戏|评测|学院|下载|网络通信|方案应用|搜索
移动计算|商用软件|外包|开源|中间件|企业|IT经理|发烧友|程序员|IT女性|学生|老板|笔记本|手机|台式机|数码|论坛
程序员

深入讲解Memory_target与自动内存管理

2008-03-24 19:40 作者:林夕 来源:赛迪网
[摘要] 深入讲解Oracle的Memory_target与自动内存管理,加入这个参数设置过高,实例启动时会出现错误提示,设置了自动内存管理之后,PGA_AGGREGATE_TARGET参数不再需要设置。
[关键字] oracal Memory_target 自动内存管理
  Oracle在内存管理上的一个重要增强,就是Oracle 11g的一个新特性:Memory_target与自动内存管理(Automatic Memory Management)

  需要大家注意的是,加入这个参数设置过高,实例启动时会出现错误提示:

  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

【责任编辑 陈东方】

关键词: oracal, Memory_target, 自动内存管理,
  • 我要留言
关于eNet | 广告服务 | 版权声明 | 加入eNet | 联系我们 | 建议/投诉 | 网站导航 | 加入收藏

网站合作、内容监督、商务咨询、投诉建议:010-65245588
合作建议:hezuo@mail.enet.com.cn
Copyright © 1998--2008 硅谷动力公司版权所有 京ICP证000044号

京ICP证000044号