Oracle设置Shared Pool的大小

发布时间:2020-07-18 00:58:29 作者:林夕630995935
来源:网络 阅读:3616

  在oracle 10G或者11G版本中,如何合理设置shared pool大小,对oracle数据库的性能影响很大。

  Shared Pool的大小设置规则如下:

  1.查到shared pool设置的合理值,语句如下:

  select 'Shared Pool' component,

       shared_pool_size_for_estimate estd_sp_size,

       estd_lc_time_saved_factor parse_time_factor,

       case

         when current_parse_time_elapsed_s + adjustment_s < 0 THEN

          0

         ELSE

          current_parse_time_elapsed_s + adjustment_s

       END response_time

  FROM (select shared_pool_size_for_estimate,

               shared_pool_size_factor,

               estd_lc_time_saved_factor,

               a.estd_lc_time_saved,

               e.VALUE / 100current_parse_time_elapsed_s,

               c.estd_lc_time_saved - a.estd_lc_time_saved adjustment_s

          from v$shared_pool_advice a,

               (select * from v$sysstat where NAME = 'parse time elapsed') e,

               (select estd_lc_time_saved

                  from v$shared_pool_advice

                 where shared_pool_size_factor = 1) c);

  2.设置上个SQL语句中查到的PARSE_TIME_FACTOR首次等于1的记录所在行的ESTD_SP_SIZE的值为shared pool。

  3.设置语句如下:

  alter system set shared_pool_size=XXX scope=spfile;或者alter system set shared_pool_size=XXX scope=both;

推荐阅读:
  1. Oracle shared_pool_reserved_size参数设置说明
  2. 设置ORACLE自动内存管理

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

pool shared sga

上一篇:Oracle & MySQL 老司机说我们要使用(延迟复制)

下一篇:Powershell获取当前机器的序列号用户名域

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》