安装RAC遇到bash: ulimit: open files: cannot modify limit: Operation not permitted

在装RAC过程中,给oracle用户配置环境变量时,提示该错误,如下:

1 [root@rac1 ~]# su - oracle
2 -bash: ulimit: open files: cannot modify limit: Operation not permitted
3 [oracle@rac1 ~]$ cat /etc/ssh/sshd_config
4 cat: /etc/ssh/sshd_config: Permission denied
5 [oracle@rac1 ~]$ source .bash_profile
6 -bash: ulimit: open files: cannot modify limit: Operation not permitted
7 [oracle@rac1 ~]$ source .bash_profile
8 -bash: ulimit: open files: cannot modify limit: Operation not permitted

一开始以为是路径的问题,检查后发现路径并没有问题。于是上网查资料,部分资料是让修改/etc/ssh/sshd_config中的UseLogin;把no改为yes,但我发现这样改完后并没用消除这个错误,后来在一篇文章中提到了limit.conf(http://blog.chinaunix.net/uid-26408805-id-3305380.html);

于是将如下代码加入limit.conf文件中:

1 grid soft nproc 2047
2 grid hard nproc 16384
3 grid soft nofile 1024
4 grid hard nofile 65536
5 oracle soft nproc 2047
6 oracle hard nproc 16384
7 oracle soft nofile 1024
8 oracle hard nofile 65536

再次刷新变量就正常了。

1 [oracle@rac1 ~]$ source .bash_profile
2 [oracle@rac1 ~]$ 
posted @   小年青。  阅读(3659)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示