When login as oracle user, the following message showed on the console.
-bash: ulimit: max user processes: cannot modify limit:operation not permitted.
ulimit option ‘-u‘ which means maximum number of user processes was set to a bigger one directly by adding the following line in the $HOME/.bash_profile.
$ ulimit -u 4096 $ ulimit -u 4096
But originally the maximum number of user processes was set to 1024 in /etc/profile for oracle user.
if [ $USER = "oracle" ]; then ulimit -u 1024 ...... fi
When the option of ulimit ‘-u’ was set in the /etc/profile, it can’t be changed to a bigger one directly by adding ‘ulimit -u 4096’ line in $HOME/.bash_profile.
Removing ulimit entries from .bash_profile
1. Remove ulimit entries from $HOME/.bash_profile file if it exists. For example, remove lines with ulimit set as shown below from the .bash_profile:
ulimit -u 4096
2. Add the relevant entries in /etc/profile as shown below:
if [ $USER = "oracle" ]; then ulimit -u 4096 ...... fi