Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-29-2009, 11:46 PM
|
#1
|
Member
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162
Rep:
|
-bash: ulimit: open files: cannot modify limit: Operation not permitted
I have a server. When i su - userid i get the error above. Does someone have a solution?
Thanks
Last edited by investmentbnker75; 10-11-2009 at 07:35 AM.
Reason: Misc
|
|
|
09-30-2009, 01:19 AM
|
#2
|
LQ Newbie
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13
Rep:
|
Quote:
Originally Posted by investmentbnker75
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.
|
|
|
09-30-2009, 05:16 PM
|
#3
|
Member
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162
Original Poster
Rep:
|
I have read that in other posts. Could you please let me know what the settings would be to set everything to unlimited?
Last edited by investmentbnker75; 10-11-2009 at 07:36 AM.
|
|
|
09-30-2009, 05:29 PM
|
#4
|
LQ Newbie
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13
Rep:
|
Quote:
Originally Posted by investmentbnker75
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.
|
|
|
09-30-2009, 07:10 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,417
|
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.
|
|
|
09-30-2009, 09:15 PM
|
#6
|
LQ Newbie
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13
Rep:
|
Quote:
Originally Posted by chrism01
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.
|
|
|
10-06-2009, 09:53 AM
|
#7
|
Member
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162
Original Poster
Rep:
|
Well, i set the limits to unlimited. Why did this happen
Thanks for all the input!
Last edited by investmentbnker75; 10-11-2009 at 07:37 AM.
|
|
|
10-06-2009, 08:00 PM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,417
|
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.
|
|
|
10-06-2009, 10:22 PM
|
#9
|
Member
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162
Original Poster
Rep:
|
In what scenerio would only one user be affected by this limit?
Last edited by investmentbnker75; 10-11-2009 at 07:38 AM.
|
|
|
10-07-2009, 01:32 AM
|
#10
|
LQ Newbie
Registered: Sep 2003
Location: Los Angeles, CA
Distribution: Ubuntu, Debian
Posts: 13
Rep:
|
Quote:
Originally Posted by investmentbnker75
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?
|
|
|
10-07-2009, 11:32 AM
|
#11
|
Member
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162
Original Poster
Rep:
|
Thank for the response all. Why the issue happened in the first place.
Is it safe to assume that this particular user exceeded the hard limit?
Last edited by investmentbnker75; 10-11-2009 at 07:39 AM.
|
|
|
10-07-2009, 07:21 PM
|
#12
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,417
|
See the links in my post #5
|
|
|
10-09-2009, 07:52 AM
|
#13
|
Member
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162
Original Poster
Rep:
|
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 07:39 AM.
|
|
|
All times are GMT -5. The time now is 11:02 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|