Transcript

Oracle 11g RAC On Windows 2003 Using VMware ServerThis article describes the installation of Oracle 11g release 1 (11.1) RAC on Windows 2003 Serer Standard !dition "sing #$ware Serer with no additional shared dis% deices. &ntrod"ction 'ownload Software #$ware Serer &nstallation #irt"al $achine Set"( )"est O(erating S*ste+ &nstallation Oracle &nstallation ,rere-"isites &nstall #$ware Client Tools Create Shared 'is%s Clone the #irt"al $achine &nstall the Cl"sterware Software &nstall the 'atabase Software and Create an AS$ &nstance Create a 'atabase "sing the '.CA T/S Config"ration Chec% the Stat"s of the RACIntroductionOne of the biggest obstacles (reenting (eo(le fro+ setting "( test RAC eniron+ents is the re-"ire+ent for shared storage. &n a (rod"ction eniron+ent0 shared storage is often (roided b* a SA/ or high1end /AS deice0 b"t both of these o(tions are er* e2(ensie when all *o" want to do is get so+e e2(erience installing and "sing RAC. A chea(er alternatie is to "se #$ware Serer to fa%e the shared storage.3sing #$ware Serer *o" can r"n +"lti(le #irt"al $achines (#$s) on a single serer0 allowing*o" to r"n both RAC nodes on a single +achine. &n addition0 it allows *o" to set "( shared irt"al dis%s0 oerco+ing the obstacle of e2(ensie shared storage..efore *o" la"nch into this installation0 here are a few things to consider. The finished s*ste+ incl"des the host o(erating s*ste+0 two g"est o(erating s*ste+s0 twosets of Oracle Cl"sterware0 two AS$ instances and two 'atabase instances all on a singleserer. As *o" can i+agine0 this re-"ires a significant a+o"nt of dis% s(ace0 C,3 and +e+or*. To co+(lete this installation & "sed a d"al 3.0) 4eon serer with 5) of +e+or*. This (roced"re (roides a bare bones installation to get the RAC wor%ing. There is no red"ndanc* in the Cl"sterware installation or the AS$ installation. To add this0 si+(l* create do"ble the a+o"nt of shared dis%s and select the 6/or+al6 red"ndanc* o(tion when it is offered. Of co"rse0 this will ta%e +ore dis% s(ace. '"ring the irt"al dis% creation0 & alwa*s choose not to (reallocate the dis% s(ace. This +a%es irt"al dis% access slower d"ring the installation0 b"t saes on wasted dis% s(ace. This is not0 and sho"ld not be considered0 a (rod"ction1read* s*ste+. &t7s si+(l* to allow *o" to get "sed to installing and "sing RAC.Download Sotware'ownload the following software. #$ware Serer Oracle 11g Release 1 (11.1) CRS and '. softwareVMware Server Installation8or this article0 & "sed CentOS 9 as the host o(erating s*ste+s. To "se Windows as the host o(erating s*ste+0 si+(l* r"n the e2ec"table installation file and ignore the following #$ware Serer installation infor+ation.8irst0 install the #$ware Serer software. On :in"2 *o" do this with the following co++and as the root "ser.# rpm -Uvh VMware-server-*.rpmPreparing...########################################### [100%] 1:VMware-server########################################### [100%]#Then finish the config"ration b* r"nning the +ware1config.(l scri(t as the root "ser. $ost of the -"estions can be answered with the defa"lt res(onse b* (ressing the ret"rn %e*. The o"t("t below shows +* res(onses to the -"estions.# vmware-config.plMaing s!re services for VMware "erver are s#oppe$."#opping VMware services: Vir#!al machine moni#or [%&]'o! m!s# rea$ an$ accep# #he (n$ User )icense *greemen# #o con#in!e.Press en#er #o $ispla+ i#.VM,*-(. /01."%23,*-( 4(3* 3("3 *5-((M(03*** ($i#ie$ o!# license agreemen# ***6o +o! accep#7 8+es9no: +es3han +o!.1onfig!ring fall;ac 53&< =.> li;raries./n which $irec#or+ $o +o! wan# #o ins#all #he mime #+pe icons7[9!sr9share9icons],ha# $irec#or+ con#ains +o!r $es#op men! en#r+ files7 3hese files have a.$es#op file e?#ension. [9!sr9share9applica#ions]/n which $irec#or+ $o +o! wan# #o ins#all #he applica#ion@s icon7[9!sr9share9pi?maps]3r+ing #o fin$ a s!i#a;le vmmon mo$!le for +o!r r!nning ernel.3he mo$!le ;l$-=.A.B-C.()-iADAsmp--E()> loa$s perfec#l+ in #he r!nning ernel.6o +o! wan# ne#woring for +o!r vir#!al machines7 8+es9no9help: [+es]1onfig!ring a ;ri$ge$ ne#wor for vmne#0.3he following ;ri$ge$ ne#wors have ;een $efine$:. vmne#0 is ;ri$ge$ #o e#h0*ll +o!r e#herne# in#erfaces are alrea$+ ;ri$ge$.6o +o! wan# #o ;e a;le #o !se 0*3 ne#woring in +o!r vir#!al machines7 8+es9no:[+es]1onfig!ring a 0*3 ne#wor for vmne#D.6o +o! wan# #his program #o pro;e for an !n!se$ priva#e s!;ne#7 8+es9no9help:[+es]Pro;ing for an !n!se$ priva#e s!;ne# 8#his can #ae some #ime:...3he s!;ne# 1F=.1A.=10.09=CC.=CC.=CC.0 appears #o ;e !n!se$.3he following 0*3 ne#wors have ;een $efine$:. vmne#D is a 0*3 ne#wor on priva#e s!;ne# 1F=.1A.=10.0.6o +o! wish #o config!re ano#her 0*3 ne#wor7 8+es9no: [no]6o +o! wan# #o ;e a;le #o !se hos#-onl+ ne#woring in +o!r vir#!al machines7[+es] no3r+ing #o fin$ a s!i#a;le vmne# mo$!le for +o!r r!nning ernel.3he mo$!le ;l$-=.A.B-C.()-iADAsmp--E()> loa$s perfec#l+ in #he r!nning ernel.Please specif+ a por# for remo#e console connec#ions #o !se [B0=]"#opping ?ine#$: [%&]"#ar#ing ?ine#$: [%&]1onfig!ring #he VMware VmPerl "crip#ing *P/.4!il$ing #he VMware VmPerl "crip#ing *P/.Using compiler G9!sr9;in9gccG. Use environmen# varia;le 11 #o overri$e.3he ins#alla#ion of #he VMware VmPerl "crip#ing *P/ s!ccee$e$.6o +o! wan# #his program #o se# !p permissions for +o!r regis#ere$ vir#!almachines73his will ;e $one ;+ se##ing new permissions on all files fo!n$ in#he G9e#c9vmware9vm-lis#G file. [no] +es5enera#ing "") "erver 1er#ifica#e/n which $irec#or+ $o +o! wan# #o eep +o!r vir#!al machine files7[9var9li;9vmware9Vir#!al Machines] 9!019VM6o +o! wan# #o en#er a serial n!m;er now7 8+es9no9help: [no] +esPlease en#er +o!r =0-charac#er serial n!m;er.3+pe HHHHH-HHHHH-HHHHH-HHHHH or @(n#er@ #o cancel:(03(--'%U--"(-/*)-0UM4(-"#ar#ing VMware services: Vir#!al machine moni#or [%&] Vir#!al e#herne#[%&] 4ri$ge$ ne#woring on 9$ev9vmne#0 [%&] Eos#-onl+ ne#woring on 9$ev9vmne#D 8;acgro!n$:[%&] 0*3 service on 9$ev9vmne#D[%&] "#ar#ing VMware vir#!al machines... [%&]3he config!ra#ion of VMware "erver e.?.p ;!il$-==DF> for )in!? for #his r!nningernel comple#e$ s!ccessf!ll+.#The #$ware Serer Console is started b* iss"ing the co++and 6+ware6 at the co++and (ro+(t0 or b* selecting it fro+ the 6S*ste+ Tools6 +en".On the 6Connect to ;ost6 dialog0 acce(t the 6:ocal host6 o(tion b* clic%ing the 6Connect6 b"tton.ard6.Clic% the 6/e2t6 b"tton to contin"e.Select the 6!2tended (artition6 o(tion0 then clic% the 6/e2t6 b"tton.Acce(t the defa"lt (artition si>e b* clic%ing the 6/e2t6 b"tton.Co+(lete the (artition b* clic%ing the 68inish6 b"tton.The (artition will now be dis(la*ed with a green bar. Right1clic% on the (artition and select the 6/ew :ogical 'rie6 o(tion to restart the 6/ew ,artition Wi>ard6.Clic% the 6/e2t6 b"tton to contin"e.Acce(t the 6:ogical drie6 o(tion b* clic%ing the 6/e2t6 b"tton.Acce(t the defa"lt (artition si>e b* clic%ing the 6/e2t6 b"tton.Select the 6'o not assign a drie letter or drie (ath6 o(tion0 then clic% the 6/e2t6 b"tton.Select the 6'o not for+at this (artition6 o(tion0 then clic% the 6/e2t6 b"tton.Co+(lete the logical drie b* clic%ing the 68inish6 b"tton.The drie sho"ld now be dis(la*ed as a health* drie with a bl"e bar.Re(eat the (reio"s (artitioning ste(s for the re+aining 5 dis%s.The shared dis%s are now config"red.Clone t!e Virtual Mac!ineThe c"rrent ersion of #$ware Serer does not incl"de an o(tion to clone a irt"al +achine0 b"tthe following ste(s ill"strate how this can be achieed +an"all*.Sh"t down the RAC1 irt"al +achine and co(* the RAC1 irt"al +achine "sing the following co++and.# cp -- 9!019VM9-*11 9!019VM9-*1=!dit the contents of the 6?"01?#$?RAC2?RAC1.+26 file0 +a%ing the following change.$ispla+0ame J G-*1=G&gnore discre(ancies with the file na+es in the 6?"01?#$?RAC26 director*. This does not affect the action of the irt"al +achine.&n the #$ware Serer Console0 select the 8ile G O(en +en" o(tions and browse for the 6?"01?#$?RAC2?RAC1.+26 file. Once o(ened0 the RAC2 irt"al +achine is isible on the console. Start the RAC2 irt"al +achine b* clic%ing the 6,ower on this irt"al +achine6 b"tton and clic% the 6Create6 b"tton on the s"bse-"ent 6H"estion6 screen.O(en the 6/etwor% Connections6 screen (Start G All ,rogra+s G Accessories G Co++"nicationsG /etwor% Connections). A+end the &, Addresses of both connections to the correct al"es for the RAC2 node.The cloning (rocess so+eti+es alters the networ% connection set"(0 so re(eat the ste(s +entioned (reio"sl* for re+oing e2tra networ% ada(ters and rena+ing the connections.O(en the 6S*ste+ ,ro(erties6 dialog (Start G Control ,anel G S*ste+)0 clic% on the 6Co+("ter /a+e6 tab and clic% the 6Change6 b"tton. !nter the na+e 6rac26 then clic% the 6OA6 b"tton.Clic% all s"bse-"ent 6OA6 b"ttons to e2it the 6S*ste+ ,ro(erties6 dialog and restart the serer when (ro+(ted.Once the RAC2 irt"al +achine has restarted0 start the RAC1 irt"al +achine. When both nodes hae started0 chec% the* can both (ing all the ("blic and (riate &, addresses "sing the following co++ands.ping -c M rac1ping -c M rac1-privping -c M rac=ping -c M rac=-privAt this (oint the irt"al &, addresses defined in the hosts file will not wor%0 so don7t bother testing the+.&t7s a good idea to ta%e a sna(shot of the irt"al +achines0 so *o" can re(eat the following stages if *o" r"n into an* (roble+s. To do this0 sh"tdown both irt"al +achines and iss"e the following co++ands.# c$ 9!019VM# #ar -cvf -*1-Pre1l!s#erware.#ar -*11 -*1= share$# gLip -*1-Pre1l!s#erware.#arThe irt"al +achine set"( is now co+(lete.Install t!e Clusterware SotwareStart the RAC1 and RAC2 irt"al +achines. The Oracle Cl"sterware for Windows is er* sensitie0 so before *o" start0 chec% the networ% connection set"( on each +achine again. Re+oe and e2tra networ% ada(ters0 rena+e the connections a((ro(riatel* and chec% the nodes (ing correctl*. $a%e s"re *o"r networ% config"ration +atches the Chec%ing /etwor% Re-"ire+ents section of the doc"+entation.Start the Oracle installer on RAC1.On the 6Welco+e6 screen0 clic% the 6/e2t6 b"tton.!nter the a((ro(riate na+e and (ath for the Oracle ;o+e and clic% the 6/e2t6 b"tton.Wait while the (rere-"isite chec%s are done. &f *o" hae an* fail"res correct the+ and retr* the tests before clic%ing the 6/e2t6 b"tton.The 6S(ecif* Cl"ster Config"ration6 screen shows onl* the RAC1 node in the cl"ster. Clic% the 6Add6 b"tton to contin"e.!nter the details for the RAC2 node and clic% the 6OA6 b"tton.Clic% the 6/e2t6 b"tton to contin"e.The 6S(ecific /etwor% &nterface 3sage6 screen defines how each networ% interface will be "sed.;ighlight the 6("blic6 interface and clic% the 6!dit6 b"tton.Set the 6("blic6 interface t*(e to 6,"blic6 and clic% the 6OA6 b"tton.:eae the 6(riate6 interface as (riate and clic% the 6/e2t6 b"tton.On the 6Cl"ster Config"ration Storage6 screen0 highlight dis% 1 and clic% the 6!dit6 b"tton.Select the 6,lace OCR(,ri+ar*) on this ,artition6 o(tion and clic% the 6OA6 b"tton.;ighlight dis% 2 and clic% the 6!dit6 b"tton. Select the 6,lace #oting 'is% on this ,artition6 o(tion and clic% the 6OA6 b"tton.On the 6Cl"ster Config"ration Storage6 screen0 clic% the 6/e2t6 b"tton and ignore the red"ndanc* warnings b* clic%ing the 6OA6 b"tton.On the 6S"++ar*6 screen0 clic% the 6&nstall6 b"tton to contin"e.Wait while the installation ta%es (lace.Wait while the config"ration assistants r"n.Clic% the 6!2it6 b"tton to leae the installer.&t7s a good idea to ta%e a sna(shot of the irt"al +achines0 so *o" can re(eat the following stages if *o" r"n into an* (roble+s. To do this0 sh"tdown both irt"al +achines and iss"e the following co++ands.# c$ 9!019VM# #ar -cvf -*1-Pos#1l!s#erware.#ar -*11 -*1= share$# gLip -*1-Pos#1l!s#erware.#arThe cl"sterware installation is now co+(lete.Install t!e Data*ase Sotware and Create an ASM InstanceStart the RAC1 and RAC2 irt"al +achines0 login to RAC1 and start the Oracle installer.On the 6Welco+e6 screen0 clic% the 6/e2t6 b"tton.Select the 6!nter(rise !dition6 o(tion and clic% the 6/e2t6 b"tton.!nter the (ath for the Oracle .ase along with the na+e and (ath for the Oracle ;o+e and clic% the 6/e2t6 b"tton.Select the 6Cl"ster &nstallation6 o(tion and +a%e s"re both RAC nodes are selected0 then clic% the 6/e2t6 b"tton.Wait while the (rere-"isite chec%s are done. &f *o" hae an* fail"res correct the+ and retr* the tests before clic%ing the 6/e2t6 b"tton.Select the 6Config"re A"to+atic Storage $anage+ent (AS$)6 o(tion0 enter the S