-bash: ulimit: open files: cannot modify limit: Operation not permitted
Okay, I know similiar threads have been posted before, but I'm stumped.
Background:
Linux 2.4.21-32.ELsmp
Development server runing Oracle 10.x
We've come across an issue within the Oracle RDBMS Server for which Oracle are recommending changing the following values for the oracle account:
open files from (-n) 65536 to unlimited
stack size from (kbytes, -s) 10240 to unlimited
Current ulimit -a (as oracle):
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 4
max memory size (kbytes, -m) unlimited
open files (-n) 65536
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 16384
virtual memory (kbytes, -v) unlimited
So, login as oracle, 'ulimit -s unlimited' - no issues, works fine.
However, 'ulimit -n <anything above current limit>' .e.g 'ulimit -n 65537 - give the error '-bash: ulimit: open files: cannot modify limit: Operation not permitted'
'ulimit -n 50000' works okay, as its below the current 65536 limit. If however we then try and raise the limit again e.g 'ulimit -n 50001' - we also receive the same error (even though still below 65536).
/etc/security/limits/conf:
#<domain> <type> <item> <value>
#
#* soft core 0
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1000000
oracle hard nofile 1000000
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
# End of file
/etc/pam.d/login:#%PAM-1.0
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth
session optional pam_console.so
session required /lib/security/pam_limits.so
# above line added for oracle
Ideas?
Thanks
Paul
|