签到成功

知道了

CNDBA社区CNDBA社区

Oracle 18c 中 processes 和 sessions 参数默认值修改

2018-08-31 10:06 3270 0 原创 Oracle 18c
作者: dave

在Oracle 12以前,processes 参数默认值为100. 可以通过官网查看:
https://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams202.htm#REFRN10175

从Oracle 12c开始,process 的默认值根据CPU 的核数来决定,并非再是一个固定值。

http://www.cndba.cn/dave/article/2982http://www.cndba.cn/dave/article/2982

sessions 的规则还是没有改变,sessions=1.5*processes + 22。 http://www.cndba.cn/dave/article/2982http://www.cndba.cn/dave/article/2982

这个是我们测试测试环境的:

http://www.cndba.cn/dave/article/2982
http://www.cndba.cn/dave/article/2982
http://www.cndba.cn/dave/article/2982

[oracle@www.cndba.cn trace]$ cat alert_cndba.log |grep cores
Number of processor cores in the system is 2
Number of processor cores in the system is 2
Number of processor cores in the system is 2
Number of processor cores in the system is 2

[oracle@www.cndba.cn trace]$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Mon Aug 27 07:14:58 2018
Version 18.3.0.0.0

Copyright (c) 1982, 2018, Oracle.  All rights reserved.


Connected to:
Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production
Version 18.3.0.0.0
SQL> set lines 120
SQL> show parameter processes

NAME                     TYPE            VALUE
------------------------------------ ---------------------- ------------------------------
processes                 integer            300
SQL>

SQL> show parameter sessions

NAME                     TYPE            VALUE
------------------------------------ ---------------------- ------------------------------
sessions                 integer            472

生产环境上的值:

[oracle@www.cndba.cn trace]$ cat alert_orcl.log |grep cores
Number of processor cores in the system is 28
Number of processor cores in the system is 28
Number of processor cores in the system is 28
Number of processor cores in the system is 28

SQL> show parameter processes

NAME                     TYPE            VALUE
------------------------------------ ---------------------- ------------------------------
processes                 integer            4480

SQL>

SQL> show parameter sessions

NAME                     TYPE            VALUE
------------------------------------ ---------------------- ------------------------------
sessions                 integer            6776

官方文档上没有给出processes和cores 之间的计算公式,所以这里无法具体计算,但从实际数据来看,cores 越大,process 越大。 大约的计算公式是 processes = 150 * cores。http://www.cndba.cn/dave/article/2982http://www.cndba.cn/dave/article/2982

http://www.cndba.cn/dave/article/2982

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2262
    原创
  • 3
    翻译
  • 579
    转载
  • 192
    评论
  • 访问:8090697次
  • 积分:4350
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ