10gR2RHEL4RAC.docx
- 文档编号:7691452
- 上传时间:2023-01-25
- 格式:DOCX
- 页数:17
- 大小:1.22MB
10gR2RHEL4RAC.docx
《10gR2RHEL4RAC.docx》由会员分享,可在线阅读,更多相关《10gR2RHEL4RAC.docx(17页珍藏版)》请在冰豆网上搜索。
10gR2RHEL4RAC
July6,2006
Installing10gR2ClusterwareonRedhat4.2AdvancedServer
ByTarrySingh
ABriefPeptalk:
ChoosingaperfectOracleRACconfiguration
WehavedonethepreparationandgoneaboutinstallingtheOCFS2andASMonourRHEL4.2servers.OracleRACisgrowinginpopularityandIlikedthispageatOraclemyself.Here,youcangetpre-tested,documentedbestpracticesofinstallingOracleonLinuxbasedsystems.Inaddition,somegoodrecommendations,fromthisauthoronInfostor,willhelpcompaniesdecidewhattogofor.IlikethequoteinwhichhesaysthatyoucanalsodeployRAConsystemsbesidesLinux(whichIwillbedocumentinghereasanongoingefforttodemoRAConSolaris,HP-UXandAIXserversaswell).
GettingtheOracleRACsoftware
Wehavegonethroughthisseveraltimes,butjusttokeepyouintheloop,gotoPart6togetallthenecessarysoftwareyouneed.
Nowgoaheadandunzipallthefiles,whileloggedonasan"Oracle"user,into/tmp/orasoftdirectory(youarefreetochoosethedirectory,Inameitorasofttoavoidanyconfusionwhenlookingforthefiles).
Wearetalkingaboutthesethreefilesandwillgoaheadandunziptheminthe/tmp/orasoftfolder
∙OracleCompleteDatabaseRelease2
∙OracleDatabase10gCompanionCDRelease2(10.2.0.1.0)forLinuxx86
∙OracleClusterwareRelease2(10.2.0.1.0)forLinuxx86
ExtracttheClusterwarepackageasfollows:
#su-oracle
$cd~tmp/orasoft
$unzip10201_clusterware_linux32.zip
$unzip10201_database_linux32.zip
$unzip10201_companion_linux32.zip
OKnowmakesurethatyouareloggedinasuser"Oracle,"andhaveunsetacoupleofparameterssuchasORACLE_HOME,etc.andallowforxserverconnectionsforaccessfromanyconsole.
Afterbeingloggedinasroot,dothefollowing:
#xhost+
ThenlogonasOracleandfollowthestepsasdetailedoutintheprintscreens:
Welcomescreen,clicknext.
Specifyinventorydirectoryandcredentials.Wechoose/u01/app/oracle/oraInventoryandspecify"dba"astheoperatingsystemusername.
Specifyhomedetails.
Productspecificpre-requisitechecks.
Addanewnode:
Theprimarynodewhereyouarerunningtheinstallerwillbepickedupbytheinstallerandyouwillhavetospecifytheadditionalnode(s)byclickingthe"Add"button:
Wewillleavetheclusternameas"crs",youcanhoweverchooseanamethatfitsyourinstallationtemplate.
YourEthernetinterfacesarepresentedtoyou:
SpecifytheOracleCRSlocation:
Rememberwecreatedthreefiles,whichweformattedwithOCFS.
SpecifyVotingDiskLocation:
Youarepresentedwithasummary.Ifallissatisfactoryclickoninstall:
Installerruns:
Whentheinstallationisalmostdone,youwillbepromptedtorunorainstRoot.shandroot.shscripts.Youwillhavetoopenanewconsole(donotdoitinthesameconsoleasyourinstaller!
)beginningfromtheprimarynodewhereyouarecarryingtheinstallationandloggedinas"root"runthescript.
Nowgothethe/u01/app/oracle/oraInventorydirectoryandrunorainstRoot.sh.YouhavetodothisonALLNODES!
Asyoucansee,itchangesthepermissionsoftheoraInventoryandassignsDBAthegroupnameofthesamedirectory.
Therearemanydiscussionsaboutmiscounts,specificallytotheVMwareenvironment(likeVMwareServerORWorkstation),wheretheoverheadmightjustnotbesupportiveenoughtoallowforafullandrobustfunctioningofourRAC.ThisisalsonecessarywhenrunningDBCAinordertoinstallourdatabase.Notdoingsomightresultinanora-03113error.
Whatactuallyistheproblemthen?
InVMwareyoumightencounterslowerdiskresponsiveness(dependingonhowfastandwhatconfigurationyouhaveforyourdisks,IhadsuccessonanoldserverwithRAID0andproblemswithaRAID5/SANdisk).However,thisdoesnothavetobethecaseforVMwareRACtestbed,itcanalsooccurinapoorlyselectedhardwareconfiguration.TheCSSmiscounthasadefaultvalueof60andhappenstobeabittoosmallfortheCSStomisstheheartbeatandeventuallyendingupevictingthenodeandthusthrowingtheora-03113error.BeginningwiththeOracle10gR1series,thealgorithmhaschangedtoallowalengthiertimeout.Ihavehadsuccesswith300,butyoucangoashighas600.Sonow,thequestionarisesofhowtodoit.Ifyouhaven’tdoneit,doitnowbydoing:
Queryyournodes:
$ORA_CRS_HOME/bin/crsctlgetcssmisscount
60
Queryagain:
$ORA_CRS_HOME/bin/crsctlgetcssmisscount
360
Nowwegoaboutinstallingtheroot.shscript:
Youdoseethattheclscfgcomplainsthatthemiscountmustbebelow360andthatiswhenIwentlookingforthetradeoff,tryingtosetitjustbelow300.Moreover,afterdoingsoyouwillneedtorunthisroot.shonALLNODES!
DespitetheerrorofthatONS(NotificationServicesdaemon),Iwasabletosuccessfullyconcludetheinstallation.ThelastnoderunstheVIPCA(VIPConfigurationAgent).
Asyoucansee,theconfigurationstarts:
Andcompletessuccessfully.
Doingaquickcheckontheclusternodes:
Andalsocheckingifallthedaemonswillstartautomatically:
Conclusion:
Inthisarticle,wetookourfirststepstowardsinstallingtheOracleClusterwareandasyousawyourself,theinstallationwentfine.Thatwasduetothepainstakingandyetrewardingpreparatoryeffortsthatweputinthebeginningofourseries.Inournextarticle,wewillgoaheadandinstallOraclesoftwareandtheCompanionCD.ThenwewilltakeonourDBCA(DatabaseCreationAssistant).InourOracleRACadministrationseries,wewillgoaheadandadministertheclusterwarecomponents.AlthoughIhadstartedthisseriestodoaWindowsandLinuxRACinstallation,IamtemptedtolookatHP-UX,AIXandSolaristoo,hopefullymyVMwareserverwillgetoutofbetaandIcangetonwiththeseconfigurationsaswell.
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 10 gR2RHEL4RAC