- 最后登录
- 2018-9-14
- 在线时间
- 103 小时
- 威望
- 0
- 金钱
- 1829
- 注册时间
- 2012-12-17
- 阅读权限
- 10
- 帖子
- 139
- 精华
- 1
- 积分
- 0
- UID
- 820
|
1#
发表于 2015-5-28 13:58:35
|
查看: 3715 |
回复: 2
oracle 10g database在linux安装时,设定oracle用户limit时:为何在pam模组里面添加了limit限制然后又要在login shell里面修改呢,这样相互的设定会被影响。经过测试login shell的设定会覆盖pam模组的设定
那为何操作手册还要设定两次limit呢
以下是oracle 10g 的linux安装手册原文- To increase the shell limits:
- 1. Add the following lines to the /etc/security/limits.conf file:
- oracle soft nproc 2047
- oracle hard nproc 16384
- oracle soft nofile 1024
- oracle hard nofile 65536
- 2. Add or edit the following line in the /etc/pam.d/login file, if it does not
- already exist:
- session required /lib/security/pam_limits.so
- session required pam_limits.so
- 3. Depending on the oracle user's default shell, make the following changes to the
- default shell start-up file:
- ■ For the Bourne, Bash, or Korn shell, add the following lines to the
- /etc/profile file (or the file on SUSE systems)/etc/profile.local:
- if [ $USER = "oracle" ]; then
- if [ $SHELL = "/bin/ksh" ]; then
- ulimit -p 16384
- ulimit -n 65536
- else
- ulimit -u 16384 -n 65536
- fi
复制代码 |
|