与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建库失败。


目录
相关文章
|
5月前
|
安全 网络协议 Linux
深入理解Linux内核模块:加载机制、参数传递与实战开发
本文深入解析了Linux内核模块的加载机制、参数传递方式及实战开发技巧。内容涵盖模块基础概念、加载与卸载流程、生命周期管理、参数配置方法,并通过“Hello World”模块和字符设备驱动实例,带领读者逐步掌握模块开发技能。同时,介绍了调试手段、常见问题排查、开发规范及高级特性,如内核线程、模块间通信与性能优化策略。适合希望深入理解Linux内核机制、提升系统编程能力的技术人员阅读与实践。
553 1
|
5月前
|
Ubuntu Linux
Ubuntu 23.04 用上 Linux 6.2 内核,预计下放到 22.04 LTS 版本
Linux 6.2 带来了多项内容更新,修复了 AMD 锐龙处理器设备在启用 fTPM 后的运行卡顿问题,还增强了文件系统。
|
5月前
|
Ubuntu Linux
Ubuntu 23.10 现在由Linux内核6.3提供支持
如果你想在你的个人电脑上测试一下Ubuntu 23.10的最新开发快照,你可以从官方下载服务器下载最新的每日构建ISO。然而,请记住,这是一个预发布版本,所以不要在生产机器上使用或安装它。
|
5月前
|
监控 Ubuntu Linux
什么Linux,Linux内核及Linux操作系统
上面只是简单的介绍了一下Linux操作系统的几个核心组件,其实Linux的整体架构要复杂的多。单纯从Linux内核的角度,它要管理CPU、内存、网卡、硬盘和输入输出等设备,因此内核本身分为进程调度,内存管理,虚拟文件系统,网络接口等4个核心子系统。
382 0
|
5月前
|
Web App开发 缓存 Rust
|
5月前
|
Ubuntu 安全 Linux
Ubuntu 发行版更新 Linux 内核,修复 17 个安全漏洞
本地攻击者可以利用上述漏洞,攻击 Ubuntu 22.10、Ubuntu 22.04、Ubuntu 20.04 LTS 发行版,导致拒绝服务(系统崩溃)或执行任意代码。
|
Oracle 网络协议 关系型数据库
linux安装oracle client客户端远程连接数据库
  linux安装oracle client客户端远程连接数据库。   1.到oracle官网下载basic,sqlplus,devel三个软件包   oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.tar   oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.tar   oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.tar   2.到root用户下创建一个oracle文件夹
651 0
|
Oracle 关系型数据库 Linux
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
|
存储 Oracle 关系型数据库