solution: -bash: ulimit: open files: cannot modify limit: Operation not permitted

It is interesting when I login to oracle in Linux and see this message on screen: “-bash: ulimit: open files: cannot modify limit: Operation not permitted“. It hit the maximum open files value in Unix/Linux user shell resource limitation. Then we run ulimit command to get the current maximum value and to increase it in the file /etc/security/limits.conf.

Example:

[oracle@dev01 ~]$ ulimit -Hn
65536
[oracle@dev01 ~]$ grep nofile /etc/security/limits.conf |grep hard
oracle hard nofile 65536
# Let me purposely give a higher value !
[oracle@dev01 ~]$ ulimit -Hn 65537
-bash: ulimit: open files: cannot modify limit: Operation not permitted

Reason:

ulimit [-SHacdefilmnpqrstuvx [limit]]

Provides control over the resources available to the shell and to processes  started by it, on systems that allow such control.  The -H and -S options specify that the hard or  soft  limit  is  set  for  the  given resource.   A hard limit cannot be increased once it is set; a soft limit may be increased up to the value of the hard limit.  If neither -H nor -S is specified, both the soft and hard limits are set.

 

Advertisements

About bigpang

Oracle Certified Master and Perl advocate
This entry was posted in Linux, Oracle Database and tagged , , , , . Bookmark the permalink.

One Response to solution: -bash: ulimit: open files: cannot modify limit: Operation not permitted

  1. Pingback: solution: -bash: ulimit: open files: cannot modify limit: Operation not permitted | 老庞闲话

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s