????3?????“ulimit -n 2048”????????????????????2048??ulimit -n???root????????????root???????????????????????????????????????????????
???????t??????????????????????????????????????????????.bash_profile???????????????????
????3.2  ????????
????????????????У?????????????shell???????????????????á????shell??checkkernel????????/home/zxin10/bin???????????????Linux???????????????е?check_linux_kernel?????????????漰??????????????????????????????????????Щ???????????????Oracle??????????????????????????????????????
????##### ??????е?????
if ! grep -q "/proc/sys/kernel/shmmax" /etc/rc.d/rc.local
then
echo "echo $ShmMaxSizecfg > /proc/sys/kernel/shmmax" >> /etc/rc.d/rc.local
fi
if ! grep -q "/proc/sys/kernel/msgmni" /etc/rc.d/rc.local
then
echo "echo 300 > /proc/sys/kernel/msgmni" >> /etc/rc.d/rc.local
fi
if ! grep -q "/proc/sys/kernel/msgmnb" /etc/rc.d/rc.local
then
echo "echo 163840 > /proc/sys/kernel/msgmnb" >> /etc/rc.d/rc.local
fi
if ! grep -q "/proc/sys/kernel/msgmax" /etc/rc.d/rc.local
then
echo "echo 56383 > /proc/sys/kernel/msgmax" >> /etc/rc.d/rc.local
fi
########## ???Oralce???Щ????????????
## 2007.01.10 add for oracle10g
if [ "$db_version" = "oracle10g" ]
then
if ! grep -q "/proc/sys/net/core/rmem_max" /etc/rc.d/rc.local
then
echo "echo "250       32000     100  128" >/proc/sys/kernel/sem" >>/etc/rc.d/rc.local
echo "echo "1024      65000" >/proc/sys/net/ipv4/ip_local_port_range" >>/etc/rc.d/rc.local
echo "echo 1048576 >/proc/sys/net/core/rmem_max" >>/etc/rc.d/rc.local
echo "echo 1048576 >/proc/sys/net/core/rmem_default" >>/etc/rc.d/rc.local
echo "echo 262144  >/proc/sys/net/core/wmem_max" >>/etc/rc.d/rc.local
echo "echo 262144  >/proc/sys/net/core/wmem_default" >>/etc/rc.d/rc.local
fi
fi
????????????????redhat linux as 4.7 ?????? oracle 10g????????漰??????????????????????????????????????????
?????????????
?????????? semmsl=250; ????? semmsl=250??        ???
?????????? semmns=32000; ????? semmns=32000??    ???
?????????? semopm=100; ????? semopm=100??        ???
?????????? semmni=128; ????? semmni=128??        ???
?????????? shmmax=536870912; ????? shmmax=2147483648??   ???
?????????? shmmni=4096; ????? shmmni=4096??      ???
?????????? shmall=2097152; ????? shmall=2097152??        ???
?????????? file-max=65536; ????? file-max=65536??        ???
?????????? VERSION=2.6.9; ????? VERSION=2.6.9-78.EL??    ???
?????????? ip_local_port_range=1024 - 65000; ????? ip_local_port_range=1024 - 65000??    ???
?????????? rmem_default=262144; ????? rmem_default=1048576??     ???
?????????? rmem_max=262144; ????? rmem_max=1048576??     ???
?????????? wmem_default=262144; ????? wmem_default=262144??      ???
?????????? wmem_max=262144; ????? wmem_max=262144??      ???
?????????ɡ???μ??????????: ???
??????????????漰???????????????????
????shmmax?????????ε???????????????????????????????????????????ò???????????????ε???磨????????λ???????32M??????oracle????????????????????????????2G??
????shmmin?????????ε?С??硣???????????????????????
????shmmni?????????ε????????????????????????????Χ????????ε?????????ò???????????4096 ???????????????
????shmseg????????????????????????
????shmall???????????????????????SGA??????ò??????????ο?????????????????????????λ????????С?4KB?????????2097152??????????????
????sem????semaphores????д???ò??????????????????????????????semmsl??semmns??semopm??semmni??
????suse11lwb:~ # sysctl -a|grep sem
????kernel.sem = 250        32000   100     128
????semmns????????????????ORACLE??PROCESS???й??SEMMSL * SEMMNI
????semopm?????????????????????????????100?????????SEMMSL
????semmni?????????set?????????128
????semmsl?????????????ж???????????С250??????processes???????y??????????????processes+10??
????msgmni???????????б?????????????????16
????msgmax???????????????????????????????????????????????????????????н??У????????????????????????????????????????????????????????????????8192
????msgmnb?????????????д????????????????16384
????optmem_max?????socket??????С
????rmem_default??????socket?????????С(???)
????rmem_max??????socket??????С(???)
????wmem_default???????socket???????С(???)
????wmem_max???????socket?????С(???)
????p_local_port_range?????????????????????Χ????????o?С??32768??61000?????10000??65000????????????????????????????????????????????!
????file-max??????????????????????????????????linux???п?????????????????????ù?С??Oracle???????????????в???????