安装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 ~]$ 

转载于:https://www.cnblogs.com/Roobbin/p/9491683.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值