10gR2CRSInstall)10gR2CRS和RDBMS安装主要步骤•安装CRS软件10.2.0.1(baseversion)-从DVD安装•安装数据库软件10.2.0.1(baseversion),选择只安装软件–从DVD安装•安装Oracle10.2.0.3patchset10.2.0.3patchset包括CRS和数据库软件部分-先把CRS升级到10.2.0.3-再把数据库软件升级到10.2.0.3参考10.2.0.3patchsetreadme文件•用数据库软件的$ORACLE_HOME/bin目录下的dbca创建RAC数据库•安装CRS和数据库bundle或单个patch10gR2CRS和RDBMS安装安装CRS和RDBMS前的主要准备工作:•CreatingRequiredOSGroupsandUser用户:oracle-确保所有节点上id号一致nobody组:dba-确保所有节点上id号一致oinstall(primarygroup)-确保所有节点上id号一致hagsuser-OnlyifusingIBMHACMP10gR2CRS和RDBMS安装安装CRS和RDBMS前的主要准备工作:•ConfiguringtheoracleUser'sEnv.ORACLE_BASEORACLE_HOMEORA_ASM_HOME(ifseparatefromdatabasehome)ORA_CRS_HOMEORA_NLS10-NotORA_NLS33,ORA_NLS33是用于oracle8,8i,9-$OH/nls/data,not$OH/ocommon/nls/admin/dataLD_LIBRARY_PATHPATHumask022•ConfigureShellLimitsforOracleuser$ulimit–a10gR2CRS和RDBMS安装安装CRS和RDBMS前的主要准备工作:•ConfiguretheHangcheckTimer(Linux)•ConfiguringSSHonAllClusterNodes•Hardwareverification/configurationRAM(1GB)diskspaceswap/tmp(400MB)•Softwareverification/configurationVersion,packages,patches•Settingup/verifyingkernelparametersshmmax等-fordatabaseudp参数-forRACinterconnectLLT参数(OnlyforVCS)-forRACinterconnect10gR2CRS和RDBMS安装安装CRS和RDBMS前的主要准备工作:•SettingUptheNetwork-网络交换机-dedicatedswitchforRACinterconnect-crossovercableisnotsupportedforRACinterconnect-/etc/hosts-网卡-theinterfacenamesassociatedwiththenetworkadaptersforeachnetworkmustbethesameonallnodes(网卡名字要一致,eth0,eth1,etc)-publicip-virtualip(RACVIP)-一定要与public的ip在同一个子网(ApplicationVIP(usrvip)支持multiplevips/multiplelisteners)-privateip-通常使用10.10.x.x或192.168.x.x10gR2CRS和RDBMS安装安装CRS和RDBMS前的主要准备工作:•SettingUptheNetworkOptionalbutrecommended–多块网卡绑定:SetupredundancyforpublicandprivatenetworkifmultipleNICs:IBM-EtherChannel-使用较多-HACMPSwapAdapterHP-Autoportaggregation(APA)-使用较多-MC/ServiceGuardLocalSwitchSUN-Trunking-IPMultipathing(IPMP)-使用较多Linux-NICbonding-使用较多10gR2CRS和RDBMS安装安装CRS和RDBMS前的主要准备工作:•InstallandconfigureOCFS2(linux)•installandconfigureasmlib(Linux)-在linux上是必须的吗?No,usedforasmperformance•Settingupsharedstorage(cfs,asm,rawdevices)-OCR(doesn’tsupportASM)-Votingdisks(doesn’tsupportASM)-Datafiles-FlashRecoveryArea(doesn’tsupportrawdevices)•RunCVUtocheckvariousrequirementSetupDISPLAYenvironmentvariablefordisplayofGUI.VerifyDISPLAYproperlysetbyrunningxclock.Donotproceedunlessxclockdisplaysproperly.ClickNextVerifyPathisproperlypointingtointended$CRS_HOMElocation,clickNext.NOTE:Typointhescreenshotabove.Pathshouldbe/u01/app/crs/product/10.2.0/crsClickNextNOTE:Theinstallerseemstomakesomeassumptionsregardingnamingconventionsforprivateinterconnectandvipnames.ItassumesthatthelocalinstallnodeisgoingtobepartoftheclusterandaddsittotheClusterNodeslistwiththedefaultnamingconvention.Inthiscase,thedefaultsdidn'tmatchthenetworkingsetupofthesystem.ClickEditandchangethenamesappropriately.Afterenteringthecorrectnames,clickOK.ThenclickAddtoaddadditionalClusterNodeswiththeappropriatenetworknames.ThePublicnodeandVirtualHostnamesshouldproperlyresolveinDNSandthe/etc/hostsfile.UsenslookuptoverifythatthenamesproperlyresolveinDNS.Verifyboththefullyqualifiedandshortnames.Allshouldresolveproperly.AlsoverifyreverselookupsusingnslookuptoresolvetheIPaddressestotheproperhostnames.ClickOKOncealltheClusterNodeshavebeenadded,clickNext.NoteaboutClusternamingconventions.AdoptanamingconventionforclustersthroughoutanorganizationwiththoughtowardmonitoringtheseclustersusingGridControl.IfclusternamesaredefinedinahaphazardwaythenthiscancauseproblemslaterwhenconfiguringGridControl.Forinstance,noduplicateclusternamesshouldbeused.ConsultGridControldocumentationformoredetailsontheclusterconfigurationprocess.Theinstallerautomaticallyidentifiesthesystem'sethernetinterfacesanddifferentiatesbetweenprivateandpublicIPsubnets(10.and192.networksareassumedtobeprivate)Thisshouldbesetupthesameonalltheserversthatwillbeinthecluster.Theyshouldallbeonthesamesubnet.Inthiscasewewanttouseeth0asthepublicinterfaceandeth1fortheprivateinterconnect.Veth31willnotbeusedaspartoftheconfiguration.Clickit'slineinthelistandthenclickEdit.Indicate'Donotuse'byselectingtheproperradiobutton,clickOK.ClickNextIn10gR2theOCRandvotingdiskcanbemultiplexed.Inthiscase,5rawdeviceshavebeensetuponthesharedstoragepriortoinstallationinordertoprovidelocationsforthesefiles(raw3–raw7).Afterfillingoutthelocationsforeachappropriately,clickNext.ClickNext.ClickInstallWaitforcompletionoftheinstallation.TheCRSsoftwarewillbeautomaticallycopiedtotheotherclusternodes(assumingthatsshisproperlyconfiguredbeforehand).Oncethesoftwarehasbeencopiedtoallnodesintheclusteryouarepromptedtorunacoupleofscriptsasrootoneachnode.Itisveryimportantthattheynotberunsimultaneously.RunorainstRoot.shoneachnodeoneatatimeandthenrunroot.shfirstontheinstallnode.root.shformatstheOCRandvotingdiskandbringsuptheCRSstackonthefirstnode.Thiscantakeafewminutes.Waituntiltheroot.shscriptfinishesbeforerunningitonsubsequentnodes.Runroot.shonsubsequentnodesoneatatime.Oneachnodethatroot.shisrunitupdatestheOCRandvotingdiskswithinfoaboutthatnodeandthenbringsuptheCRSstack.Belowistheoutputofthesescriptsontheinstallnodeandt