安装oracle内核参数说明及设置

kernel.shmmax

说明:

  • Linux进程可以分配的单独共享内存段的最大值(byte)

  • 64位的linux操作系统,设置应该大于SGA_MAX_TARGET或MEMORY_MAX_TARGET的值/或者1/2的物理内存大小。如果设置太小,SGA会分配多个内存段,影响性能,最好将SGA放在一个共享内存段中

  • 32位的linux操作系统,最大只能到4G

查看

# grep MemTotal /proc/meminfo

# cat /proc/sys/kernel/shmmax

修改 — 三种方式,推荐第二种

# echo 21474836480 > /proc/sys/kernetbl/shmmax

# sysctl -w kernel.shmmax=21474836480

# echo "kernel.shmmax=21474836480" >> /etc/sysctl.conf

查看共享内存段的个数

ipcs -sa

kernel.shmall

  • 设置共享内存段的页数

  • 共享内存段是共享内存页大小的整数倍

  • 设置大小:shmall >= shmmax/Page size

  • page size: linux 一般为4096bite(4k)

  • 命令:

    getconf PAGESIZE

查看大小:

# cat /proc/sys/kernel/shmall

kernel.shmmni

  • 是共享内存段的最大数量

  • shmmni缺省值4096 足够

oracle support 说明:

  1. Modify your kernel settings in /etc/sysctl.conf as follows. If the current value for any parameter is higher than the value listed in this table, do not change the value of that parameter. Range values (such as net.ipv4.ip_local_port_range) must match exactly.

    kernel.shmall = half the size of physical memory in pages (If the server supports multiple databases, or uses a large SGA, then set this parameter to a value that is equal to the total amount of shared memory, in 4K pages, that the system can use at one time.)

    kernel.shmmax = 1/2 of physical RAM in bytes. This would be the value 2147483648 for a system with 4Gb of physical RAM. (refer Note 567506.1 for additional information about configuring shmmax.)

    kernel.shmmni = 4096

    kernel.sem = 250 32000 100 128

    fs.file-max = 512 x processes (for example 6815744 for 13312 processes)

    fs.aio-max-nr = 1048576

    net.ipv4.ip_local_port_range = 9000 65500

    net.core.rmem_default = 262144

    net.core.rmem_max = 4194304

    net.core.wmem_default = 262144

    net.core.wmem_max = 1048576

    vm.hugetlb_shm_group = (for example 1000 if /etc/group line for oinstall is 1000)

    1. To activate these new settings into the running kernel space, run the “sysctl –p” command as root.

    2. Set Shell Limits for the oracle User. Assuming that the “oracle” Unix user will perform the installation, do the following:

    a) Add the following settings to /etc/security/limits.conf

    oracle soft nproc 2047
    
    oracle hard nproc 16384
    
    oracle soft nofile 1024
    
    oracle hard nofile 65536
    
    oracle soft stack 10240
    
    oracle hard stack 10240

    b) Add or edit the following line in the /etc/pam.d/xdm file, if it does not already exist:

    session required pam_limits.so

    c) Add or edit the following line in the /etc/pam.d/su file, if it does not already exist:

    session required pam_limits.so
    1. The gcc and g++ RPM items above will ensure that the correct gcc / g++ versions are installed. It is also required that you ensure that these correct gcc / g++ versions are active, and in-use. Ensure that the commands “gcc –version” and “g++ –version” each return “4.3.x”.

    2. The hostname command should return the fully qualified hostname as shown

below:

% hostname -f

  hostname.domainname
  1. If any Java packages are installed on the system, unset the Java environment variables, for example JAVA_HOME.

  2. The oracle account used to install Oracle Database 12.1, should not have the Oracle install related variables set by default. For example setting ORACLE_HOME, PATH, LD_LIBRARY_PATH to include Oracle binaries in .profile, .login file and /etc/profile.d should be completely avoided.

    a.) Setting ORACLEBASE(notORACLEBASE(notORACLE_HOME) is recommended, since it eases a few prompts in the OUI runInstaller tool.

    b.) following the successful install, it is recommended to set ORACLEHOME,andtosetORACLEHOME,andtosetPATH to include ORACLEHOME/binatthebeginningoftheORACLEHOME/binatthebeginningofthePATH string.

  3. Log in as Oracle user and start the installation as follows:

    ./runInstaller

    a.) it is best practice not to use any form of “su” to start the runInstaller, in order to avoid potential display-related problems.

    b.) When performing the Oracle Database 12.1 installation, make sure to use the “runInstaller” version that comes with Oracle Database 12.1 software.

    c.) When performing any subsequent Oracle Database 12.1 patchset, make sure to use the “runInstaller” version that comes with the patchset.

参考:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Tuning_and_Optimizing_Red_Hat_Enterprise_Linux_for_Oracle_9i_and_10g_Databases/chap-Oracle_9i_and_10g_Tuning_Guide-Setting_Shared_Memory.html

oracle安装内核参数设置的更多相关文章

  1. Linux oracle安装 内核参数讲解

    在安装Oracle的时候需要调整linux的内核参数,但是各参数代表什么含义呢,下面做详细解析. Linux安装文档中给出的最小值: fs.aio-max-nr = 1048576 fs.file-m ...

  2. MySQL高可用架构之Mycat-关于Mycat安装和参数设置详解

    MySQL高可用架构之Mycat-关于Mycat安装和参数设置详解 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.Mycat介绍 1>.什么是Mycat Mycat背后是 ...

  3. (转)Linux内核参数设置sysctl命令详解

    Linux内核参数设置sysctl命令详解 原文:https://www.zhukun.net/archives/8064 sysctl是一个允许您改变正在运行中的Linux系统的接口. 它包含一些 ...

  4. linux 内核参数设置 - sysctl

    sysctl 命令用于查看和修改内核参数 查看指定参数: sysctl kernel.threads-max 查看所有参数: sysctl -a 修改指定参数: sysctl -w kernel.th ...

  5. Mysql : L闪存卡linux中的内核参数设置

    将 Nytro WarpDrive 加速卡配置为文件系统 本节说明的操作使您可调整 Nytro WarpDrive 加速卡,增强使用 Oracle Linux with Unbreakable Ent ...

  6. oracle 安装后参数调整

    关闭11g 新特性 开归档 oracle 11g安装完成需修改:1.关闭审计alter system set audit_trail=none scope=spfile sid='*'; 防止ORA- ...

  7. 使用UNIDAC连接oracle时的参数设置

    在uniconnection1里设置: server项位hostip:port:sid,如10.53.x.XX:1521:or10g 然后在Options里设置: charset:utf8 direc ...

  8. Ncomputering 安装及参数设置

    1.加域 2.添加用户:系统属性---远程

  9. 静默安装oracle 11g及参数配置优化详解

    一.安装前准备工作1.修改主机名#vi /etc/hosts   //并添加内网IP地址对应的hostname,如下127.0.0.1           localhost::1           ...

随机推荐

  1. 膜态沸腾UDF【转载】

    膜态沸腾的UDF,添加注释.其中获取VOF梯度的方法详见前面的日志,其中很多宏无法通过UDF手册查阅, 蒸汽相中的质量源项的一般形式为: 式中: 通过一阶近似,热流之差可表达为: 式中: 通过此近似, ...

  2. 和小哥哥一起刷洛谷(7) 图论之dijkistra算法

    关于dijkstra 维基百科 戴克斯特拉算法(英语:Dijkstra's algorithm,又译迪杰斯特拉算法)由荷兰计算机科学家艾兹赫尔·戴克斯特拉在1956年提出.戴克斯特拉算法使用了广度优先 ...

  3. 谷歌分析(Google Analytics) 是什么

    谷歌分析(Google Analytics) 是什么 一.总结 一句话总结: 谷歌分析,即大家俗称的ga,全称google analytics,是谷歌推出的网站流量分析工具,可以说是当前业界最强大的流 ...

  4. GCN: Graph Convolutional Network

    从CNN到GCN的联系与区别: https://www.zhihu.com/question/54504471/answer/332657604 更加详解Laplacian矩阵: https://ww ...

  5. Tosca 添加 modules,添加Library,引用重复步骤

    #增加modules modules模块式基础,好像一切都得从modules开始,想下面这样一个简单的login module就建好了 把这个module login 拖到具体的test case上 ...

  6. 如何在shell脚本中获取当前用户名?

    答:使用环境变量USER即可 如在脚本中打印当前用户名; #!/bin/sh echo "user name = ${USER}"

  7. 小D课堂 - 零基础入门SpringBoot2.X到实战_第10节 SpringBoot整合定时任务和异步任务处理_41、SpringBoot定时任务schedule讲解

    笔记 1.SpringBoot定时任务schedule讲解     简介:讲解什么是定时任务和常见定时任务区别 1.常见定时任务 Java自带的java.util.Timer类            ...

  8. net.ipv4.tcp_fin_timeout的错误理解

        按照文档的说法,貌似长久以来我对于tcp_fin_timeout的理解都是错误的 先备份在这里,再验证 提高Linux应对短连接的负载能力 在存在大量短连接的情况下,Linux的TCP栈一般都 ...

  9. flutter 数据存储 SP和sqlite

    添加插件: shared_preferences: ^0.4.2 path_provider: ^1.2.0 sqflite: ^0.12.0 import 'dart:async'; import ...

  10. 【转载】 linux系统dig和nslookup的安装

    原文地址: https://blog.csdn.net/bjbs_270/article/details/7003088 --------------------------------------- ...