oracle 方法 参数默认值,Oracle 18c 中 processes 和 sessions 参数默认值修改

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

30b8dd7e83d44780b152ed860bc999f3.png

29e0bed161d904cb419e375191aa25c3.png

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

sessions 的规则还是没有改变,sessions=1.5*processes + 22。

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

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

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

这个是我们测试测试环境的:https://www.cndba.cn/dave/article/2982https://www.cndba.cn/dave/article/2982https://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

生产环境上的值:

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

[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。

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值