• RHEL System Configuration Changes for Oracle 10G

    Below is a list of RHEL system configuration changes that Oracle 10G requires before it is installed.

    First, check the following kernel parameters using the commands below:


    /sbin/sysctl -a | grep kernel.shmall
    /sbin/sysctl -a | grep kernel.shmmax
    /sbin/sysctl -a | grep kernel.shmmni
    /sbin/sysctl -a | grep kernel.sem
    /sbin/sysctl -a | grep fs.file-max
    /sbin/sysctl -a | grep net.ipv4.ip_local_port_range
    /sbin/sysctl -a | grep net.core.rmem_default
    /sbin/sysctl -a | grep net.core.rmem_max
    /sbin/sysctl -a | grep net.core.wmem_default
    /sbin/sysctl -a | grep net.core.wmem_max
    

    If any parameters are lower than the examples below, you will have to increase them by editing “/etc/sysctl.conf” file, adding the appropriate lines as expressed below. If the current value is higher, leave it as is.

    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
    net.core.rmem_default = 262144
    net.core.rmem_max = 262144
    net.core.wmem_default = 262144
    net.core.wmem_max = 262144
    

    Next, edit your “/etc/security/limits.conf” file, adding the following lines:

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

    If your current “/etc/pam.d/login” file does not already contain the following line, add it:

    session    required     pam_limits.so
    

    Finally, add the following lines to your "/etc/profile" file:

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

    These are just the basic steps I take. See the “Oracle Database Installation Guide” for more complete instructions.

    This entry was posted on Monday, March 17th, 2008 at 1:25 pm and is filed under Data and Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 1 Comment

    Take a look at some of the responses we've had to this article.

    1. bish
      Mar 26th
      Reply

      I wrote an RPM do to this. It’s half a moving target, and half tedium. Roll it out in PXE-KS and rejoice.

  • Leave a Reply

    Let us know what you thought.

  • Name (required):

    Email (required):

    Website:

    Message:

Visitors have tagged this post: t (101) - RHEL ulimit (74) - ulimit RHEL (39) - rhel5 ulimit (34) - set rmem_default (34) - rmem_default oracle (31) - sysctl (23) - rhel 5 ulimit (21) - rmem_default sysctl (21) - ulimit rhel5 (21) - oracle 10g rhel5.2 (20) - RHEL4 ulimit (18) - RHEL5 limits.conf (18) - oracle 10g RHEL 5 (17) - oracle 10g rhel5 (17) - rmem_default sysctl.conf (16) - rmem_default (15) - Oracle rmem_default (15) - redhat rmem_default (15) - kernel.shmmax oracle (15) - install oracle 10g RHEL 5 (14) - how to set rmem_default (14) - net.core.rmem_default (14) - RHEL sysctl (13) - RHEL5 Oracle 10g (13) - oracle sysctl (13) - rmem_max oracle (13) - rmem_default redhat (13) - shmmax oracle 10g (12) - oracle 10g on RHEL5 (12) - sysctl rhel (12) - rhel 5 oracle 10g (12) - ulimit rhel 5 (12) - install oracle 10g on RHEL5 (11) - increase rmem_default (11) - installing oracle 10g on rhel 5 (10) - rhel shmmax (10) - rhel .profile (10) - rhel limits.conf (10) - shmmax oracle (9) - oracle 10g sysctl (9) - oracle10g rhel5 (9) - ulimit rhel4 (9) - RHEL sysctl.conf (9) - installing oracle 10g on rhel5 (9) - linux rmem_default (9) - install oracle 10G RHEL5 (9) - f (8) - rhel kernel parameters (8) - oracle 10g configuration (8) - rhel 5 shmmax (8) - system configuration for oracle 10g (8) - shmmax RHEL (8) - rhel 5 kernel.shmmax (8) - rmem_max redhat (8) - ulimit on rhel (7) - oracle 10g rhel4 (7) - ulimit solaris 10 (7) - change rmem_default (7) - sysctl rhel4 (7) - net.core.rmem_max oracle (7) - sysctl nofile (7) - net.core.rmem_default oracle (7) - redhat rmem_max (7) - rmem_default linux (7) - sysctl solaris 10 (6) - Oracle 10g shmmax (6) - install oracle 10g on RHEL 5 (6) - oracle ulimit rhel (6) - solaris ulimit oracle (6) - oracle 10g ulimit (6) - oracle 10g shmall (6) - oracle nproc (6) - rhel4 sysctl (6) - oracle linux sysctl (6) - what is rmem_max (6) - sysctl ulimit (6) - net.core.rmem_max (6) - rmem_default rhel (6) - setting rmem_default (6) - rhel rmem_max (5) - rmem_max rhel (5) - rmem_default solaris (5) - Oracle 10g for rhel 5 (5) - solaris 10 nproc (5) - wmem_max oracle (5) - oracle 10g sessions parameter (5) - /etc/profile ORACLE (5) - oracle 10g on rhel 5 (5) - oracle kernel.shmmax (5) - rhel change kernel parameters (5) - oracle 10g disk layout (5) - net.core.wmem_max oracle (5) - how to install oracle 10g in RHEL 5 (5) - rhel4 shmmax (5) - shmmax RHEL5 (5) - sysctl oracle (5) - how to install oracle 10g on RHEL 5 (5) - limits.conf rhel (5) - shmmax linux oracle 10g (5) - redhat 5 ulimit (5) - RHEL kernel config (4) - system configuration changes (4) - rmem_default rhel4 (4) - rhel 5 kernel parameters (4) - oracle 10g installation on rhel5 (4) - rhel sem (4) - rhel ulimit set (4) - kernel shmmax oracle (4) - how to change rmem_default (4) - rhel set ulimit (4) - change kernel rmem_default (4) - install oracle 10g rhel5.2 (4) - oracle 10 redhat 5 (4) - oracle rmem_max (4) - oracle shmmax (4) - rhel setting ulimit (4) - Oracle 10g on RHEL5.2 (4) - oracle config (4) - .profile rhel (4) - oracle 10g on rhel5.1 (4) - oracle system configuration (4) - oracle sysctl.conf (4) - RHEL rmem_default (4) - sysctl solaris (4) - oracle red hat sysctl (4) - RHEL kernel.shmmax (4) - how to install oracle 10g on rhel5 (4) - Oracle soft nofile (4) - check kernel parameters oracle nproc (4) - RHEL system (4) - sysctl.conf rhel (4) - rhel5 set ulimit (4) - ulimit in RHEL (4) - set ulimit in rhel (4) - rhel 4 ulimit -n (4) - increase ulimit rhel4 (4) - rhel5 shmmax (4) - oracle redhat sysctl (3) - configuration of 10g with Net (3) - RHEL ulimit nofile (3) - oracle 10g rmem_default (3) - rhel4 kernel config (3) - 10g wmem_max (3) - 10g RHEL5 (3) - shmmax rhel4 (3) - shmmax rhel 5 (3) - sysctl rhel 4 (3) - rmem_default redhat 4 (3) - oracle 10g installation in rhel4 (3) -