• 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 have 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: