Chinaunix首页 | 论坛 | 博客
  • 博客访问: 11509326
  • 博文数量: 8065
  • 博客积分: 10002
  • 博客等级: 中将
  • 技术积分: 96708
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-16 17:06
文章分类

全部博文(8065)

文章存档

2008年(8065)

分类: 服务器与存储

2008-07-16 15:57:25

9i的pga自动管理,只能用于dedicated server,不能用于shared server;如果在shared server中,*_area_size 将会优先使用;但是,在10g中,pga的自动管理,将可以用于dedicated server & shared server
9i下的pga分为:tunable 和 untunable
如果设置了workarea_size_policy=auto,tunable部分将不能超过pga_aggregate_target。但如果pga不够用,而system有free memory,oracle 将毫不犹豫的使用它
PGA_AGGREGATE_TARGET limits both the global PGA consumption and the size of a
workarea i.e. the memory allocated to a single SQL operator is also limited
to min(5% PGA_AGGREGATE_TARGET, 100MB) for serial operations, and to
30% PGA_AGGREGATE_TARGET/DOP for parallel operations (DOP=Degree of Parallelism)
该参数直接影响CBO优化器对执行计划的选择
相关1. V$SQL_WORKAREA:显示被sql cursors用到的work area的使用情况
    2. V$SQL_WORKAREA_ACTIVE:当前分配的work area的情况
    3. V$PROCESS contains new columns (PGA_USED_MEM, PGA_ALLOC_MEM AND PGA_MAX_MEM)
    4. V$PGASTAT:pga memory的使用情况
    5. V$SQL_WORKAREA_HISTOGRAM :不同work area 组的使用情况
    6. V$PGA_TARGET_ADVICE:对pga的建议
    7. V$PGA_TARGET_ADVICE_HISTOGRAM:
    8. V$SYSSTAT and V$SESSTAT contains new 'work area' statistics
For OLTP, PGA 的默认值为整个内存的16%,For OLAP,默认值为40%
阅读(260) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~