Re: how to increase hardnofiles & softnofiles
"Alexei_Roudnev" <[email protected]>
| Newsgroups | gmane.linux.suse.oracle.general |
|---|---|
| Message-ID | <[email protected]> |
1) # # This script extends limits for oracle user in the system # if grep oracle /etc/security/limits.conf then echo "Limits configured already" else cat >> /etc/security/limits.conf <<EOF oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 EOF echo "/etc/security/limits.conf updated" fi if grep pam_limits /etc/pam.d/login then echo "/etc/pam.d/login already have limits module" else echo "session required /lib/security/pam_limits.so" >> /etc/pam.d/login echo "/etc/pam.d/login updated" fi 2) Increase limit in the kernel (orarun do it itself) ----- Original Message ----- From: "De Witte Koen" <[email protected]> To: <[email protected]> Sent: Monday, January 07, 2008 7:10 AM Subject: Re: [suse-oracle] how to increase hardnofiles & softnofiles > in /etc/security/limits.conf you will find following kernel parameters > ## added by orarun ## > oracle soft nproc 2047 > oracle hard nproc 16384 > oracle soft nofile 1024 > oracle hard nofile 65536 > > > however, these limits are only set when pam is configured with > pam_limits.so > it needs to be done for > /etc/pam.d/login > > add line > session required pam_limits.so # added by orarun > > > and if you want those limits in KDE or Gnome or X then you also need to > add this line to /etc/pam.d/xdm > otherwise the installation program will not give the correct results. > > That's how I did it, > > Regards, > Koen De Witte > > -----Original Message----- > From: Cristian Veronesi <[email protected]> > To: suse-oracle <[email protected]> > Subject: [suse-oracle] how to increase hardnofiles & softnofiles > Date: Mon, 07 Jan 2008 15:51:09 +0100 > > > A few months ago I set up a SLES9 SP3 system with Oracle Application > Server 10.1.2. I remember I had to play with hardnofiles and softnofiles > but I'm not able to remember what have I done exactly. > > Now I'm trying to set up a second system hydentical to the first but I'm > not able to pass the prerequisite checks, I always get these messages: > > Checking for hardnofiles=65536; found hardnofiles=1024. Failed <<<< > Checking for softnofiles=4096; found softnofiles=1024. Failed <<<< > > Indeed, on the first system I get these values with a non-root user: > > $ ulimit -Sa | grep files > open files (-n) 65536 > $ ulimit -Ha | grep files > open files (-n) 65536 > > While on the second system I get these values: > > $ ulimit -Sa | grep files > open files (-n) 1024 > $ ulimit -Ha | grep files > open files (-n) 1024 > > Unfortunately I'm not able to remember which changes I made to the first > system in order to set these values for all users. Any suggestions? > > Thank you. Kind regards, Cristian. > > ************************************************************ > Any reaction to this e-mail or any other mail, including any > files transmitted therewith to sender's e-mail address(es) > shall be dealt with not as private, but as business > communication(s) and shall be registered as such. > ************************************************************ > -- To unsubscribe, email: [email protected] For additional commands, email: [email protected] Please see http://www.suse.com/oracle/ before posting