ITPub博客

首页 > Linux操作系统 > Linux操作系统 > pga的调整建议

pga的调整建议

原创 Linux操作系统 作者:eric0435 时间:2012-12-28 22:14:15 0 删除 编辑
pga的调整建议
伴随自动pga调整功能的引入,oracle同时引入相应的动态性能视图用于优化建议.
pga的优化建议通过v$pga_target_advice和v$pga_target_advice_histogram提供
v$pga_target_advice视图通过对不同的pga设置进行评估,给出在不同设置下的
pga命令中率和OverAlloc等信息
SQL> select pga_target_for_estimate/1024/1024 pga_mb,
  2  pga_target_factor,estd_pga_cache_hit_percentage,
  3  estd_overalloc_count
  4   from v$pga_target_advice;

    PGA_MB PGA_TARGET_FACTOR ESTD_PGA_CACHE_HIT_PERCENTAGE ESTD_OVERALLOC_COUNT
---------- ----------------- ----------------------------- --------------------
     412.5             0.125                           80                   234
       825              0.25                           85                   134
      1650               0.5                           90                   45
      2475              0.75                           94                     0
      3300                 1                           100                    0
      3960               1.2                           100                    0
      4620               1.4                           100                    0
      5280               1.6                           100                    0
      5940               1.8                           100                    0
      6600                 2                           100                    0
      9900                 3                           100                    0
     13200                 4                           100                    0
     19800                 6                           100                    0
     26400                 8                           100                    0

可以看到,在以上输出中,当pga设置为2475M时,即可消除pga过载;在pga设置为3300时,
命中率100%;当前pga设置为3300M,根据这些信息,就不用对pga调整

SQL> select pga_target_factor factor,low_optimal_size/1024 low,
  2         round(high_optimal_size/1024) high,
  3         estd_optimal_executions estd_opt,estd_onepass_executions estd_op,
  4         estd_multipasses_executions estd_mp,estd_total_executions estd_exec
  5  from v$pga_target_advice_histogram
  6  where pga_target_factor=0.25 and estd_total_executions>0
  7  ;

    FACTOR        LOW       HIGH   ESTD_OPT    ESTD_OP    ESTD_MP  ESTD_EXEC
---------- ---------- ---------- ---------- ---------- ---------- ----------
      0.25      65536     131072         14          0          0         14
      0.25      32768      65536          2          0          0          2
      0.25      16384      32768        135          0          0        135
      0.25       8192      16384        493          0          0        493
      0.25       4096       8192        359          0          0        359
      0.25       2048       4096        183          0          0        183
      0.25       1024       2048        930          0          0        930
      0.25        512       1024       6556          0          0       6556
      0.25        256        512        200          0          0        200
      0.25        128        256        443          0          0        443
      0.25         64        128       1049          0          0       1049
      0.25          2          4     205256          0          0     205256

12 rows selected

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26015009/viewspace-751837/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
系统架构师 Oracle ACE

注册时间:2011-10-12

  • 博文量
    716
  • 访问量
    6626153