background image

    kernel.shmmax = 1/2 of physical RAM. 
           This  would  be  the  value  2147483648  for  a  system  with  4Gb  of  physical  RAM.  See  Note 
567506.1 for more information.
    kernel.shmmni = 4096 
    kernel.sem = 250 32000 100 128 
    fs.file-max = 512 x processes (for example 65536 for 128 processes) 
    Development recommends a minimum of 327679 for active systems. 
    net.ipv4.ip_local_port_range = 9000 65500 
    (The runInstaller (OUI) checks may expect this to be the old guidance of 1024 65000. 
    The new guidance from Oracle development is 9000 65500. 
       Please  allow  the  runInstaller  (OUI)  to  proceed  with  the  new  guidance  from  Oracle 
development.) 
    net.core.rmem_default = 262144 
    net.core.rmem_max = 2097152 
    net.core.wmem_default = 262144 
    net.core.wmem_max = 1048576 
  
  Oralce 11g R2 on RHEL (and OEL) 5 on AMD64/EM64T [ID 880989.1]    
    kernel.shmall = physical RAM size / pagesize 
      For most systems, this will be the value 2097152. See Note 301830.1 for more information. 
      kernel.shmmax = 1/2 of physical RAM. 
        This would be the value 2147483648 for a system with 4Gb of physical RAM. 
      kernel.shmmni = 4096 
      kernel.sem = 250 32000 100 128 
      fs.file-max = 512 x processes (for example 6815744 for 13312 processes)
      fs.aio-max-nr = 1048576
      net.ipv4.ip_local_port_range = 9000 65500 
      net.core.rmem_default = 262144 
      net.core.rmem_max = 4194304 
      net.core.wmem_default = 262144 
      net.core.wmem_max = 1048576
  
  对于 Oracle 11g,Oracle 建议如果系统当前设置的值大于上述列出的值,则无需修改,保
留原值。
  从上面可知,sysctl.conf 包含了所有的内核参数文件,且以 kernel 开头,下面对这几个重
要参数进行逐一描述。
    
4、参数 SHMMAX 
  a、参数描述(From meatlink [ID 15566.1])   Shared memory allocation
   ========================
   
     Oracle has 3 different possible models for the SGA - one-segment,
     contiguous multi-segment, and non-contiguous multi-segment.
     When attempting to allocate and attach shared memory for the SGA, it