你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux 下 Oracle 内核参数优化

[日期:2012-12-31] 来源:Linux社区  作者:robinson_0612 [字体:大 中 小]

为Oracle 用户设置shell限制

为提高oracle性能,必须为oracle用户增加下列shell限制:

 

Shell Limit

Item in limits.conf

Hard Limit

Maximum number of open file descriptors

nofile

65536

Maximum number of processes available to a single user

nproc

16384

增加shell 限制:

添加下列行到/etc/security/limits.conf 文件:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

添加或编辑/etc/pam.d/login 文件,当下面的条目不存在时:

session required pam_limits.so

取决于Oracle用户缺省的shell环境,为缺省的shell启动文件作下列更改:

 

对于Bourne, Bash, or Korn shell, 添加下列行到/etc/profile 文件 (SUSE Linux 则添加到/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

fi

linux
相关资讯       Oracle参数  Oracle参数优化 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款