Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

stuartuAug 22 2010 — edited Aug 22 2010
I have a new RHEL 5.5 install with Oracle 10.2.0.4 32-bit, but when logging in as 'oracle' user, I get the following error:
-bash: ulimit: open files: cannot modify limit: Operation not permitted

The last line of my /etc/profile does not appear to be working:
cat /etc/profile
....
....
if [ $USER = "oracle" ]; then 
        ulimit -u 16384 
        ulimit -n 65536 
fi

# EOF
Running it from the Unix prompt shows this:
[oracle@test pam.d]$ ulimit -n 65536
-bash: ulimit: open files: cannot modify limit: Operation not permitted

[oracle@test pam.d]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 16512
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 16384
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
My /etc/pam/d/login has the required entry:
session    required     pam_limits.so
... and my /etc/security/limits.conf has the required entries:
oracle          soft    nproc           2047
oracle          hard    nproc           16384
oracle          soft    nofile          1024
oracle          hard    nofile          65536
However, if I 'su - oracle', I don't have this problem, and the ulimit is okay.
open files                      (-n) 65536
Is someone able to point me in the right direction as to what might be the problem here? I don't think I've forgotten anything (it's not like this is my first install...)

Thanks in advance,

Stuart.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2010
Added on Aug 22 2010
4 comments
13,724 views