您的位置:首页 > 数据库 > Oracle

ORACLE 10升级到10.2.0.5 Patch Set遇到的内核参数检测失败问题

2016-04-07 15:33 489 查看
在测试ORACLE10.2.0.4升级到10.2.0.5PatchSet的过程中,遇到一个内核参数检查失败的问题,具体错误信息如下所示实验环境:操作系统:OracleLinuxServerrelease5.7内存:4G数据库版本:10.2.0.4.0



Checkingoperatingsystemrequirements...
Expectedresult:Oneofredhat-6,redhat-5,redhat-4,redhat-3,SuSE-11,SuSE-10,SuSE-9,asianux-3,asianux-2,asianux-1
ActualResult:redhat-5
Checkcomplete.Theoverallresultofthischeckis:Passed
=======================================================================
Checkingoperatingsystempackagerequirements...
Checkingformake-3.81;foundmake-1:3.81-3.el5.Passed
Checkingforbinutils-2.17.50.0.6;foundbinutils-2.17.50.0.6-14.el5.Passed
Checkingforgcc-4.1.1;foundgcc-4.1.2-51.el5.Passed
Checkingforlibaio-0.3.106;foundlibaio-0.3.106-5.Passed
Checkingforlibstdc++-4.1.1;foundlibstdc++-4.1.2-51.el5.Passed
Checkcomplete.Theoverallresultofthischeckis:Passed
=======================================================================
Checkingkernelparameters
Checkingforsemmsl=250;foundsemmsl=250.Passed
Checkingforsemmns=32000;foundsemmns=32000.Passed
Checkingforsemopm=100;foundsemopm=100.Passed
Checkingforsemmni=128;foundsemmni=128.Passed
Checkingforshmmax=1073741824;foundshmmax=68719476736.Passed
Checkingforshmmni=4096;foundshmmni=4096.Passed
Checkingforshmall=2097152;foundshmall=4294967296.Passed
Checkingforfile-max=101365;foundfile-max=65536.Failed<<<<
CheckingforVERSION=2.6.18;foundVERSION=2.6.32-200.13.1.el5uek.Passed
Checkingforip_local_port_range=9000-65500;foundip_local_port_range=1024-65000.Failed<<<<
Checkingforrmem_default=1048576;foundrmem_default=262144.Failed<<<<
Checkingforrmem_max=1048576;foundrmem_max=262144.Failed<<<<
Checkingforwmem_default=262144;foundwmem_default=262144.Passed
Checkingforwmem_max=262144;foundwmem_max=1048576.Passed
Checkcomplete.Theoverallresultofthischeckis:Failed<<<<
Problem:Thekernelparametersdonotmeettheminimumrequirements(seeabove).
Recommendation:Performoperatingsystemspecificinstructionstoupdatethekernelparameters.
=======================================================================
CheckingRecommendedglibcversion
Expectedresult:ATLEAST=2.5-12NOT_EQUALS=2.5-18
ActualResult:2.5-65
Checkcomplete.Theoverallresultofthischeckis:Passed
=======================================================================
Checkingphysicalmemoryrequirements...
Expectedresult:922MB
ActualResult:3956MB
Checkcomplete.Theoverallresultofthischeckis:Passed
=======================================================================
Checkingavailableswapspacerequirements...
Expectedresult:3956MB
ActualResult:13987MB
Checkcomplete.Theoverallresultofthischeckis:Passed

有点纳闷,为什么这些参数在10.2.0.1安装和升级到10.2.0.4的时候都通过检测,但是在应用补丁10.2.0.5时反而不能通过了呢?我们先看看原先的值



1:Checkingforfile-max=101365;foundfile-max=65536.Failed<<<<
这个失败,很好理解,因为processes为150,而参数65536=512*128,我们的进程数为150,大于128(fs.file-max=512xprocesses(forexample65536for128processes),所以系统给了一个推荐值(具体怎么计算,还没弄清楚)

SQL>showparameterprocesses;
NAMETYPEVALUE
-----------------------------------------------------------------------------
aq_tm_processesinteger0
db_writer_processesinteger1
gcs_server_processesinteger0
job_queue_processesinteger0
log_archive_max_processesinteger2
processesinteger150

2:Checkingforip_local_port_range=9000-65500;foundip_local_port_range=1024-65000.Failed<<<<
这个参数,官方文档推荐就是net.ipv4.ip_local_port_range=900065500,也没啥好说的。TherunInstaller(OUI)checksmayexpectthistobetheoldguidanceof"102465000".ThenewguidancefromOracledevelopmentis"900065500".PleaseallowtherunInstaller(OUI)toproceedwiththenewguidancefromOracledevelopment.
3:关键是下面这几个参数为啥会失败,有点纳闷?
Checkingforrmem_default=1048576;foundrmem_default=262144.Failed<<<<
Checkingforrmem_max=1048576;foundrmem_max=262144.Failed<<<<
Checkcomplete.Theoverallresultofthischeckis:Failed<<<<
在官方文档RequirementsForInstallingOracle10gR2OnRHEL5/OEL5(x86_64)(文档ID421308.1)里面有下面介绍,也是上面的配置值
4.Setthekernelparameters
Addthefollowingthelinesinthefile/etc/sysctl.conf
kernel.shmall=physicalRAMsize/pagesizeFormostsystems,thiswillbethevalue2097152.SeeNote301830.1formoreinformation.
kernel.shmmax=1/2ofphysicalRAM.Thiswouldbethevalue2147483648forasystemwith4GbofphysicalRAM.SeeNote567506.1formoreinformation.
kernel.shmmni=4096
kernel.sem=25032000100128
fs.file-max=512xprocesses(forexample65536for128processes)
Developmentrecommendsaminimumof327679foractivesystems.
net.ipv4.ip_local_port_range=900065500
(TherunInstaller(OUI)checksmayexpectthistobetheoldguidanceof102465000.
ThenewguidancefromOracledevelopmentis900065500.
PleaseallowtherunInstaller(OUI)toproceedwiththenewguidancefromOracledevelopment.)
net.core.rmem_default=262144
net.core.rmem_max=2097152
net.core.wmem_default=262144
net.core.wmem_max=1048576



后面在官方文档RequirementsForInstallingOracle10gR2OnRHEL5/OEL5(x86_64)(文档ID421308.1)里面看到,这个是ORACLE的一个bug来的,可以忽略这个错误,具体见截图



参考资料:
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=344982606646540&parent=DOCUMENT&sourceId=851598.1&id=421308.1&_afrWindowMode=0&_adf.ctrl-state=1cop5qqt49_151
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=438495963667013&id=1280606.1&displayIndex=1&_afrWindowMode=0&_adf.ctrl-state=820qp5uyz_4
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: