Sie sind auf Seite 1von 27

3/4/2014

%#are

Oracle Real Application Cluster(RAC): Ad


1*

More

Ne+t ,log-

Create ,log

%ign .n

Oracle Real Application Cluster(RAC)


Home Wednesday, 31 October 2012

Adding Nodes To Oracle RAC Database


Adding Node To Oracle RAC Database
Summary:
============================================================== This presentation will provide detail steps for Oracle DBA and Linux Engineer to add new node to existing 11gR1 (11.1. .!" data#ase RA$. The %ost critical steps that need to #e followed are& 'erif( the exists cluster configuration )nstallation *rere+uisite $onfiguring ,,- on .ew $luster /e%#er .odes *re0install chec1ing Bac1up the files (O$R2 'oting Dis12 root.sh2 ora)nventor(" Adding an Oracle $lusterware ho%e to new nodes using O3) in interactive node $onfigure O., for the new node. Adding an Oracle A,/ ho%e to new nodes using O3) in interactive node (Re+uired )f (ou have separate ho%e director( " Adding an Oracle RDB/, ho%e to new nodes using O3) in interactive %ode Reconfigure listener on new node using .ET$A Adding A,/ instance to new nodes using DB$A Adding DB )nstance to new nodes using DB$A 1. a) Verify the exists cluster configuration
[oracle@krac1 ~]$ crs_stat -t -v Name Type R/RA F/FT Target State Host ---------------------------------------------------------------------ora !1 "#st appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora !) "#st appl"cat"o# $/% $/$ &N!'N( &N!'N( krac) ora &R*! +, appl"cat"o# $/$ $/1 &N!'N( &N!'N( krac1 ora S-1 asm appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora *1 ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora krac1 gs+ appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora krac1 o#s appl"cat"o# $/. $/$ &N!'N( &N!'N( krac1 ora krac1 v"p appl"cat"o# $/$ $/$ &N!'N( &N!'N( krac1 ora S-) asm appl"cat"o# $/% $/$ &N!'N( &N!'N( krac) ora *) ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac) 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) Blog Archive

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

Kavinprakaash Subra ania

84
(ie" m! com&lete &ro)ile

RAC Database Configuration details blogspot.in//adding nodes !or oracl

1/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

[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

Automatic Storage Management ASM) Configuration details


[oracle@krac1 ~]$ srvctl co#/"g asm -# krac1 1AS-1 /0$)/app/oracle/pro+0ct/11 1 $/asm_1 [oracle@krac1 ~]$ srvctl co#/"g asm -# krac) 1AS-) /0$)/app/oracle/pro+0ct/11 1 $/asm_1 [oracle@krac1 ~]$ srvctl stat0s asm -# krac1 ASM instance +ASM1 is running on node krac1. [oracle@krac1 ~]$ srvctl stat0s asm -# krac) ASM instance +ASM2 is running on node krac2. [oracle@krac1 ~]$

!odea""s Configuration Details


[oracle@krac1 ~]$ srvctl co#/"g 2'3 e4"sts 5 /krac1-v"p/1%) 167 9S: e4"sts &NS +aemo# e4"sts !"ste#er e4"sts [oracle@krac1 ~]$ srvctl co#/"g 2'3 e4"sts 5 /krac)-v"p/1%) 167 9S: e4"sts &NS +aemo# e4"sts !"ste#er e4"sts #o+eapps -# krac1 1 6$/)%% )%% )%% $/et8$

#o+eapps -# krac) 1 61/)%% )%% )%% $/et8$

#istener Configuration Details


[oracle@krac1 ~]$ srvctl co#/"g l"ste#er -# krac1 krac1 !'ST(N(R_;RA*1 [oracle@krac1 ~]$ srvctl stat0s #o+eapps -# krac1 2'3 "s r0##"#g o# #o+e5 krac1 9S: "s r0##"#g o# #o+e5 krac1 Listener is running on node: krac1 &NS +aemo# "s r0##"#g o# #o+e5 krac1 [oracle@krac1 ~]$ srvctl stat0s #o+eapps -# krac) 2'3 "s r0##"#g o# #o+e5 krac) 9S: "s r0##"#g o# #o+e5 krac) Listener is running on node: krac2 &NS +aemo# "s r0##"#g o# #o+e5 krac)

!odes and $n%ironment Details


[oracle@krac1 ~]$ ols#o+es -# -p -" krac1 1 krac1-pr"v krac1-v"p krac) ) krac)-pr"v krac)-v"p <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< (4"st No+es 5 krac1 +,pro+ com=krac) +,pro+ com New Node : krac3.db rod.co! *RS_H&-( 5 /0$1/crs11g -- crs>&S? 0ser "s o@#er AS-_H&-( 5 /0$)/app/oracle/pro+0ct/11 1 $/asm_1 -- oracle>&S? 0ser o@#er RA*_H&-( 5 /0$)/app/oracle/pro+0ct/11 1 $/+,_1 -- oracle>&S? 0ser o@#er .ote & )n this setup A,/ configured in separate ho%e director( for -igh availa#ilit(.

Verify net&or' interface using (racle interface configuration tool


[oracle@krac1 ~]$ o"/c/g get"/ -glo,al et8$ 1%) 167 1 $ glo,al p0,l"c et81 1)) 167 1 $ glo,al cl0ster_"#terco##ect

). *nstallation +rere,uisite Refer Oracle 11g Release 1 RAC Installation teps On !inu" blog for #ore details$

-. a. Configuring SS. on !e& Cluster Member !odes


[crs@krac. ~]$ s0 - crs [crs@krac. ~]$ mk+"r ~/ ss8 [crs@krac. ~]$ c8mo+ A$$ ~/ ss8

blogspot.in//adding nodes !or oracl

2/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

[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

b. SC+ the authori/ed0'eys file from exist node on 'rac1)


s0 - crs [crs@krac1 ss8]$ scp ~/ ss8/a0t8or"Ee+_keys krac.5$H&-( / ss8/

c. #ogin into ne& node 'rac-.db"rod.com)


[crs@krac. total )$ -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 -r@-r--r-- 1 crs o"#stall )$)C &ct )) )15%$ aut&ori'ed(ke)s *crs+krac3 .ss&,- cat id(rsa. ub %% aut&ori'ed(ke)s *crs+krac3 .ss&,- cat id(dsa. ub %% aut&ori'ed(ke)s ss8]$ ls -ltr

d. Co"y the latest authori/ed0'ey file to remaining all nodes in cluster.


s0 - crs [crs@krac. [crs@krac. ss8]$ sc ss8]$ sc aut&ori'ed(ke)s krac1:-.OM#/.ss&/. aut&ori'ed(ke)s krac2:-.OM#/..ss&/.

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

a" 'erif( cluster health( on existing nodes (ocrchec12 cluvf(".


[oracle@krac1 ~]$ ocrc8eck Stat0s o/ &racle *l0ster Reg"stry 2ers"o# Total space >k,ytes? Fse+ space >k,ytes? "s as /ollo@s 5 5 ) 5 1$C.D16 5 %61)

blogspot.in//adding nodes !or oracl

3/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad


Ava"la,le space >k,ytes? 5 1$.7.$C ': 5 1.CAD7%DA) :ev"ce/F"le Name 5 /+ev/ra@/ra@1 :ev"ce/F"le "#tegr"ty c8eck s0ccee+e+ :ev"ce/F"le #ot co#/"g0re+ *l0ster reg"stry "#tegr"ty c8eck s0ccee+e+

#" 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<

d" 'erif( #elow lines in 5etc5s(sclt.conf file on new node(1rac6" .


ker#el s8mall < )$DA1%) ker#el s8mma4 < )1CAC7.6C7 ker#el s8mm#" < C$D6 ker#el sem < )%$ .)$$$ 1$$ 1)7 /s /"le-ma4 < 6%%.6 #et "pvC "p_local_port_ra#ge < D$$$ 6%%$$ #et core rmem_+e/a0lt < )6)1CC #et core rmem_ma4 < C1DC.$C #et core @mem_+e/a0lt < )6)1CC #et core @mem_ma4 < 1$C7%A6

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

blogspot.in//adding nodes !or oracl

4/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

-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

3ac'u" the files (CR4 Voting Dis').


[root@krac1 ~]G c+ /0$1/crs11g/,"# [root@krac1 ,"#]G /ocrco#/"g -ma#0al,ack0p krac1 )$1)/1$/)) ))5%75%A /0$1/crs11g/c+ata/krac_cl0ster/,ack0p_)$1)1$))_))%7%A ocr [root@krac1 ,"#]G /ocrco#/"g -e4port /0$1/crs11g/c+ata/krac_cl0ster/ocr_,ack0p_,e/ore_a++"#g_#o+e +mp [root@krac1 ,"#]G ls -l /0$1/crs11g/c+ata/krac_cl0ster/ocr_,ack0p_,e/ore_a++"#g_#o+e +mp -r@-r--r-- 1 root root 1$C16D &ct )) ).5$$ /0$1/crs11g/c+ata/krac_cl0ster/ocr_,ack0p_,e/ore_a++"#g_#o+e +mp [root@krac1 ,"#]G $ $ /crsctl I0ery css vote+"sk /+ev/ra@/ra@)

!ocate+ 1 vot"#g +"sk>s? [root@krac1 ,"#]G ++ "/</+ev/ra@/ra@) o/</0$1/crs11g/c+ata/krac_cl0ster/vote+"sk_,kp_,e/ore_a++"#g_#o+e +mp ,s<1$)C

blogspot.in//adding nodes !or oracl

#/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

Oracle Real Application Cluster(RAC): Ad

"#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&

Action " #lick $%e&t$

blogspot.in//adding nodes !or oracl

$/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " 'nter the ne( nodes na e)*ublic,*rivate,+irtual host na e, and click $%e&t$

Action " +eri-y cluster add node su

ary and click $.nstall$

blogspot.in//adding nodes !or oracl

"/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

*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-?

blogspot.in//adding nodes !or oracl

%/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " #lick $'&it$/

Action " #lick $0es$

[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#/]$

(n ne& node 'rac-) execute belo& commands.


[crs@krac. ~]$ crs_stat -t -c krac. Name Type 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. [oracle@krac. ]$ s0 - crs [crs@krac. ]$c+ $&RA_*RS_H&-(/,"# [crs@krac. ,"#]$ /racgo#s a++_co#/"g rac.561%$

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,

[crs@krac1 ]$ s0 - oracle [oracle@krac1 ]$ c+ $&RA_AS-_H&-(/o0"/,"# [oracle@krac1 ]$ /a++No+e s8

blogspot.in//adding nodes !or oracl

&/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " #lick $%e&t$

Action " #lick $%e&t$

blogspot.in//adding nodes !or oracl

10/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " 1evie( #luster %ode Addition Su

ary and click $%e&t$

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

blogspot.in//adding nodes !or oracl

11/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action" #lick $%e&t$

Adding an RD3MS home to ne& nodes using (1* in interacti%e node/


[crs@krac1 ]$ s0 - oracle [oracle@krac1 ]$ c+ $&RA*!(_H&-(/o0"/,"# [oracle@krac1 ]$ /a++No+e s8

Action " #lick $%e&t$

blogspot.in//adding nodes !or oracl

12/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " Select %e( %ode and click $%e&t$

Action " 1evie( #luster Addition %ode Su

ary and #lick $%e&t$

blogspot.in//adding nodes !or oracl

13/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

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

Action " #lick $%e&t$

Reconfigure listener on ne& node using !$5CA

blogspot.in//adding nodes !or oracl

14/2"

3/4/2014
[crs@krac1 ]$ s0 - oracle [oracle@krac1 ]$ c+ $&RA_AS-_H&-(/,"# [oracle@krac1 ]$ /#etca

Oracle Real Application Cluster(RAC): Ad

Action " Select #luster #on-iguration and click $%e&t$

Action " Select ne( node na e and click $%e&t$

blogspot.in//adding nodes !or oracl

1#/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " Select 2istener con-iguration and click $%e&t$

Action " Select add and click $%e&t$

Action " 'nter listener na e and click $%e&t$

blogspot.in//adding nodes !or oracl

1$/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " #lick $%e&t$

Action " #lick $%e&t$

Action " Select no and click $%e&t$

blogspot.in//adding nodes !or oracl

1"/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " #lick $%e&t$

Action " #lick $3inish$


[oracle@krac1 ,"#]$ crs_stat -t -v -c krac. Name Type R/RA F/FT Target State Host ---------------------------------------------------------------------ora *. ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. 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.

Adding ASM instance to ne& nodes using D3CA


[crs@krac1 ]$ s0 - oracle [oracle@krac1 ]$ c+ $&RA_AS-_H&-(/,"# [oracle@krac1 ]$ /+,ca

blogspot.in//adding nodes !or oracl

1%/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action : Select (racle Real A""lication Cluster Database and clic' 6!ext6

Action " Select #on-igure Auto atic Storage !anage ent

blogspot.in//adding nodes !or oracl

1&/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " Select %e( nodes and click $%e&t$

Action " #lick $0es$

Action " #lick $3inish$


[oracle@krac1 ,"#]$ crs_stat -t -v -c krac. Name Type R/RA F/FT Target State Host ---------------------------------------------------------------------ora S-. asm appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. ora *. ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. 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.

Adding D3 *nstance to ne& nodes using D3CA


s0 - oracle [oracle@krac1 ]$ c+ $&RA*!(_H&-(/,"# [oracle@krac1 ]$ /+,ca

blogspot.in//adding nodes !or oracl

20/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action : Select Real A""lication Clusters Database and clic' 6!ext6

Action " Select .nstance !anage ent and click $%e&t$

blogspot.in//adding nodes !or oracl

21/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " Select Add node and click $%e&t$

Action " 'nter the 4serna e and pass(ord then click $%e&t$

blogspot.in//adding nodes !or oracl

22/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " #lick $%e&t$

Action " +eri-y .nstance and ne( node na e then click $%e&t$

blogspot.in//adding nodes !or oracl

23/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " #lick $3inish$

Action " #lick $OK$

blogspot.in//adding nodes !or oracl

24/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad

Action " %othing

Action " #lick $0es$


[oracle@krac1 ,"#]$ crs_stat -t -v Name Type R/RA F/FT Target State Host ---------------------------------------------------------------------ora !1 "#st appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora !) "#st appl"cat"o# $/% $/$ &N!'N( &N!'N( krac) ora !. "#st appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. ora &R*! +, appl"cat"o# $/$ $/1 &N!'N( &N!'N( krac1 ora S-1 asm appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora *1 ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora krac1 gs+ appl"cat"o# $/% $/$ &N!'N( &N!'N( krac1 ora krac1 o#s appl"cat"o# $/. $/$ &N!'N( &N!'N( krac1 ora krac1 v"p appl"cat"o# $/$ $/$ &N!'N( &N!'N( krac1 ora S-) asm appl"cat"o# $/% $/$ &N!'N( &N!'N( krac) ora *) ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac) 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) ora S-. asm appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. ora *. ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. ora *. ls#r appl"cat"o# $/% $/$ &N!'N( &N!'N( krac. 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.

+ost *nsallations Chec'.


cl0/y stage -post crs"#st -# all -ver,ose

[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!

1elated Blogs" Oracle 11g Release 1 RAC .nstallation %te&s On 1in +

blogspot.in//adding nodes !or oracl

2#/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad


Creating a RAC Database Man all! ("it#o t dbca) Oracle 11gR2 RAC .nstallation %te&s on 1in +

==============================================================

-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

% bscribe to3 2ost Comments (Atom)

blogspot.in//adding nodes !or oracl

2$/2"

3/4/2014

Oracle Real Application Cluster(RAC): Ad


2o"ered b! ,logger0

blogspot.in//adding nodes !or oracl

2"/2"

Das könnte Ihnen auch gefallen