-bash: ulimit: open files: cannot modify limit: Operation not permitted
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a Linux server with oracle. When i su - oracleid i get the error above. But when i su - oracleid2 i dont get the error, just on the first oracle id. Looking at the .bash_profile for both users, they are identical. Does someone have a solution and a reason why one oracle id give this error and the other doesnt?
Thanks
Check your settings in /etc/security/limits.conf It is possible that oracleid2 has been set to allow a higher ulimit settings.
I have read that in other posts. Could you please let me know what the settings would be to set everything to unlimited and how does it take affect for oracleid2?
Generally you don't want to set unlimited so as to prevent run away processes and application from impacting your system.
What it means is there are already a max num of open files being used by oracleid.
You need to find out what they are eg lsof http://linux.die.net/man/8/lsof, fuser http://linux.die.net/man/1/fuser.
You may be able to justify raising the limit for that user, but I wouldn't set it unlimited for the reasons described above.
What it means is there are already a max num of open files being used by oracleid.
You need to find out what they are eg lsof http://linux.die.net/man/8/lsof, fuser http://linux.die.net/man/1/fuser.
You may be able to justify raising the limit for that user, but I wouldn't set it unlimited for the reasons described above.
I do not believe that the error in question is caused by reaching the max number of open files. Instead it appears the users bash profile is attempting to set the number of open files to a higher number than than the hard limit specified in limits.conf.
I would encourage the original poster to check what their bash_profile, etc are try to set the max # of open file handles to and if its reasonable set the soft/hard limits in limits.conf accordingly. If I recall correctly Oracle recommends setting them quite high, but again setting to unlimited is probably not desirable.
If however when setting a lower number you begin to encounter errors about reaching the max number of open files, you should use lsof command as Chris mentioned and check what files are open.
From http://linux.die.net/man/5/limits.conf
[quote]
hard
for enforcing hard resource limits. These limits are set by the superuser and enforced by the Kernel. The user cannot raise his requirement of system resources above such values.
[\quote]
Same principle as disk quotas, soft limits are a warning, hard limits cannot be overridden by user.
In what scenerio would only one user be affected by this limit while other users on the server aren't? If the limits.conf file has a file limit of 4096, does this mean that this userid has files open that exceeds this limit in the limit.conf file?
limits.conf allows you to set these on a per user/group level. Is it possible its specifically set higher for an the user thats not encountering problems? Maybe you can provide an excerpt or the full file here?
Chris, while i appreciate the response, i was just looking for a quick answer to my basic questions. I have read the man pages you posted before i posed this question but wanted to clarify the issues i was having even more, thats why i posted this issue. So im hoping for someone has run into this issue before and can just clarify it a little bit for me.
Last edited by investmentbnker75; 10-11-2009 at 06:39 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.