Oracle在Linux平台安装时涉及的/etc/security/limits.conf
在Linux平台上安装Oracle数据库时,会涉及到一个资源限制的问题,与之相关的是一个/etc/security/limits.conf文件。用Linux命令man limits.conf可获得关于这个文件的具体信息。
LIMITS.CONF(5) Linux-PAM Manual LIMITS.CONF(5)
NAME
limits.conf - configuration file for the pam_limits module
DESCRIPTION
The pam_limits.so module applies ulimit limits, nice priority and
number of simultaneous login sessions limit to user login sessions.
This description of the configuration file syntax applies to the
/etc/security/limits.conf file and *.conf files in the
/etc/security/limits.d directory.
The syntax of the lines is as follows:
<domain> <type> <item> <value>
The fields listed above should be filled as follows:
<domain>
· a username
· a groupname, with @group syntax. This should not be confused
with netgroups.
· the wildcard *, for default entry.
· the wildcard %, for maxlogins limit only, can also be used with
%group syntax. If the % wildcard is used alone it is identical
to using * with maxsyslogins limit. With a group specified
after % it limits the total number of logins of all users that
are member of the group.
· an uid range specified as <min_uid>:<max_uid>. If min_uid is
omitted, the match is exact for the max_uid. If max_uid is
· a gid range specified as @<min_gid>:<max_gid>. If min_gid is
omitted, the match is exact for the max_gid. If max_gid is
omitted, all gids greater than or equal min_gid match. For the
exact match all groups including the user´s supplementary
groups are examined. For the range matches only the user´s
primary group is examined.
· a gid specified as %:<gid> applicable to maxlogins limit only.
It limits the total number of logins of all users that are
member of the group with the specified gid.
<type>
hard
for enforcing hard resource limits. These limits are set by the
superuser and enforced by the Kernel. The user cannot raise his
requirement of system resources above such values.
soft
for enforcing soft resource limits. These limits are ones that
the user can move up or down within the permitted range by any
pre-existing hard limits. The values specified with this token
can be thought of as default values, for normal system usage.
-
for enforcing both soft and hard resource limits together.
Note, if you specify a type of ´-´ but neglect to supply the
item and value fields then the module will never enforce any
limits on the specified user/group etc. .
<item>
core
limits the core file size (KB)
data
maximum data size (KB)
fsize
maximum filesize (KB)
memlock
maximum locked-in-memory address space (KB)
nofile
maximum number of open files
rss
maximum resident set size (KB) (Ignored in Linux 2.4.30 and
higher)
stack
maximum stack size (KB)
cpu
maximum CPU time (minutes)
nproc
maximum number of processes
as
address space limit (KB)
maxlogins
maximum number of logins for this user except for this with
priority
the priority to run user process with (negative values boost
process priority)
locks
maximum locked files (Linux 2.4 and higher)
sigpending
maximum number of pending signals (Linux 2.6 and higher)
msgqueue
maximum memory used by POSIX message queues (bytes) (Linux 2.6
and higher)
nice
maximum nice priority allowed to raise to (Linux 2.6.12 and
higher) values: [-20,19]
rtprio
maximum realtime priority allowed for non-privileged processes
(Linux 2.6.12 and higher)
All items support the values -1, unlimited or infinity indicating no
limit, except for priority and nice.
If a hard limit or soft limit of a resource is set to a valid value,
but outside of the supported range of the local system, the system may
reject the new limit or unexpected behavior may occur. If the control
value required is used, the module will reject the login if a limit
could not be set.
In general, individual limits have priority over group limits, so if
you impose no limits for admin group, but one of the members in this
group have a limits line, the user will have its limits set according
to this line.
Also, please note that all limit settings are set per login. They are
not global, nor are they permanent; existing only for the duration of
the session.
In the limits configuration file, the ´#´ character introduces a
comment - after which the rest of the line is ignored.
The pam_limits module does report configuration problems found in its
configuration file and errors via syslog(3).
EXAMPLES
These are some example lines which might be specified in
/etc/security/limits.conf.
* soft core 0
* hard nofile 512
@student hard nproc 20
@faculty soft nproc 20
@faculty hard nproc 50
ftp hard nproc 0
@student - maxlogins 4
:123 hard cpu 5000
@500: soft cpu 10000
600:700 hard locks 10
AUTHOR
pam_limits was initially written by Cristian Gafton <gafton@redhat.com>
这个Linux手册里详细描述了limits.conf的所有参数意义和具体用法,之所以不翻译出来,是因为作为一名IT从业人员,必须要能阅读基本的英文文档。
Oracle在Linux平台安装时涉及的/etc/security/limits.conf相关推荐
- oracle rac linux下安装
环境: 在64位RHEL 下安装virtualbox,并创建rac1.ad.com 和rac2.ad.com 主机,所以的都是使用64位版本 Oracle:11.2.0.3 64bit 0:设置时间同 ...
- 《Linux/UNIX OpenLDAP实战指南》——2.3 Linux平台安装
本节书摘来自异步社区<Linux/UNIX OpenLDAP实战指南>一书中的第2章,第2.3节,作者:郭大勇著,更多章节内容可以访问云栖社区"异步社区"公众号查看 2 ...
- linux中oracle静默安装失败,oracle 11 Linux 静默安装 步骤及错误解决(更新中)
oracle 11 Linux 静默安装 步骤及错误解决(更新中) oracle 11 Linux 静默安装 步骤及错误解决(更新中) [待更新] oracle成功安装完成后 显示的页面如下 : 此时 ...
- linux libvpx编译安装,linux编译安装时常见错误解决办法
**configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution** 复 ...
- 使用 VMware Server 在 Oracle Enterprise Linux 上安装 Oracle RAC 10g
DBA:Linux 下载 VMware Server 1.0.1 Oracle Enterprise Linux 4,Kernel 2.6.9-42.0.0.0.1.ELsmp 适用于 Linux ...
- Asterisk 服务器 Linux平台安装教程
文章目录 前言 一.总体流程 二.源码下载地址,包括各种需要的库的地址 三.配置安装路径.库路径 四.libuuid库没有自定义配置路径,手动修改configure脚本 五.pjproject自定义路 ...
- 三.Linux平台安装MongoDB
Linux平台安装MongoDB 1.配置方法 安装(使用yum源安装) 在/etc/yum.repos.d 创建一个mongodb-org.repo源文件 vi /etc/yum.repos.d/m ...
- suse linux 安装oracle,SUSE Linux下安装Oracle 11g服务器
安装环境 Linux服务器:SUSE10 sp2 64位 Oracle服务器:Oracle11gR2 64位 系统要求 Linux安装Oracle系统要求 系统要求 说明 内存 必须高于1G的物理内存 ...
- linux安装redis插件,Linux平台安装redis及redis扩展的方法
本文实例讲述了Linux平台安装redis及redis扩展的方法.分享给大家供大家参考,具体如下: 本教程使用的文档版本为 2.8.17,下载并安装: $ wget http://download.r ...
最新文章
- 神经网络版员工离职预测
- BeanUtils工具包操作JavaBean
- 线性表(一)——顺序表
- 官方发布:深度学习高层API保姆级中文教程免费开放
- 后端把Long类型的数据传给前端,前端可能会出现精度丢失的情况,以及解决方案...
- 在WPF控件上添加Windows窗口式调整大小行为
- 尚学堂马士兵servlet/JSP笔记(一、Http协议及WebApp初步)
- Radon变换理论介绍
- 2021多校补题(8)
- 分贝通携手衡石科技,用心护好客户「钱袋子」 增收节流数百万
- Android iText向pdf模板插入数据和图片
- linux shell编写脚本,执行命令同时操作多台主机
- 【matlab】 matlab的输入和输出
- 究竟怎样写代码才算是好代码
- BAS——一种正在崛起的网络安全技术
- SpringMvc自定义消息转换器
- elecworks 电缆型号管理器
- 清华袁洋:AI+医疗的可解释性其实被古代中医研究了很多年
- mysql注入 无回显_33. 注入信息无回显?(给盲注戴上眼镜)
- cmd搭建vue前端项目详细过程