Red Hat ENTERPRISE LINUX AS 2.1 - Instalační příručka Strana 34

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 160
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 33
Chapter 11. Setting Shell Limits for the Oracle User
28
entire system will run out of file handles. This may prevent users logging in as the system
cannot open any PAM modules that are required for the login process. That is why the
hard limit should be set to 63536 and not 65536.
That these limits work you also need to ensure that pam_limits is configured in the /etc/pam.d/
system-auth file, or in /etc/pam.d/sshd for ssh, /etc/pam.d/su for su, or /etc/pam.d/
login for local access and telnet and disable telnet for all log in methods. Here are examples of
the two session entries in the /etc/pam.d/system-auth file:
session required /lib/security/$ISA/pam_limits.so
session required /lib/security/$ISA/pam_unix.so
Log in to the oracle user account since the changes will become effective for new login sessions only.
Note the ulimit options are different for other shells.
$ su - oracle
$ ulimit -n
4096
$
The default limit for oracle is now 4096 and the oracle user can increase the number of file handles up
to 63536:
$ su - oracle
$ ulimit -n
4096
$ ulimit -n 63536
$ ulimit -n
63536
$
To make this change permanent, you could add "ulimit -n 63536" ,for bashbash, to the
~oracle/.bash_profile file which is the user start up file for the bash shell on Red Hat Enterprise
Linux (to verify your shell execute echo $SHELL). To do this you could simply copy and paste the
following commands for oracle's bash shell:
su - oracle
cat >> ~oracle/.bash_profile << EOF
ulimit -n 63536
EOF
To make the above changes permanent, you could also set the soft limit equal to the hard limit in /
etc/security/limits.conf:
oracle soft nofile 63536
oracle hard nofile 63536
11.2. Limiting Maximum Number of Processes Available for
the Oracle User
After reading the procedure on, Section 11.1, “Limiting Maximum Number of Open File Descriptors for
the Oracle User” you should now have an understanding of "soft" and "hard" limits and how to change
shell limits.
Zobrazit stránku 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 159 160

Komentáře k této Příručce

Žádné komentáře