Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
-
Upload
sandeepaiet -
Category
Documents
-
view
266 -
download
0
Transcript of Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
-
8/12/2019 Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
1/27
Oracle Real Application
Cluster(RAC)HomeWednesday, 31 October 2012
Adding Node To Oracle RAC Database
Summary:==============================================================
This presentation will provide detail steps for Oracle DBA and Linux Engineer toadd 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 checing
Bacup the files (O$R2 'oting Dis2 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
oraS1asm appl"cat"o# /% / &N!'N( &N!'N( krac1
ora*1ls#r appl"cat"o# /% / &N!'N( &N!'N( krac1
orakrac1gs+ appl"cat"o# /% / &N!'N( &N!'N( krac1
orakrac1o#s appl"cat"o# /. / &N!'N( &N!'N( krac1
orakrac1v"p appl"cat"o# / / &N!'N( &N!'N( krac1
oraS)asm appl"cat"o# /% / &N!'N( &N!'N( krac)
ora*)ls#r appl"cat"o# /% / &N!'N( &N!'N( krac)
orakrac)gs+ appl"cat"o# /% / &N!'N( &N!'N( krac)
orakrac)o#s appl"cat"o# /. / &N!'N( &N!'N( krac)
orakrac)v"p appl"cat"o# / / &N!'N( &N!'N( krac)
RAC Database Configuration details
Adding Nodes To Oracle RAC Database
2012(8)
October(2)
Adding Nodes To Oracle RACDatabase
Creating a RAC DatabaseManall! ("it#ot dbca)
$ %e&tember(')
$ Agst(1)
Blog Archive
Kavinprakaash
Subraania
84
ie" m! com&lete
&roile
About !e
%#are 1* More Ne+t ,log- Create ,log %ign .n
3/4/2014 Oracle Real Application Cluster(RAC): Ad
blogspot.in//addingnodes!ororacl 1/
-
8/12/2019 Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
2/27
[oracle@krac1 ~]$ srvctl co#"g +ata,ase -+ orcl
krac1 &R*!1 /0)/app/oracle/pro+0ct/111/+,_1
krac) &R*!) /0)/app/oracle/pro+0ct/111/+,_1
[oracle@krac1 ~]$ srvctl stat0s +ata,ase -+ orcl
Instance ORCL1 is running on node krac1
Instance ORCL2 is running on node krac2
Automatic Storage ManagementASM) Configuration details[oracle@krac1 ~]$ srvctl co#"g asm -# krac1
AS1 /0)/app/oracle/pro+0ct/111/asm_1
[oracle@krac1 ~]$ srvctl co#"g asm -# krac)
AS) /0)/app/oracle/pro+0ct/111/asm_1
[oracle@krac1 ~]$ srvctl stat0s asm -# krac1ASM 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 #o+eapps -# krac1
2'3 e4"sts5 /krac1-v"p/1%)16716/)%%)%%)%%/et8
9S: e4"sts
&NS +aemo# e4"sts
!"ste#er e4"sts
[oracle@krac1 ~]$ srvctl co#"g #o+eapps -# krac)
2'3 e4"sts5 /krac)-v"p/1%)167161/)%%)%%)%%/et8
9S: e4"sts
&NS +aemo# e4"sts
!"ste#er e4"sts
#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
-
8/12/2019 Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
3/27
[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/"+_rsap0,
T8e key "#gerpr"#t "s5
)e57%5e565c751C56656%5)757.5C5+,57515151 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/"+_+sap0,
T8e key "#gerpr"#t "s5
65%)56156%5,5+5%a5%c5,)57.5D5,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% "+_rsap0,
-r------- 1 crs o"#stall 16% &ct )) )15% "+_rsa
-r-r--r-- 1 crs o"#stall 61 &ct )) )15% "+_+sap0,
-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. ss8]$ ls -ltr
total )
-r-r--r-- 1 crs o"#stall C) &ct )) )15% "+_rsap0,
-r------- 1 crs o"#stall 16% &ct )) )15% "+_rsa
-r-r--r-- 1 crs o"#stall 61 &ct )) )15% "+_+sap0,
-r------- 1 crs o"#stall 667 &ct )) )15% "+_+sa
-r-r--r-- 1 crs o"#stall ))C &ct )) )15%aut&ori'ed(ke)s
*crskrac3 .ss&,- cat id(rsa.ub %% aut&ori'ed(ke)s
*crskrac3 .ss&,- cat id(dsa.ub %% aut&ori'ed(ke)s
d. Co"y the latest authori/ed0'ey file to remaining all nodes in cluster.s0 - crs
[crs@krac. ss8]$ sc aut&ori'ed(ke)s krac1:-OM#/.ss&/.
[crs@krac. ss8]$ sc aut&ori'ed(ke)s krac2:-OM#/..ss&/.
e. $nabling SS ser $,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 (ocrchec2 cluvf".[oracle@krac1 ~]$ ocrc8eck
Stat0s o &racle *l0ster Reg"stry "s as ollos 5
2ers"o# 5 )
Total space >k,ytes? 5 1C.D16
se+ space >k,ytes? 5 %61)
3/4/2014 Oracle Real Application Cluster(RAC): Ad
blogspot.in//addingnodes!ororacl 3/
-
8/12/2019 Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
4/27
Ava"la,le space >k,ytes? 5 1.7.C
': 5 1.CD7%D)
:ev"ce/F"le Name 5 /+ev/ra/ra1
: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 taes have alread #een
perfor%ed on the nodes.$cl0vy stage -post 8os -# krac.
c" $hec 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.114.e56 i00 7N8/Linu9
[oracle@krac1 ~]$ cat /etc/re+8at-release
Red at #nterrise Linu9 Serer re5ease 6.6 ;$ikangac? 1D7)= )= &racle All r"g8ts reserve+
*o##ecte+ to5
&racle :ata,ase 11g (#terpr"se (+"t"o# Release 1116 - 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#ce
'NSTAN*(_NA( H&ST_NA(
-------------------- -------------------------
ORCL3 krac3.dbrod.co!
SQ!O select "#sta#ce_#ame=8ost_#ame rom gv$"#sta#ce
'NSTAN*(_NA( H&ST_NA(
-------------------- -------------------------
ORCL3 krac3.dbrod.co!
ORCL2 krac2.dbrod.co!
ORCL1 krac1.dbrod.co!
elated Blogs"
Oracle 11g Release 1 RAC .nstallation %te&s On in+
3/4/2014 Oracle Real Application Cluster(RAC): Ad
blogspot.in//addingnodes!ororacl 2#/
-
8/12/2019 Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
26/27
Older ostHome
%bscribe to3 ost Comments (Atom)
Creating a RAC Database Manall! ("it#ot dbca)
Oracle 11gR2 RAC .nstallation %te&s on in+
==============================================================
-ope< This helps...Regards24avin.BE T-E BE,T
-
8/12/2019 Oracle Real Application Cluster(RAC)_ Adding Nodes to Oracle RAC Database
27/27
o"ered b! ,logger
3/4/2014 Oracle Real Application Cluster(RAC): Ad