Anda di halaman 1dari 8

Yahoo!

White Paper

11gR2 Grid Infrastructure Environment Hosting 10gR2 Database.

Manish Gujjar UD D! "eam

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

Introduction
Yahoo! is upgrading a"" the #rac"e data!ases to 11gR2$ %pgrade is essentia" to ensure that our orac"e environments continue to !e supported in terms of patches and !ug fi&es !' #rac"e( a"so the do""ar cost of !eing on e&ception "ist for !ac) porting patches for 10gR2 is ver' high$ %pgrade *ou"d a""o* us to "everage ne* features of 11gR2$ +s a corporate goa"( a"" hosts *i"" !e re,uired to use -./ 0Yahoo! -onfig .anagement 1'stem2$ Hosts *hich are !eing on !oarded to -./ *i"" !e reimaged *ith RHE34%/$

5he upgrade process invo"ves6


1. -./ on !oarding *ith host reimage to RHE34%/ 2. 11gR2 Grid Infrastructure Insta""ation 3. 11gR2

ata!ase %pgrade$

5he *hite paper focuses on !est practices of upgrading #rac"e 10g data!ases *hich 7share the same #rac"e R+- c"uster8 and a data!ase ro""!ac) p"an$

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

#rac$e 10g Databases sharing the same #rac$e R % %$uster


#rac"e 10gR2 R+- c"uster can host mu"tip"e data!ases$ ata!ase

upgrade to 11gR2 invo"ves "ot of p"anning and testing 0%pgrade testing( 9unctiona" testing( Integration testing( Performance testing2$ In a c"uster *hich has mu"tip"e 10gR2 data!ases some data!ases might !e read' for upgrade *hi"e others *ou"d need to !e upgraded at a "ater point in time$ In man' cases it is not feasi!"e to ho"d off the upgrades ti"" a"" the data!ases in the c"uster are read' for it$

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

We can upgrade the data!ases *hich are read' to 11gR2 and "et other data!ases continue running on 10gR2$ 1teps
1. 1hutdo*n a"" the data!ases in the c"uster$ 2. -omp"ete -./ on !oarding and RHE34 reimage 3. Insta"" 11gR2 Grid Infrastructure : R ;.1 home$ 4. Restore the 10gR2 !inaries from !ac)up and re"in)$ 5. -onfigure the 11gR2 Grid to host the 10gR2 data!ases$ 6. 1tartup the 10gR2 data!ases not read' for upgrade$ 7. %pgrade the data!ases *hich are read' to 11gR2$

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

%onfiguring the 11gR2 Grid Infra to host the 10gR2 databases


1. Pin the nodes

-hec) the status of c"uster nodes


<orac"e=node1>?@ o"snodes -t node1 %npinned node2 %npinned <orac"e=node1>?@

+s the c"uster is ne*"' created 11gR2 Grid Infrastructure *e need to pin the nodes$ If Grid Infrastructure *as upgraded to 11gR2 then pinning is not re,uired$ +s Root6
<root=node1 ?>A BGRI CH#.ED!inDcrsct" pin css -n node1 node2 -R1-EFFE6 Gode node1 successfu""' pinned$ -R1-EFFE6 Gode node2 successfu""' pinned$ <root=node1 ?>A

2$ Insta"" rpm "i!Hp$i/IF Insta"" rpm "i!Hp$i/IF e"se srvct" *i"" thro* !e"o* error6
E&ception in thread JmainJ Kava$"ang$%nsatisfied3in)Error6 DhomeDorac"eDproductD10$2DKd)DKreD"i!Di/IFD"i!a*t$so6 "i!Hp$so$F6 cannot open shared o!Kect fi"e6 Go such fi"e or director'

+s Root on a"" nodes 6


<root=node1 ?>A 'um insta"" "i!Hp$i/IF <root=node2 ?>A 'um insta"" "i!Hp$i/IF

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

/$ +dd the 10gR2 data!ase to the Grid Infra using 10gR2 srvct"
<orac"e=node1>?@ source $Lshrc$10g <orac"e=node1>?@ srvct" add data!ase -d ac10g -o B10GC#R+-3ECH#.E -r primar' -s #PEG <orac"e=node1>?@ srvct" add instance -d ac10g -i ac10g1 -n node1 <orac"e=node1>?@ srvct" add instance -d ac10g -i ac10g2 -n node2 <orac"e=node1>?@ srvct" start data!ase -d ac10g

Database Ro$$bac& '$an


+fter the data!ase is upgraded to 11gR2 there might !e a need for ro""!ac) to 10gR2 due to unforeseen production issues or performance issues$ 5he #1 upgrade and the 11gR2 Grid Infrastructure might not have an' issues( the issue might !e *ith the data!ase upgrade$ -omp"ete ro""!ac) to o"d #1 version( 10gR2 -R1 and 10gR2 data!ase is not necessar'$ We can configure the 11gR2 Grid to host the 10gR2 data!ase and Kust ro""!ac) the data!ase upgrade portion$

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

Ro""!ac) 1teps6
1. Restore the 10gR2 data!ase !ac)up 2. -onfigure the 11gR2 Grid to host the 10gR2 data!ases using

a!ove mentioned steps$


3. 1tartup 10gR2 data!ase$

Yahoo! White Paper - 11gR2 Grid Infrastructure Environment Hosting 10gR2 ata!ase

%onc$usion
WeMve provided a step-!'-step guide to configure 11gR2 Grid Infrastructure environment to host 10gR2 ata!ase$ 5he methodo"og' can !e used to stagger the upgrade of data!ases in the same c"uster and a"so in fa""!ac) p"an to ro""!ac) Kust the data!ase portion$