Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ulimit -u 16384; max user processes: cannot modify limit....

Status
Not open for further replies.

gwu

MIS
Dec 18, 2002
239
US
I am trying to install Oracle on a minimilist Linux distro. I have to modify some limits before hand.

as user "oracle", I should be able to run this command: "ulimit -u 16384"

but i get this error:
-sh: ulimit: max user processes: cannot modify limit: Operation not permitted

here is the contents of sysctl.conf:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000


/etc/security/limits.conf looks like this:
* soft nproc 2047
* hard nproc 16384
* soft nofile 4096
* hard nofile 63536


this distro does not come with pam by default. the Oracle instructions gave instructions to modify a PAM file:

/etc/pam.d/login:
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so

how dows pam fit in with this ulimit. Do I need to have PAM installed to use this ulimit command? I config'd && make && make install'd Linux-PAM-0.77.tar.gz which seemd to work and put /lib/security/pam_limits.so /lib/security/pam_unix.so on the file system but I still get the error

thanks





 
Looks as if you need to recompile the kernel to allow a higher ulimit gwu.

Now, I can tell you how to do this under HP-UX...

Mike

"Deliver me from that bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
I don't know if oracle *can* raise that limit. Can you do it as root?
 
Log in as 'root" and modify your the limits.conf file; example:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384

I would not use * - You want to exclude everyone except for oracle user.

Let us know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top