与oracle紧密相关的unix/linux内核参数

简介:         下面是几个与oracle紧密相关的unix/linux内核参数,在安装数据库的时候,一般都需要根据实际情况进行调整。 Init.ora Parameter Kernel Parameter ...
        下面是几个与oracle紧密相关的unix/linux内核参数,在安装数据库的时候,一般都需要根据实际情况进行调整。

Init.ora Parameter Kernel Parameter
db_block_buffers shmmax, shmall
db_files(maxdatafiles) nfile, maxfiles
large_pool_size shmmax, shmall
log_buffer shmmax, shmall
processes nproc, semmsl, semmns
shared_pool_size
shmmax, shmall

      具体参数的说明如下(为避免歧义,这里不做翻译):
      maxfiles - Soft file limit per process. 
      maxuprc - Maximum number of simultaneous user processes per userid. 
      nfile - Maximum number of simultaneously open files systemwide at any given time. 
      nproc - Maximum number of processes that can exist simultaneously in the system. 
      shmall - This parameter sets the total amount of shared memory pages that can be used system wide. Hence, shmall should always be at least    
                 ceil(shmmax/page_size). 
      shmmax - The maximum size(in bytes) of a single shared memory segment. 
      shmmin - The minimum size(in bytes) of a single shared memory segment. 
      shmmni - The number of shared memory identifiers. 
      shmseg - The maximum number of shared memory segments that can be attached by a process. 
      semmns - The number of semaphores in the system. 
      semmni - The number of semaphore set identifiers in the system; determines the number of semaphore sets that can be created at any one time. 
      semmsl - The maximum number of sempahores that can be in one semaphore set. It should be same size as maximum number of Oracle processes. 
     这里的大部分参数根据oracle官方的安装手册都可以进行正确的设置,但在实际工作中,发现很多DBA对shmmax和shmall这两个参数的设置经常出问题,从而影响数据的整体性能,甚至导致安装失败。
     shmmax参数是单个共享内存段的最大值,单位是bytes。这里与oracle的SGA紧密相关,因为SGA使用的就是共享内存段,所以,shmmax>=sga_target,这个参数比较容易设置错误,因为在安装的时候,如果shmmaxsga_target,安装并不会报错,但是,当数据库启动后,SGA会由多个共享内存段组成,而SGA是一个整体,多个共享内存段之间会存在通信,这些通信对于oracle来说是不必要的开销,会导致数据库性能下降。
   
shmall参数是共享内存页面数的最大值,需要与shmmax参数进行协调设置,shmall>= ceil(shmmax/page_size),其中page_size一般为4k,以具体的操作系统为准。这里要特别注意,shmall的作用域是整个系统范围,而shmmax的作用域是单个共享内存段。因此,如果在一个系统上有多个oracle实例,shmmax设置大于等于最大的sga_target,而shmall需要大于等于所有实例的sga_target之和除以sga_target。这种情况下,如果多个实例已经启动,在添加新实例时,如果shmall参数设置过小,会出现ora-27102 out of memory,导致dbca建库失败。


目录
相关文章
|
9月前
|
Oracle 关系型数据库 MySQL
Oracle Linux 8.10 编译安装sysbench
Oracle Linux 8.10 编译安装sysbench
281 34
|
8月前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
349 11
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
|
8月前
|
安全 Linux
Slax Linux如何获取增强的会话管理与启动参数选项
以上就是关于在Slax Linux中获取增强的会话管理与启动参数选项的全过程。虽然在这个过程中可能会遇到暗礁和风浪,但只要我们用心驾驶,总能找到前行的道路。在旅程中,记得享受这中间的点点滴滴,因为这些都是你成长的痕迹。祝你在这片“数码海洋”中一帆风顺!
157 26
|
8月前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
377 0
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
|
9月前
|
Linux Shell
shell_42:Linux参数移动
总的来说,参数移动是Linux shell脚本中的一个重要概念,掌握它可以帮助我们更好地处理和管理脚本中的参数。希望这个解释能帮助你理解和使用参数移动。
204 18
|
7月前
|
Oracle 关系型数据库 Linux
MyEMS开源系统安装之CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux
本指南介绍如何在CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux服务器上部署MyEMS开源能源管理系统。内容涵盖系统准备、数据库配置、多个MyEMS服务(如myems-api、myems-admin、myems-modbus-tcp等)的安装与配置,以及Nginx服务器设置和防火墙规则调整。通过完成所有步骤,您将能够访问MyEMS Admin UI和Web UI,默认端口分别为8001和80,初始登录凭据已提供。
374 0
|
9月前
|
Oracle 关系型数据库 MySQL
Oracle linux 8 二进制安装 MySQL 8.4企业版
Oracle linux 8 二进制安装 MySQL 8.4企业版
373 1
|
11月前
|
安全 Unix Linux
Unix:Linux的“祖师爷”
Unix的诞生 Unix操作系统诞生于1969年,由肯·汤普逊(Kenneth Lane Thompson)和丹尼斯·里奇(Dennis MacAlistair Ritchie)在AT&T的贝尔实验室开发。其初衷是为了在闲置的PDP-7计算机上开发一个简单的操作系统,以便进行编程和游戏。最初的Unix是用汇编语言编写的,但随后为了更高效的开发和更好的可移植性,里奇和汤普逊用C语言重写了Unix的大部分代码,这奠定了Unix的基础,并促进了C语言的广泛应用。
310 2