Beruflich Dokumente
Kultur Dokumente
%#are
More
Ne+t ,log-
Create ,log
%ign .n
2012 (8) October (2) Adding Nodes To Oracle RAC Database Creating a RAC Database Man all! ("it#o t dbca) $ %e&tember (') $ A g st (1)
About !e
84
(ie" m! com&lete &ro)ile
1/2"
3/4/2014
[oracle@krac1 ~]$ srvctl co#/"g +ata,ase -+ orcl krac1 &R*!1 /0$)/app/oracle/pro+0ct/11 1 $/+,_1 krac) &R*!) /0$)/app/oracle/pro+0ct/11 1 $/+,_1 [oracle@krac1 ~]$ srvctl stat0s +ata,ase -+ orcl Instance ORCL1 is running on node krac1 Instance ORCL2 is running on node krac2
). *nstallation +rere,uisite Refer Oracle 11g Release 1 RAC Installation teps On !inu" blog for #ore details$
2/2"
3/4/2014
[crs@krac. ~]$ c+ ~/ ss8 [crs@krac. ss8]$ /0sr/,"#/ss8-keyge# -t rsa 9e#erat"#g p0,l"c/pr"vate rsa key pa"r (#ter /"le "# @8"c8 to save t8e key >/8ome/crs/ ss8/"+_rsa?5 "#N$#R% (#ter passp8rase >empty /or #o passp8rase?5 "#N$#R% (#ter same passp8rase aga"#5 "#N$#R% Bo0r "+e#t"/"cat"o# 8as ,ee# save+ "# /8ome/crs/ ss8/"+_rsa Bo0r p0,l"c key 8as ,ee# save+ "# /8ome/crs/ ss8/"+_rsa p0, T8e key /"#gerpr"#t "s5 )e57%5e$5$65c751C56656%5)757.5CA5+,5A75A151A5$1 crs@krac. +,pro+ com [crs@krac. ss8]$ /0sr/,"#/ss8-keyge# -t +sa 9e#erat"#g p0,l"c/pr"vate +sa key pa"r (#ter /"le "# @8"c8 to save t8e key >/8ome/crs/ ss8/"+_+sa?5 "#N$#R% (#ter passp8rase >empty /or #o passp8rase?5 "#N$#R% (#ter same passp8rase aga"#5 "#N$#R% Bo0r "+e#t"/"cat"o# 8as ,ee# save+ "# /8ome/crs/ ss8/"+_+sa Bo0r p0,l"c key 8as ,ee# save+ "# /8ome/crs/ ss8/"+_+sa p0, T8e key /"#gerpr"#t "s5 6$5%)56156%5,A5+/5%a5%c5,)57.5AD5,C5+)5D,5D+5)1 crs@krac. +,pro+ com [crs@krac. ss8]$ ls -ltr total 16 -r@-r--r-- 1 crs o"#stall C$) &ct )) )15%$ "+_rsa p0, -r@------- 1 crs o"#stall 16A% &ct )) )15%$ "+_rsa -r@-r--r-- 1 crs o"#stall 61$ &ct )) )15%$ "+_+sa p0, -r@------- 1 crs o"#stall 667 &ct )) )15%$ "+_+sa
e. $nabling SS. 1ser $,ui%alency on Cluster Member !odes !eed to done both crs and oracle users)
ss8 krac1 +ate ss8 krac) +ate ss8 krac. +ate ss8 krac1 +,pro+ com +ate ss8 krac) +,pro+ com +ate ss8 krac. +,pro+ com +ate ss8 krac1-pr"v +ate ss8 krac)-pr"v +ate ss8 krac.-pr"v +ate ss8 krac1-pr"v +,pro+ com +ate ss8 krac)-pr"v +,pro+ com +ate ss8 krac.-pr"v +,pro+ com +ate
f. Re"eat the same ste"s as a oracle user in all ne& nodes. -. +re2install chec'ing
3/2"
3/4/2014
#" This theor( assu%es that the *rere+uisites )nstallation ta1es have alread( #een perfor%ed on the nodes.
$cl0v/y stage -post 8@os -# krac.
c" $hec1 O, version2 4ernel para%eters2 5etc5hosts file and ensure the( are identical on all nodes.
[oracle@krac1 ~]$ 0#ame -#rmo krac1 +,pro+ com 2.0.112134.e56 i010 7N8/Linu9 [oracle@krac1 ~]$ cat /etc/re+8at-release Red .at #nter rise Linu9 Ser:er re5ease 6.6 ;$ikanga<
e" $onfir% a new node(co%%ented in red color" entr( in 5etc5hosts files on all the nodes.
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGG !ocalHost GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 1)A $ $ 1 local8ost local+oma"# local8ost GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGG 30,l"c '3 A++ress GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 1%) 167 1 %$ krac1 +,pro+ com krac1 1%) 167 1 %1 krac) +,pro+ com krac) 162.101.1.62 krac3.db rod.co! krac3 GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGG 3r"vate '3 A++ress GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 1D) 167 1 %$ 1D) 167 1 %1 krac1-pr"v +,pro+ com krac)-pr"v +,pro+ com krac1-pr"v krac)-pr"v
132.101.1.62 krac32 ri:.db rod.co! krac32 ri: GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG GGG 2'3 A++ress GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG 1%) 167 1 6$ 1%) 167 1 61 162.101.1.02 krac1-v"p +,pro+ com krac)-v"p +,pro+ com krac32:i .db rod.co! krac1-v"p krac)-v"p krac32:i
[crs@krac1 ~]$cl0v/y stage -pre crs"#st -# krac1=krac)=krac. 3er/orm"#g pre-c8ecks /or cl0ster serv"ces set0p *8eck"#g #o+e reac8a,"l"ty No+e reac8a,"l"ty c8eck passe+ /rom #o+e Hkrac1H *8eck"#g 0ser eI0"vale#ce Fser eI0"vale#ce c8eck passe+ /or 0ser HcrsH *8eck"#g a+m"#"strat"ve pr"v"leges Fser e4"ste#ce c8eck passe+ /or HcrsH 9ro0p e4"ste#ce c8eck passe+ /or Ho"#stallH
4/2"
3/4/2014
-em,ers8"p c8eck /or 0ser HcrsH "# gro0p Ho"#stallH [as 3r"mary] passe+ A+m"#"strat"ve pr"v"leges c8eck passe+ *8eck"#g #o+e co##ect"v"ty No+e co##ect"v"ty c8eck passe+ /or s0,#et H1%) 167 1 $H @"t8 #o+e>s? krac.=krac)=krac1 No+e co##ect"v"ty c8eck passe+ /or s0,#et H1D) 167 1 $H @"t8 #o+e>s? krac.=krac)=krac1 '#ter/aces /o0#+ o# s0,#et H1%) 167 1 $H t8at are l"kely ca#+"+ates /or 2'35 krac. et8$51%) 167 1 %) krac) et8$51%) 167 1 %1 et8$51%) 167 1 61 krac1 et8$51%) 167 1 %$ et8$51%) 167 1 6$ '#ter/aces /o0#+ o# s0,#et H1D) 167 1 $H t8at are l"kely ca#+"+ates /or 2'35 krac. et8151D) 167 1 %) krac) et8151D) 167 1 %1 krac1 et8151D) 167 1 %$ JARN'N95 *o0l+ #ot /"#+ a s0"ta,le set o/ "#ter/aces /or t8e pr"vate "#terco##ect No+e co##ect"v"ty c8eck passe+ *8eck"#g system reI0"reme#ts /or KcrsK Total memory c8eck passe+ Free +"sk space c8eck passe+ S@ap space c8eck passe+ System arc8"tect0re c8eck passe+ ;er#el vers"o# c8eck passe+ 3ackage e4"ste#ce c8eck passe+ /or Hmake-. 71H 3ackage e4"ste#ce c8eck passe+ /or H,"#0t"ls-) 1A %$ $ 6H 3ackage e4"ste#ce c8eck passe+ /or Hgcc-C 1 1H 3ackage e4"ste#ce c8eck passe+ /or Hl",a"o-$ . 1$6H 3ackage e4"ste#ce c8eck passe+ /or Hl",a"o-+evel-$ . 1$6H 3ackage e4"ste#ce c8eck passe+ /or Hl",st+c11-C 1 1H 3ackage e4"ste#ce c8eck passe+ /or Hel/0t"ls-l",el/-+evel-$ 1)%H 3ackage e4"ste#ce c8eck passe+ /or Hsysstat-A $ $H 3ackage e4"ste#ce c8eck passe+ /or Hcompat-l",st+c11-..-. ) .H 3ackage e4"ste#ce c8eck passe+ /or Hl",gcc-C 1 1H 3ackage e4"ste#ce c8eck passe+ /or Hl",st+c11-+evel-C 1 1H 3ackage e4"ste#ce c8eck passe+ /or H0#"4&:L*-) ) 11H 3ackage e4"ste#ce c8eck passe+ /or H0#"4&:L*-+evel-) ) 11H 3ackage e4"ste#ce c8eck passe+ /or Hgl",c-) %-1)H 9ro0p e4"ste#ce c8eck passe+ /or H+,aH 9ro0p e4"ste#ce c8eck passe+ /or Ho"#stallH Fser e4"ste#ce c8eck passe+ /or H#o,o+yH System reI0"reme#t passe+ /or KcrsK 3re-c8eck /or cl0ster serv"ces set0p @as s0ccess/0l
#/2"
3/4/2014
*n%entory and root.sh 3ac'u"
[crs@krac1 oracle]$ "#st_gro0p<o"#stall [crs@krac1 oracle]$ c+ /0$)/app/oracle cat /etc/ora'#st loc
"#ve#tory_loc</0$)/app/oracle/ora'#ve#tory
[crs@krac1 oracle]$ tar -cv/ ora'#ve#tory tar ora'#ve#tory su 2 crs c+ $&RA_*RS_H&-(/,"# cp root s8 root s8 ,kp su 2 orac5e c+ $&RA*!(_H&-(/,"# cp root s8 root s8 ,kp !ode : Re"eat abo%e the ste"s in all nodes
Adding an (racle Cluster&are home to ne& nodes using (1* in interacti%e node
su 2 crs cd -ORA(CRS(.OM#/oui/bin ./addNode.s&
$/2"
3/4/2014
Action " 'nter the ne( nodes na e)*ublic,*rivate,+irtual host na e, and click $%e&t$
"/2"
3/4/2014
*root+krac3 =,> /u?2/a /orac5e/oraIn:entor)/orainstRoot.s& *8a#g"#g perm"ss"o#s o/ /0$)/app/oracle/ora'#ve#tory to AA$ *8a#g"#g gro0p#ame o/ /0$)/app/oracle/ora'#ve#tory to o"#stall T8e e4ec0t"o# o/ t8e scr"pt "s complete *root+krac3 =,> ss& krac1 /u?1/crs11g/insta55/rootaddnode.s& root@krac1Ks pass@or+5 clsc/g5 (M'ST'N9 co#/"g0rat"o# vers"o# C +etecte+ clsc/g5 vers"o# C "s 11 Release 1 Attempt"#g to a++ 1 #e@ #o+es to t8e co#/"g0rat"o# Fs"#g ports5 *SS<CD7D% *RS<CD7D6 (2-*<CD7D7 a#+ (2-R<CD7DA #o+e N#o+e#0m,erO5 N#o+e#ameO Npr"vate "#terco##ect #ameO N8ost#ameO #o+e .5 krac. krac.-pr"v krac. *reat"#g &*R keys /or 0ser KrootK= pr"vgrp KrootK &perat"o# s0ccess/0l /0$1/crs11g/,"#/srvctl a++ #o+eapps -# krac. -A krac.-v"p/)%% )%% )%% $/et8$ *root+krac3 =,> /u?1/crs11g/root.s& *8eck"#g to see "/ &racle *RS stack "s alrea+y co#/"g0re+ /etc/oracle +oes #ot e4"st *reat"#g "t #o@ &*R !&*AT'&NS < /+ev/ra@/ra@1 &*R ,ack0p +"rectory K/0$1/crs11g/c+ata/krac_cl0sterK +oes #ot e4"st *reat"#g #o@ Sett"#g t8e perm"ss"o#s o# &*R ,ack0p +"rectory Sett"#g 0p Net@ork socket +"rector"es &racle *l0ster Reg"stry co#/"g0rat"o# 0pgra+e+ s0ccess/0lly clsc/g5 (M'ST'N9 co#/"g0rat"o# vers"o# C +etecte+ clsc/g5 vers"o# C "s 11 Release 1 S0ccess/0lly acc0m0late+ #ecessary &*R keys Fs"#g ports5 *SS<CD7D% *RS<CD7D6 (2-*<CD7D7 a#+ (2-R<CD7DA #o+e N#o+e#0m,erO5 N#o+e#ameO Npr"vate "#terco##ect #ameO N8ost#ameO #o+e 15 krac1 krac1-pr"v krac1 #o+e )5 krac) krac)-pr"v krac) clsc/g5 Arg0me#ts c8eck o0t s0ccess/0lly N& ;(BS J(R( JR'TT(N S0pply -/orce parameter to overr"+e -/orce "s +estr0ct"ve a#+ @"ll +estroy a#y prev"o0s cl0ster co#/"g0rat"o# &racle *l0ster Reg"stry /or cl0ster 8as alrea+y ,ee# "#"t"al"Ee+ Start0p @"ll ,e I0e0e+ to "#"t @"t8"# .$ seco#+s A++"#g +aemo#s to "#"tta, (4pect"#g t8e *RS +aemo#s to ,e 0p @"t8"# 6$$ seco#+s *l0ster Sy#c8ro#"Eat"o# Serv"ces "s act"ve o# t8ese #o+es krac1 krac) krac. *l0ster Sy#c8ro#"Eat"o# Serv"ces "s act"ve o# all t8e #o+es Ja"t"#g /or t8e &racle *RS: a#+ (2-: to start &racle *RS stack "#stalle+ a#+ r0##"#g 0#+er "#"t>1-?
%/2"
3/4/2014
[oracle@krac1 ]$ crs_stat -t -v -c krac. Name Type R/RA F/FT Target State Host ---------------------------------------------------------------------ora krac. gs+ appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. ora krac. o#s appl"cat"o# $/. $/$ &N!'N( &N!'N( krac. ora krac. v"p appl"cat"o# $/$ $/$ &N!'N( &N!'N( krac.
Configure (!S for the ne& node. 7ro% the first node2 Loo1ing at the ons.config file located in 8$R,9-O/E:5op%n5config director(. ;ou can deter%ine the O., re%ote port to #e used. ;ou need to use the sa%e port in racgons add9config as show in #elow to %a1e sure that the first node can co%%unicate with the O., on new node.
[crs@krac1 ]$ c+ $&RA_*RS_H&-(/opm#/co#/ [crs@krac1 ]$ cat o#s co#/"g localport<61%$ 0seocr<o# allo@gro0p<tr0e 0ses8are+"#stall<tr0e [crs@krac1 co#/]$
Adding an ASM home to ne& nodes using (1* in interacti%e node/).ts needed
(hen AS! is installed (ith separate ho e directory -or high availability,
&/2"
3/4/2014
10/2"
3/4/2014
Action " %othing A)ter .nstallation com&letes O/. "ill &rom&t !o to r n root0s# as root ser0 Once root0s# scri&t e+ec tion com&leted )ollo" "it# belo" ste&s0
[root@krac. ~]G /0$)/app/oracle/pro+0ct/11 1 $/asm_1/root s8 R0##"#g &racle 11g root s8 scr"pt T8e /ollo@"#g e#v"ro#me#t var"a,les are set as5 &RA*!(_&JN(R< oracle &RA*!(_H&-(< /0$)/app/oracle/pro+0ct/11 1 $/asm_1 (#ter t8e /0ll pat8#ame o/ t8e local ,"# +"rectory5 [/0sr/local/,"#]5 *opy"#g +,8ome to /0sr/local/,"# *opy"#g orae#v to /0sr/local/,"# *opy"#g corae#v to /0sr/local/,"#
*reat"#g /etc/orata, /"le (#tr"es @"ll ,e a++e+ to t8e /etc/orata, /"le as #ee+e+ ,y :ata,ase *o#/"g0rat"o# Ass"sta#t @8e# a +ata,ase "s create+ F"#"s8e+ r0##"#g ge#er"c part o/ root s8 scr"pt No@ pro+0ct-spec"/"c root act"o#s @"ll ,e per/orme+ F"#"s8e+ pro+0ct-spec"/"c root act"o#s
11/2"
3/4/2014
12/2"
3/4/2014
13/2"
3/4/2014
Action " %othing A)ter .nstallation com&letes O/. "ill &rom&t !o to r n root0s# as root ser0 Once root0s# scri&t e+ec tion com&leted )ollo" "it# belo" ste&s0
[root@krac. ~]G /0$)/app/oracle/pro+0ct/11 1 $/+,_1/root s8 R0##"#g &racle 11g root s8 scr"pt T8e /ollo@"#g e#v"ro#me#t var"a,les are set as5 &RA*!(_&JN(R< oracle &RA*!(_H&-(< /0$)/app/oracle/pro+0ct/11 1 $/+,_1 (#ter t8e /0ll pat8#ame o/ t8e local ,"# +"rectory5 [/0sr/local/,"#]5 T8e /"le H+,8omeH alrea+y e4"sts "# /0sr/local/,"# &ver@r"te "tP >y/#? [#]5 y *opy"#g +,8ome to /0sr/local/,"# T8e /"le Horae#vH alrea+y e4"sts "# /0sr/local/,"# &ver@r"te "tP >y/#? [#]5 y *opy"#g orae#v to /0sr/local/,"# T8e /"le Hcorae#vH alrea+y e4"sts "# /0sr/local/,"# &ver@r"te "tP >y/#? [#]5 y *opy"#g corae#v to /0sr/local/,"# (#tr"es @"ll ,e a++e+ to t8e /etc/orata, /"le as #ee+e+ ,y :ata,ase *o#/"g0rat"o# Ass"sta#t @8e# a +ata,ase "s create+ F"#"s8e+ r0##"#g ge#er"c part o/ root s8 scr"pt No@ pro+0ct-spec"/"c root act"o#s @"ll ,e per/orme+ F"#"s8e+ pro+0ct-spec"/"c root act"o#s
14/2"
3/4/2014
[crs@krac1 ]$ s0 - oracle [oracle@krac1 ]$ c+ $&RA_AS-_H&-(/,"# [oracle@krac1 ]$ /#etca
1#/2"
3/4/2014
1$/2"
3/4/2014
1"/2"
3/4/2014
1%/2"
3/4/2014
Action : Select (racle Real A""lication Cluster Database and clic' 6!ext6
1&/2"
3/4/2014
20/2"
3/4/2014
21/2"
3/4/2014
Action " 'nter the 4serna e and pass(ord then click $%e&t$
22/2"
3/4/2014
Action " +eri-y .nstance and ne( node na e then click $%e&t$
23/2"
3/4/2014
24/2"
3/4/2014
[oracle@krac1 ~]$ sIlpl0s system/oracle@orcl. SQ!R3l0s5 Release 11 1 $ 6 $ - 3ro+0ct"o# o# -o# &ct )D 1D5%%5C) )$1) *opyr"g8t >c? 1D7)= )$$A= &racle All r"g8ts reserve+
*o##ecte+ to5 &racle :ata,ase 11g (#terpr"se (+"t"o# Release 11 1 $ 6 $ - 3ro+0ct"o# J"t8 t8e 3art"t"o#"#g= Real Appl"cat"o# *l0sters= &!A3= :ata -"#"#g a#+ Real Appl"cat"o# Test"#g opt"o#s SQ!O col 8ost_#ame /or a)% SQ!O col "#sta#ce_#ame /or a)$ SQ!O select "#sta#ce_#ame=8ost_#ame /rom v$"#sta#ceS 'NSTAN*(_NA-( H&ST_NA-( -------------------- ------------------------ORCL3 krac3.db rod.co! SQ!O select "#sta#ce_#ame=8ost_#ame /rom gv$"#sta#ceS 'NSTAN*(_NA-( -------------------ORCL3 ORCL2 ORCL1 H&ST_NA-( ------------------------krac3.db rod.co! krac2.db rod.co! krac1.db rod.co!
2#/2"
3/4/2014
==============================================================
-ope< This helps... Regards2 4avin. BE T-E BE,T<<< BE =)T- T-E BE,T <<<.
2osted b! 4a5in&ra6aas# % bramaniam at 103*8
71* Recommend t#is on 8oogle
1 co##ent%
able anto 11 Marc# 201* 10319 g d one Re&l!
#o
ent as"
Home
Older 2ost
2$/2"
3/4/2014
2"/2"