Hi

I am trying to modify Oracle user´s ulimit in Red Hat AS 3.0. Modified /etc/security/limits.conf added

* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

and /etc/pam.d/login added

session required /lib/security/pam_limits.so

and /etc/profile, added

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

Whenever I logon as Oracle using SSH I receive this message

ksh: /etc/profile[60]: ulimit: exceeds allowable limit
ksh: /etc/profile[60]: ulimit: exceeds allowable limit

And max process and max files doesnt get increased when I issue ulimit -a. However if I do su - oracle from another user it does work, no error messages, limits are modified. Anyone know why?