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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM