You are on page 1of 166

Step by Step installing Oracle 10g RAC on

VMware
Posted by Kamran Agayev A. on April ! "011
#n t$is g%ide #&m going to s$ow yo% t$e process o' creating Oracle
10g R" RAC on O()*. +irst o' all # $ave to mention t$at #&ve
prepared t$is g%ide based on t$e well ,nown RAC on VM-are g%ide o'
'or Vincent C$an w$ic$ can be 'o%nd at O./. A'ter %sing t$at g%ide
#&ve decided to create a more screens$ot based e0plained g%ide and
prepared t$is blog post w$ic$ contains 10 screens$ots1
.$ese days wordpress.com is wor,ing veeeeery slowly! so it too, me
two days to %pload all images and create t$is blog post .$at was
really boring. 2%t now t$e blog post is online and # wo%ld be glad to
$ear t$e visitors val%able 'eedbac,s.
#n t$is t%torial! we %se O()* beca%se Oracle 10gR" is not compatible
wit$ O() 3as t$e db was released be'ore t$e OS released4 As in my
all t%torials! # %se vmware virt%al mac$ine. #n t$is g%ide # will
create two virt%al mac$ines. )et&s start creating t$e 'irst mac$ine.
2%t be'ore it! create t$ree directories inside one 'older 3'or
e0ample c56vmware4
1 C56vmware6rac1
"
7 C56vmware6rac"
*
C56vmware6s$aredstorage
Create t$e 'ollowing virt%al mac$ine in t$e 'irst 'older and create
all s$ared storages in t$e t$ird 'older
Clic, /e0t
Select .ypical and clic, /e0t
Select 8Red 9at (nterprise )in%0 *: and Clic, /e0t
Provide t$e name o' t$e virt%al mac$ine 3rac14! select t$e location
'or vmware dis, 3yo% can ma,e it c56vmware6rac14 and clic, /e0t
Select bridged networ, and clic, ne0t
;e'ine t$e si<e o' t$e $ard drive o' t$e virt%al mac$ine and clic,
/e0t 3set it to "0 =2 and don&t c$ec, 8Allocate all dis, space
now: c$ec,bo04
Mo%nt t$e #SO image o' t$e O()* installation and start adding more
'o%r $ard drives and one (t$ernet device. Clic, on Add b%tton
Select 89ard ;is,: and clic, /e0t
Select 8Create a new virt%al dis,: and clic, /e0t
Select 8SCS#: and c$ec, 8#ndependent>?Persistent: and clic, /e0t
+or t$e 'irst device! speci'y t$e dis, si<e as 87gb:! c$ec,
8Allocate all dis, space now: and clic, /e0t
Create a separate 'older named 8C56vmware6s$aredstorage: in yo%r
$ard drive! set t$e name o' t$e new $ard drive to 8oc's"dis,.vmd,:.
A'ter creating t$e 'irst device! create more t$ree devices wit$ *=2
in si<e 3asmdis,1.vmd,! asmdis,".vmd,! asmdis,7.vmd,4 and ma,e all o'
t$em 8#ndependent>?Persistent: and don&t allocate t$e dis, space
'or eac$ o' t$em
/e0t! start c$anging t$e device node 'or eac$ o' t$em. Start 'rom t$e
'irstly added $ard drive! select it! clic, on Advanced b%tton and
ma,e it SCS# 150. +or ne0t $ard drive ma,e it 151 and so on
Add new (t$ernet device
C$ange t$e networ, connection to 89ost>only:
Ma,e s%re t$at t$e last state o' yo%r virt%al mac$ine loo,s li,e as
it&s seen above
.$en locate t$e con'ig%ration 'ile o' t$e virt%al mac$ine and start
editing it
Add t$e lines t$at are mar,ed in bold to t$e con'ig%ration 'ile to
ma,e t$e devices be s$ared between to nodes
> 2y speci'ying 8dis,.loc,ing: to +A)S( will allow any virt%al
mac$ine to load a SCS# dis, device even it&s in %se by an anot$er
virt%al mac$ine
> Speci'y 8dis,)ib.dataCac$eMa0Si<e @ 80A to t%rn o'' t$e dis,
cac$ing 'or cl%stered virt%al mac$ines.
> 2y speci'ying scsi1.s$ared2%s @ 8virt%al: will give t$e w$ole b%s
t$e ability to be s$ared. .$is prevents t$e loc,ing o' t$is speci'ic
dis,
Start t$e virt%al mac$ine
As yo% $ave already mo%nted t$e #SO image o' t$e O()*! t$e above
screen appears
Clic, S,ip
Clic, /e0t
Select installation lang%age and clic, ne0t
Select appropriate ,eyboard and clic, ne0t
Select 8Server: as t$e installation type and clic, /e0t
Select ;is, ;r%id 'or dis, partitioning met$od and clic, /e0t
Clic, Bes 'or all warnings and clic, /e0t
;o%ble clic, in t$e 'irst drive CdevCsda
Speci'y DC& as a mo%nt point! ma,e its 'iles system 8e0t7: and
ma,e t$e (nd Cylinder E00 3to ma,e t$e si<e o' t$e root 'older F=b4.
C$ec, 8+orce to be a primary partition: and clic, O,
Select +ile System .ype as 8swap: and c$ange (nd Cylinder to 11F0
Create mo%nt point called C%01! ma,e its 'iles system 8e0t7: and
ma,e (nd Cylinder "G10 and clic, O,
Ma,e s%re t$at t$e last state o' yo%r dis, partitioning loo,s li,e as
it&s seen above
/ow let&s con'ig%re t$e networ, devices. Select t$e 'irst device and
clic, (dit
Hnc$ec, 8Con'ig%re %sing ;9CP: and provide t$e 'ollowing ip address
and netmas,5
#P Address5 1E".1GI.".171
/etmas,5 ".".".0
Select t$e second device! edit it! %nc$ec, 8Con'ig%re %sing ;9CP:
and provide t$e 'ollowing ip address and netmas,
#P address5 10.10.10.71
/etmas,5 ".".".0
Set t$e $ostname as 8rac1.test.a<: 3yo% can provide any domain
name4 and set t$e gateway to 1E".1GI.".1
;isable +irewall and S()in%0 and clic, /e0t
Select t$e de'a%lt lang%age 'or t$e system and clic, /e0t
Select .ime>Jone and Clic, /e0t
Provide t$e password 'or t$e root %ser and clic, ne0t
Select necessary pac,ages 'or Oracle installation. 9ere&s t$e list
o' t$e necessary pac,ages5
K -indow System
=nome ;es,top (nvironment
(ditors
=rap$ical #nternet
Server Con'ig%ration .ools
)egacy /etwor, 3clic, ;etails and select 8rs$Lserver: and 8telnet>
server:4
;evelopment .ools
)egacy So'tware ;evelopment
Administration .ools
System .ools 3select all pac,ages t$at starts wit$ 8oc's": and
8oracleasm:! select 8systat: as well4
Clic, /e0t to start t$e installation
A'ter installation completed t$e mac$ine restarts. Clic, /e0t
Agree wit$ license and clic, /e0t
Set t$e date and time and clic, /e0t
Set t$e display and clic, /e0t
Bo% don&t need to create a %ser so clic, /e0t
Clic, /e0t
Clic, /e0t and 'inis$ t$e installation
/ow let&s install vmware tools. +or t$is! disconnect t$e mo%nted #SO
image! c$oose 8#nstall VMware .ools: 'rom VM men%
;o%ble clic, on VMware tools icon and r%n t$e .rpm 'ile by do%ble
clic,ing on it
A'ter t$e window is closed! open new terminal and r%n vmware>con'ig>
tools.pl and 'inis$ t$e installation o' vmware tools
.o sync$roni<e t$e time on t$e virt%al mac$ine wit$ t$e $ost mac$ine
e0ec%te 8vmware>toolbo0: on t$e terminal window and c$ec, t$e c$ec,
bo0
(dit CbootCgr%bCgr%b.con' 'ile and add 8cloc,@pit nosmp noapic
nolapic: to t$e line t$at reads ,ernel Cboot
.$e 8cloc,@pit: prevents t$e cloc, 'or r%nning to M%ic,ly and
8nosmp noapic nolapic: prevents t$e cloc, 'rom r%nning too slowly.
A'ter yo% ma,e t$e c$ange! reboot t$e mac$ine 'or c$ange to ta,e
e''ect
/ow let&s start t$e prereM%isite steps 'or Oracle installation. +or
t$is we&ll create a gro%p! a %ser and some directories
view source
print ?
01 gro%padd oinstall
0"
07 gro%padd dba
0*
0 m,dir >p Ce0portC$omeCoracle
0G
0F m,dir Coc's
0I
0E %seradd >d Ce0portC$omeCoracle >g oinstall >= dba oracle
10
11 c$own oracle5dba Ce0portC$omeCoracle C%01
1"
17 passwd oracle
C$ange t$e .bas$Lpro'ile 3and .bas$rc4 'ile and add t$e 'ollowing
lines5
view source
print ?
01 e0port (;#.OR@vi
0"
07 e0port ORAC)(LS#;@devdb1
0*
0 e0port ORAC)(L2AS(@C%01CappCoracle
0G
0F e0port ORAC)(L9OM(@NORAC)(L2AS(Cprod%ctC10.".0CdbL1
0I
0E e0port ORALCRSL9OM(@NORAC)(L2AS(Cprod%ctC10.".0CcrsL1
10
11 e0port );L)#2RARBLPA.9@NORAC)(L9OM(Clib
1"
1
7
e0port PA.9@NORAC)(L9OM(Cbin5
NORALCRSL9OM(Cbin5Cbin5C%srCbin5C%srCsbin5C%srClocalCbin5C%srCK11RG
Cbin
1*
1 %mas, 0""
/ow switc$ to oracle %ser wit$ 8s% O oracle: command. Ma,e s%re
all environment variables are set 3ec$o NORAC)(L9OM(4. A'ter t$at!
create t$e 'ollowing directories5
view source
print ?
1 s% > oracle
"
7 m,dir >p NORAC)(L2AS(Cadmin
*
m,dir >p NORAC)(L9OM(
G
F m,dir >p NORALCRSL9OM(
I
E m,dir >p C%01CoradataCdevdb
/ote t$at i' environment variables are not set correctly! t$en t$e
above mentioned directories will not be created.
C$ange CetcCsec%rityClimits.con' 'ile wit$ a root %ser and add
'ollowing lines5
view source
print ?
1 oracle so't nproc "0*F
"
7 oracle $ard nproc 1G7I*
*
oracle so't no'ile 10"*
G
F oracle $ard no'ile G7G
C$ange CetcCpam.dClogin 'ile and add t$e 'ollowing line5
view source
print ?
1 session reM%ired ClibCsec%rityCpamLlimits.so
/ow mo%nt t$e t$ird installation cd o' t$e O()*! connect it and open
new terminal. Switc$ to t$e RPMS 'older inside t$e cd and install
8libaio>0.7.10>".i7IG.rpm: and 8openmoti'"1>".1.70>
11.R9()*.G.i7IG.rpm: pac,ages
view source
print ?
1 rpm OHv$ libaio>0.7.10>".i7IG.rpm
"
7 rpm OHv$ openmoti'"1>".1.70>11.R9()*.G.i7IG.rpm
C$ange CetcCsysctl.con' 'ile and add t$e 'ollowing lines5
view source
print ?
01 ,ernel.s$mall @ "0EF1"
0"
07 ,ernel.s$mma0 @ "1*F*I7G*I
0*
0 ,ernel.s$mmni @ *0EG
0G
0F ,ernel.sem @ "0 7"000 100 1"I
0I
0E 's.'ile>ma0 @ G7G
10
11 net.ipv*.ipLlocalLportLrange @ 10"* G000
1"
17 net.core.rmemLde'a%lt @ 10*IFG
1*
1 net.core.rmemLma0 @ 10*IFG
1G
1F net.core.wmemLde'a%lt @ "G"1**
1I
1E net.core.wmemLma0 @ "G"1**
.$en e0ec%te t$e 'ollowing command 'or c$ange to ta,e e''ect5
CsbinCsysctl >p
/ow let&s con'ig%re t$e networ, con'ig%ration 'iles. +or t$is we
need to add #P addresses and $ostnames to t$e CetcC$osts 'ile in eac$
node and test t$e connection by pinging t$e $ostnames
view source
print ?
01 1"F.0.0.1 local$ost
0"
07 1E".1GI.".171 rac1.test.a< rac1
0*
0 1E".1GI.".71 rac1>vip.test.a< rac1>vip
0G
0F 10.10.10.71 rac1>priv.test.a< rac1>priv
0I
0E 1E".1GI.".17" rac".test.a< rac"
10
11 1E".1GI.".7" rac">vip.test.a< rac">vip
1"
17 10.10.10.7" rac">priv.test.a< rac">priv
.ry t$e connection by pinging all $ostnames 3don&t ping V#P
addresses as t$ey will be created d%ring cl%sterware installation45
ping rac1.test.a<
ping rac1>priv.test.a<
and son on
/ow start creating dis, partitions 'or OC+S" and ASM. CdevCsdb will
be %sed 'or OC+S" and rest devices will be %sed 'or ASM.
'dis, CdevCsdb
.ype n 3to create new partition4
.ype p to create a primary partition
.ype 1 to provide t$e partition n%mber
;o%ble clic, on (nter and type 8w: to save t$e c$anges
Per'orm above steps 'or all $ard dis,5
'dis, CdevCsdc
'dis, CdevCsdd
'dis, CdevCsde
.o map t$e raw devices to t$e s$ared partitions! c$ange
CetcCsyscon'igCrawdevices 'ile5
view source
print ?
1 CdevCrawCraw1 CdevCsdc1
"
7 CdevCrawCraw" CdevCsdd1
*
CdevCrawCraw7 CdevCsde1
And r%n t$e 'ollowing command to ma,e it e''ective
CsbinCservice rawdevices restart
.$en c$ange t$e permission 'or all newly created raw devices5
view source
print ?
1 c$own oracle5dba CdevCrawCrawP1>7Q
"
7 c$mod GG0 CdevCrawCrawP1>7Q
*
ls >lat CdevCrawCrawR
/e0t! switc$ to t$e oracle %ser and create lin,s 'or raw devices
view source
print ?
1 s% > oracle
"
7 ln >s' CdevCrawCraw1 C%01CoradataCdevdbCasmdis,1
*
ln >s' CdevCrawCraw" C%01CoradataCdevdbCasmdis,"
G
F ln >s' CdevCrawCraw7 C%01CoradataCdevdbCasmdis,7
As t$e raw devices are remapped on boot! c$ange
CetcC%devCpermissions.dC0>%dev.permissions wit$ t$e root %ser and
add t$e 'ollowing lines5
view source
print ?
1 S raw devices
"
7 ramR5root5dis,50GG0
*
SrawCR5root5dis,50GG0
G
F rawCR5oracle5dba50GG0
A'ter per'orming all above steps! s$%tdown t$e virt%al mac$ine. .$en
copy all its 'iles to anot$er directory 3c56vmware6rac"4
Open it! switc$ to t$e Options tab! c$ange its name to 8rac": and
start it
Open /etwor, Con'ig%ration and c$ange addresses o' eac$ (t$ernet
device.
et$0 O 1E".1GI.".17"
et$1 O 10.10.10.7"
.$en 'rom 9ardware ;evice type clic, on 8Probe: b%tton to get new
MAC address! enable bot$ networ, devices! c$ange $ostname to
rac".test.a< and clic, CtrlTS to save t$e c$anges. .$en add t$e
'ollowing line to t$e CetcC$osts 'ile
1"F.0.0.1 local$ost
/ow it&s time to establis$ %ser eM%ivalence wit$ SS9. Oracle
Hniversal #nstaller installs t$e binaries in one node and t$en
propagates t$e 'iles to t$e ot$er nodes. +or t$is! it %ses ss$ and
scp command in t$e bac,gro%nd d%ring installation to r%n remote
commands and copy 'iles to t$e ot$er cl%ster nodes. So SS9 m%st be
con'ig%red so t$at t$ese commands not prompt 'or a password. +or t$is
power on t$e 'irst mac$ine! login wit$ root %ser! switc$ to t$e
oracle %ser and generate RSA and ;SA ,ey pairs
s% O oracle
ss$>,eygen Ot rsa 3clic, (nter twice4
ss$>,eygen Ot dsa 3clic, (nter twice4
Per'orm above steps in t$e second node 3rac"4
/ow 3'rom rac14 add t$e generated ,eys to t$e UC.ss$Ca%t$ori<edL,eys
'ile
view source
print ?
1 cat UC.ss$CidLrsa.p%b VgtWVgtW UC.ss$Ca%t$ori<edL,eys
"
7 cat UC.ss$CidLdsa.p%b VgtWVgtW UC.ss$Ca%t$ori<edL,eys
.$en 'rom rac1 SS9 to rac" twice and add t$e .rsa and .dsa ,eys to
t$e 8a%t$ori<edL,eys: 'ile t$at locates in t$e 'irst node5
view source
print ?
1 ss$ rac" cat UC.ss$CidLrsa.p%b VgtWVgtW UC.ss$Ca%t$ori<edL,eys
"
7 ss$ rac" cat UC.ss$CidLdsa.p%b VgtWVgtW UC.ss$Ca%t$ori<edL,eys
/ow copy t$e 8a%t$ori<edL,eys: 'ile 'rom rac1 to rac"5
view source
print ?
1 scp UC.ss$Ca%t$ori<edL,eys rac"5UC.ss$Ca%t$ori<edL,eys
A'ter per'orming all above steps! yo% s$o%ld s%ccess'%lly open SS9
connection 'rom rac1 to rac" and vice verse. So r%n t$e 'ollowing
commands in bot$ nodes and ens%re t$at yo%&re not prompted 'or t$e
password 'or t$e second time5
view source
print ?
01 ss$ rac1 date
0"
07 ss$ rac" date
0*
0 ss$ rac1>priv date
0G
0F ss$ rac">priv date
0I
0E ss$ rac1.test.a< date
10
11 ss$ rac".test.a< date
1"
17 ss$ rac1>priv.test.a< date
1*
1 ss$ rac">priv.test.a< date
# want to note again 8Please ma,e s%re t$at a'ter r%nning above
commands on eac$ node! yo%&re not prompted 'or t$e password 'or t$e
second time:
/ow let&s con'ig%re Oracle ASM 3A%tomatic Storage Management4. So
r%n t$e 'ollowing commands 'rom bot$ nodes wit$ root %ser5
CetcCinit.dCoracleasm con'ig%re
Pass 8oracle: as a parameter 'or 8de'a%lt %ser:
Pass 8dba: as a parameter 'or 8de'a%lt gro%p:
Pass 8y: 'or t$e t$ird and 'o%rt$ parameters
.$en create ASM dis,s on any node 3try on t$e 'irst node O rac14
wit$ a root %ser5
CetcCinit.dCoracleasm createdis, VO)1 CdevCsdc1
Mar,ing dis, 8CdevCsdc1A as an ASM dis,5 P OK Q
CetcCinit.dCoracleasm createdis, VO)" CdevCsdd1
Mar,ing dis, 8CdevCsdd1A as an ASM dis,5 P OK Q
CetcCinit.dCoracleasm createdis, VO)7 CdevCsde1
Mar,ing dis, 8CdevCsde1A as an ASM dis,5 P OK Q
Veri'y t$at t$e ASM dis,s are visible 'rom every node.
CetcCinit.dCoracleasm scandis,s
Scanning system 'or ASM dis,s5 P OK Q
CetcCinit.dCoracleasm listdis,s
VO)1
VO)"
VO)7
/ow let&s con'ig%re Oracle Cl%ster +ile System 3OC+S"4. +or t$is!
r%n 8oc's"console: wit$ a root %ser 'rom t$e 'irst node. .$en 'rom
t$e Cl%ster men% select Con'ig%re /odes! clic, Add b%tton and apply
bot$ nodes5
rac1
1E".1GI.".171
FFFF
rac"
1E".1GI.".17"
FFFF
.$en propagate t$e con'ig%ration to t$e second node. +or t$is select
8Propagate Con'ig%ration: 'rom t$e Cl%ster men%.
.o con'ig%re O"C2 to start at t$e boot %nload and con'ig%re it on
bot$ nodes as a root %ser5
CetcCinit.dCo"cb %nload
CetcCinit.dCo"cb con'ig%re
and pass t$e 'ollowing parameters
8y:
oc's"
G1
/ow 'ormat t$e 'ile system on t$e 'irst node 3rac14. +or t$is r%n
oc's"console program! select +ormat 'rom t$e .as,s men% and clic, OK
to 'ormat t$e drive. Press CtrlTX to M%it
/ow e0ec%te t$e 'ollowing command on bot$ nodes to mo%nt t$e 'iles
system
mo%nt >t oc's" >o datavol%me!nointr CdevCsdb1 Coc's
and add t$e 'ollowing line to t$e CetcC'stab to mo%nt t$e 'iles
system on boot
CdevCsdb1 Coc's oc's" Lnetdev!datavol%me!nointr 0 0
Create a 8cl%sterware: directory %nder Coc's 'older and c$ange t$e
owner5
view source
print ?
1 m,dir Coc'sCcl%sterware
"
7 c$own >R oracle5dba Coc's
/ow to test t$e s$ared device! create a 'ile in t$e Coc's directory
'rom t$e 'irst node 3rac14 and c$ec, t$e same 'older in t$e second
node.
cd Coc's
to%c$ testL'ile
ls
/ow download t$e cl%sterware installation! copy it %nder Ctmp
directory! %n<ip it and start t$e installation
.Cr%n#nstaller
Provide t$e 'older 'or t$e #nventory and clic, /e0t
Create a clusterware directory under /ocfs folder and change the
owner:
view source
print ?
1 m,dir Coc'sCcl%sterwareVltWCspanVgtWVltWCpVgtW
" VltWp class@YMso/ormalY style@Ymargin5 0 0 10ptWYVgtWVltWspan
style@Y'ont>'amily5 CalibriW 'ont>si<e5 smallWYVgtWc$own >R
oracle5dba Coc's
Now to test the shared device, create a fle in the /ocfs directory
from the frst node (rac! and chec" the same folder in the second
node#
cd /ocfs
touch test$fle
ls
Now download the clusterware installation, copy it under /tmp
directory, un%ip it and start the installation
.Cr%n#nstaller
Provide t$e 'older 'or t$e #nventory and clic, /e0t
C$ange t$e CRS 'older to C%01CappCoracleCprod%ctC10.".0CcrsL1 and
clic, /e0t
A'ter c$ec,ing all prereM%isites it s$o%ld not give any warning! so
clic, /e0t
Clic, on Add b%tton and provide t$e in'ormation on t$e second node5
P%blic /ode /ame5 rac".test.a<
Private /ode /ame5 rac">priv.test.a<
Virt%al 9ost /ame 5 rac">vip.test.a<
Clic, on (dit b%tton! c$ange t$e #nter'ace type o' t$e 'irst (t$ernet
device 3et$04 to 8P%blic: and t$e second to 8Private:
Select (0ternal Red%ndancy and provide t$e location 'or OCR 5
Coc'sCcl%sterwareCocr
Select (0ternal Red%ndancy and provide t$e location 'or Voting ;is,
Coc'sCcl%sterwareCvotingdis,
/ow clic, #nstall b%tton to start t$e cl%sterware installation
A'ter installation completes! r%n bot$ scripts on bot$ nodes
R%n C%01CappCoracleCora#nventoryCorainstRoot.s$ on rac1 and rac"
3wait eac$ script to complete be'ore r%nning it on t$e second node4
R%n C%01CappCoracleCprod%ctC10.".0CcrsL1Croot.s$ on rac1 and rac"
3wait eac$ script to complete be'ore r%nning it on t$e second node4
A'ter r%nning t$e second script on t$e second node 3rac"4 yo%&ll get
an error 3on r%nning V#PCA4! so yo% need to r%n it man%ally. Switc$
to t$e 'ollowing directory
cd C%01CappCoracleCprod%ctC10.".0CcrsL1Cbin
and r%n t$e .Cvipca to create and con'ig%re V#P
Select t$e 'irst (t$ernet device and Clic, /e0t
&fter running the second script on the second node (rac'! you(ll get
an error (on running )*+C&!, so you need to run it manually# ,witch
to the following directory
cd /u-/app/oracle/product/-#'#-/crs$/.in
and r%n t$e .Cvipca to create and con'ig%re V#P
Select t$e 'irst (t$ernet device and Clic, /e0t
.ype 8rac1>vip: on t$e #P Alias /ame 'or t$e 'irst node 3rac14. .$e
rest bo0es will be 'illed a%tomatically. Clic, /e0t
Clic, +inis$ to start t$e installation
A'ter vipca 'inis$ed s%ccess'%lly! switc$ to t$e 'irst node and clic,
OK b%tton on t$e 8script r%nning: window.
Clic, (0it b%tton to e0it t$e installation o' an Oracle Cl%sterware
/ow copy t$e installation o' t$e database 3Oracle 10gR"4 to t$e Ctmp
directory! %n<ip and start t$e installation. Bo% need to start t$e
installation wit$ an oracle %ser! so r%n 80$ost T: 'rom t$e root
%ser to allow t$e connection to t$e K server and switc$ to t$e oracle
%ser
0$ost T
s% O oracle
.Cr%n#nstaller
Select 8(nterprise (dition: and clic, /e0t
Provide t$e installation directory
3C%01CappCoracleCprod%ctC10.".0CdbL14
Select bot$ nodes and clic, /e0t
.$e prereM%isite c$ec, s$o%ld be s%ccess'%l! so clic, /e0t
)et&s install Z%st a so'tware! so c$ec, 8#nstall database So'tware
only: and clic, /e0t
Clic, #nstall to start t$e installation
(0ec%te t$e mentioned script on bot$ nodes 3wait 'or t$e script to
'inis$ be'ore r%nning it on t$e second node4
A'ter installation 'inis$es! r%n 8dbca: 3;atabase Con'ig%ration
Assistant4! select 8Oracle Real Application Cl%sters database: and
clic, /e0t
Select 8Con'ig%re A%tomatic Storage Management: and clic, /e0t
Select bot$ nodes and clic, /e0t
Provide t$e password 'or an ASM instance! select 8Create
initiali<ation parameter 'ile 3#+#)(4: and clic, /e0t
Clic, OK to create and ASM instance on bot$ nodes
Clic, B(S to create listener on bot$ nodes
/ow let&s create an ASM dis,s. +or t$is! clic, 8Create /ew: b%tton
Provide t$e name o' t$e dis,gro%p 8dg1:! select t$e 8(0ternal:
red%ndancy! select two dis,s 8raw1!raw": and clic, OK
.$e dis, gro%p will not be mo%nted in t$e second node! so omit t$is
warning. .$e second node s$o%ld be restarted 3b%t not now4
Create t$e second dis, gro%p 'or 'las$ recovery area 3'g4! select an
8(0ternal: red%ndancy! select t$e last device 3raw74 and clic, O,
As yo% see! t$e state o' dis, gro%p s$ows t$at it&s not mo%nted on
t$e second node. +or t$is! we need to restart t$e second node. Clic,
on +inis$ and restart t$e second node. A'ter it starts! login wit$
root %ser and call dbca 'rom t$e 'irst node again.
Move to t$e above window again and yo%&ll see t$at t$e dis, gro%p is
mo%nted on bot$ nodes. Clic, on +inis$ b%tton
R%n dbca again and select 8Create a ;atabase:
Select bot$ nodes and clic, /e0t
Select 8=eneral P%rpose: and clic, /e0t
Provide t$e database name 8devdb: and clic, /e0t
Hnc$ec, 8Con'ig%re t$e ;atabase wit$ (nterprise Manager: as it&s
ta,ing too m%c$ 3some $o%rs4 to 'inis$ 3$owever! i' yo% $ave eno%g$
RAM! yo% can c$ec, it4 and clic, /e0t
Provide t$e password 'or t$e SBS %ser and clic, /e0t
Select 8A%tomatic Storage Management: and clic, /e0t
Provide t$e password 'or ASM and clic, OK
Select t$e 'irst dis, gro%p and clic, /e0t
Select 8Hse Oracle>Managed +iles: and clic, /e0t
C$ec, 8Speci'y +las$ Recovery Area: and c$ose 8+=: dis, gro%p and
clic, /e0t
Clic, /e0t
Clic, /e0t 3-e&ll create .A+ a'terwards4
Clic, /e0t
Clic, /e0t
Clic, +inis$ to start t$e installation
A'ter some $o%rs 3as # was r%nning eac$ virt%al mac$ine wit$ 1=2 RAM4
t$is screen appears. Clic, (0it
/ow bot$ instances will be started.
A'ter all! c$ec, t$e stat%s o' t$e Cl%sterware. As yo% see! some
applications are wit$ 8O++)#/(: state. .o ma,e t$em online! stop
and start t$em wit$ SRVC.) %tility as it&s s$own above
A'ter all! c$ec, t$e CRS stat%s again. As yo% see! t$e State col%mn
o' all applications are O/)#/(
/ow connect to t$e database 'rom t$e 'irst node 3rac14 and r%n t$e
'ollowing M%ery
SX)?col $ostLname 'ormat a"0
SX)?S()(C. instanceLname! $ostLname! t$readS! stat%s 'rom
gvNinstanceW
.ry t$e conection to bot$ instances5
view source
print ?
01 Poracle[rac1 UQN sMlpl%s system[devdb1
0"
07 SX)RPl%s5 Release 10.".0.1.0 > Prod%ction on -ed Mar 70 1057I5*0
"011
0*
0 Copyrig$t 3c4 1EI"! "00! Oracle. All rig$ts reserved.
0G
0F (nter password5
0I
0E Connected to5
10 Oracle ;atabase 10g (nterprise (dition Release 10.".0.1.0 >
Prod%ction
11 -it$ t$e Partitioning! Real Application Cl%sters! O)AP and ;ata
Mining options
1"
17 SX)VgtWe0it
1*
1 Poracle[rac1 UQN sMlpl%s system[devdb"
1G
1F SX)RPl%s5 Release 10.".0.1.0 > Prod%ction on -ed Mar 70 1057E50*
"011
1I
1E Copyrig$t 3c4 1EI"! "00! Oracle. All rig$ts reserved.
"0
"1 (nter password5
""
"7 Connected to5
"* Oracle ;atabase 10g (nterprise (dition Release 10.".0.1.0 >
Prod%ction
" -it$ t$e Partitioning! Real Application Cl%sters! O)AP and ;ata
Mining options
"G
"F SX)VgtW
)et&s M%ery data'iles and log'iles5
view source
print ?
01 Poracle[rac1 UQN sMlpl%s system[devdb1
0"
07 SX)VgtW col 'ileLname 'ormat a*
0* SX)VgtW select 'ileLname! bytesC10"*C10"* si<e 'rom dbaLdataL'ilesW
0
0G SX)VgtW select 'ileLname! bytesC10"*C10"* Ysi<eY 'rom
dbaLdataL'ilesW
0F
0I +#)(L/AM( si<e
0E >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>
10 T;=1CdevdbCdata'ileC%sers."E.F*F0IF"7
11 T;=1CdevdbCdata'ileCsysa%0."F.F*F0IF""1 "*0
1" T;=1CdevdbCdata'ileC%ndotbs1."I.F*F0IF"77 "
17 T;=1CdevdbCdata'ileCsystem."G.F*F0IF"0E *I0
1* T;=1CdevdbCdata'ileC%ndotbs"."G*.F*F0II"71 "
1
1G SX)VgtW
1F
1I SX)VgtW col member 'ormat a*
1E SX)VgtW select gro%pS! type! member 'rom vNlog'ileW
"0
"1 =ROHPS .BP( M(M2(R
"" >>>>>>>>>> >>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"7 " O/)#/( T;=1CdevdbConlinelogCgro%pL"."G".F*F0IF7E
"* " O/)#/( T+=CdevdbConlinelogCgro%pL"."I.F*F0IF*F
" 1 O/)#/( T;=1CdevdbConlinelogCgro%pL1."G1.F*F0IF1E
"G 1 O/)#/( T+=CdevdbConlinelogCgro%pL1."F.F*F0IF77
"F 7 O/)#/( T;=1CdevdbConlinelogCgro%pL7."G.F*F17""0E
"I 7 O/)#/( T+=CdevdbConlinelogCgro%pL7."E.F*F17"""1
"E * O/)#/( T;=1CdevdbConlinelogCgro%pL*."GG.F*F17""7
70 * O/)#/( T+=CdevdbConlinelogCgro%pL*."G0.F*F17""*E
71
7" I rows selected.
77
7* SX)VgtW
/ow connect to an ASM instance and M%ery t$e dis,gro%ps5
view source
print ?
01 e0port ORAC)(LS#;@TASM1
0" sMlpl%s C as sysdba
07
0* SX)VgtW col name 'ormat a"0
0
0G SX)VgtW select gro%pLn%mber! name! state! type! totalLmb!
%sableL'ileLmb 'rom vNasmLdis,gro%pW
0F =ROHPL/HM2(R /AM( S.A.( .BP( .O.A)LM2 HSA2)(L+#)(LM2
0I >>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>> >>>>>>>>>>> >>>>>> >>>>>>>>>>
>>>>>>>>>>>>>>
0E 1 ;=1 MOH/.(; (K.(R/ I1II F0*I
10 " += MOH/.(; (K.(R/ *0E* 7FG0
11
1" SX)VgtW
/ow let&s create a Service. Services are %sed to manage t$e wor,load
in an RAC environment and provide $ig$ availability. .o create t$e
service r%n 8dbca:
Select t$e 'irst option and clic, /e0t
Select 8Service Management: and clic, /e0t
Select t$e 'irst database and clic, /e0t
Provide t$e name o' t$e Service and clic, /e0t
-$en yo% speci'y PR(+(RR(; instances! yo% are speci'ying t$e n%mber
o' instances on w$ic$ a service will normally r%n. .$e Oracle
Cl%sterware attempts to ens%re t$at t$e service always r%ns on t$e
n%mber o' nodes 'or w$ic$ yo% $ave con'ig%red t$e service.
A'terwards! d%e to eit$er instance 'ail%re or planned service
relocations! a service may be r%nning on an AVA#)A2)( instance
Select Pre'erred 'or t$e 'irst instance! and Available 'or t$e second
instance! c$ange t$e .A+ policy to 2asic and clic, +inis$
A'ter t$e Service created a%tomatically! c$ec, tnsnames.ora 'ile and
yo%&ll see t$at t$e new entry is added
/hen you specify +01210013 instances, you are specifying the
num.er of instances on which a service will normally run# 4he
5racle Clusterware attempts to ensure that the service always runs
on the num.er of nodes for which you have confgured the service#
&fterwards, due to either instance failure or planned service
relocations, a service may .e running on an &)&*6&761 instance
Select Pre'erred 'or t$e 'irst instance! and Available 'or t$e second
instance! c$ange t$e .A+ policy to 2asic and clic, +inis$
A'ter t$e Service created a%tomatically! c$ec, tnsnames.ora 'ile and
yo%&ll see t$at t$e new entry is added
.ry to connect to t$e database %sing t$is service. As yo% see! we&ll
a%tomatically connect to t$e 'irst instance. /ow let&s c$ec, t$e RAC
$ig$ availability
+or t$is! w$ile connecting to t$e 'irst instance 3devdb14 %sing a
8service:! open new terminal! connect to t$e 'irst instance and
s$%t it down
/ow go bac, to t$e 'irst session and M%ery t$e vNinstance view again.
As yo% see! yo%&ll be a%tomatically 'orwarded to t$e second instance
#n t$is step by step t%torial #&ve s$own yo% t$e deep step by step
g%ide %sing 10 screens$ots to ma,e t$e RAC installation easier 'or
yo%. # $ope yo%&ll s%ccess'%lly install RAC and ma,e yo%r own tests.
=ood )%c,1
ADVERTISEMENT

Like this:
Like
2 bloggers like this post.

.$is entry was posted on April ! "011 at 151G pm and is 'iled %nder
Administration! RAC iss%es. Bo% can 'ollow any responses to t$is
entry t$ro%g$ t$e RSS ".0 'eed. Bo% can leave a response! or
trac,bac, 'rom yo%r own site.
FF Responses to 8Step by Step installing Oracle 10g RAC
on
#ss said
April 11! "011 at I50G pm
9i ,amran!
im not able able to ping t$e rac" mac$ine. im getting
destination $ost %nreac$able
t$is w$at i $ave on bot$ CetcC$osts 'ile
1"F.0.0.1 local$ost
1E".1GI.".171 rac1.test.ca rac1
1E".1GI.".71 rac1>vip.test.ca rac1>vip
10.10.10.71 rac1>priv.test.ca rac1>priv
1E".1GI.".17" rac".test.ca rac"
1E".1GI.".7" rac">vip.test.ca rac">vip
10.10.10.7" rac">priv.test.ca rac">priv
t$is is my networ, settings 'rom t$e $ost OS
C56Hsers6Administrator?ipcon'ig
-indows #P Con'ig%ration
(t$ernet adapter )ocal Area Connection "5
Connection>speci'ic ;/S S%''i0 . 5
#Pv* Address. . . . . . . . . . . 5 1GE."*."."
S%bnet Mas, . . . . . . . . . . . 5 ".".".0
;e'a%lt =ateway . . . . . . . . . 5
-ireless )A/ adapter -ireless /etwor, Connection5
Connection>speci'ic ;/S S%''i0 . 5 gateway."wire.net
)in,>local #PvG Address . . . . . 5
'eI055'*"'5GF757eG757c*"\1*
#Pv* Address. . . . . . . . . . . 5 1E".1GI.".""
S%bnet Mas, . . . . . . . . . . . 5 ".".".0
;e'a%lt =ateway . . . . . . . . . 5 1E".1GI.".1
(t$ernet adapter 2l%etoot$ /etwor, Connection5
Media State . . . . . . . . . . . 5 Media disconnected
Connection>speci'ic ;/S S%''i0 . 5
(t$ernet adapter )ocal Area Connection5
Media State . . . . . . . . . . . 5 Media disconnected
Connection>speci'ic ;/S S%''i0 . 5
(t$ernet adapter VMware /etwor, Adapter VMnet15
Connection>speci'ic ;/S S%''i0 . 5
)in,>local #PvG Address . . . . . 5
'eI055''*5cGc'51aEa5I7bE\1E
#Pv* Address. . . . . . . . . . . 5 1E".1GI.G.1
S%bnet Mas, . . . . . . . . . . . 5 ".".".0
;e'a%lt =ateway . . . . . . . . . 5
(t$ernet adapter VMware /etwor, Adapter VMnetI5
Connection>speci'ic ;/S S%''i0 . 5
)in,>local #PvG Address . . . . . 5
'eI055*dF15e71c57**I5FFa\"0
#Pv* Address. . . . . . . . . . . 5 1E".1GI.1I7.1
S%bnet Mas, . . . . . . . . . . . 5 ".".".0
;e'a%lt =ateway . . . . . . . . . 5
.%nnel adapter isatap.]I1;GEC2>AF"1>*F1I>II12>+12*A0+*(0I^5
Media State . . . . . . . . . . . 5 Media disconnected
Connection>speci'ic ;/S S%''i0 . 5
.%nnel adapter isatap.]A071G(F1>7C;>*A2I>27+>;;;;GG(;;AIA^5
Media State . . . . . . . . . . . 5 Media disconnected
Connection>speci'ic ;/S S%''i0 . 5
.%nnel adapter .eredo .%nneling Pse%do>#nter'ace5
Connection>speci'ic ;/S S%''i0 . 5
#PvG Address. . . . . . . . . . . 5
"001505*17F5EeFG5"0GF5deb57'F5'deE
)in,>local #PvG Address . . . . . 5 'eI055"0GF5deb57'F5'deE\1
;e'a%lt =ateway . . . . . . . . . 5 55
.%nnel adapter isatap.]"*2F;0;2>E0EF>*AC7>E1(A>CE"(G70+0*(^5
Media State . . . . . . . . . . . 5 Media disconnected
Connection>speci'ic ;/S S%''i0 . 5
C56Hsers6Administrator?
M. #mran said
May "F! "011 at I50F pm
;ear Kamran!
9ow # can c$ec, t$at my O)( *.I vmware is s$aring dis,s.
# $ave 'allowed t$e steps care'%lly b%t my OC+S" dis, not mo%nt
at second node! # can&t see it on second node a'ter mo%nting
it s%ccess'%lly on node1 3server o' oc's4
# c$ec, CetcCoc's"Ccl%ster.con' t$at is properly 'ormatted and
w$en # c$ec, stat%s o' o"cb it s$ows me Active $eartbeat at
node1 only.
# am %sing vmware F wor,station! my vm0 'ile is as 'allows. #
am great>'%ll 'or yo% $elp.
.encoding @ 8windows>1""A
con'ig.version @ 8IA
virt%al9-.version @ 8FA
scsi0.present @ 8.RH(:
scsi0.virt%al;ev @ 8lsilogic:
memsi<e @ 810"*A
scsi050.present @ 8.RH(:
scsi050.'ile/ame @ 8bootLlin%0.vmd,:
ide150.present @ 8.RH(:
ide150.'ile/ame @ 8C56Program +iles6VMware6VMware
-or,station6lin%0.iso:
ide150.device.ype @ 8cdrom>image:
'loppy0.startConnected @ 8+A)S(:
'loppy0.'ile/ame @ 8:
'loppy0.a%todetect @ 8.RH(:
et$ernet0.present @ 8.RH(:
et$ernet0.wa,eOnPc,tRcv @ 8+A)S(:
et$ernet0.address.ype @ 8generated:
%sb.present @ 8.RH(:
e$ci.present @ 8.RH(:
so%nd.present @ 8.RH(:
so%nd.'ile/ame @ 8>1A
so%nd.a%todetect @ 8.RH(:
serial0.present @ 8.RH(:
serial0.'ile.ype @ 8t$inprint:
pci2ridge0.present @ 8.RH(:
pci2ridge*.present @ 8.RH(:
pci2ridge*.virt%al;ev @ 8pcieRootPort:
pci2ridge*.'%nctions @ 8IA
pci2ridge.present @ 8.RH(:
pci2ridge.virt%al;ev @ 8pcieRootPort:
pci2ridge.'%nctions @ 8IA
pci2ridgeG.present @ 8.RH(:
pci2ridgeG.virt%al;ev @ 8pcieRootPort:
pci2ridgeG.'%nctions @ 8IA
pci2ridgeF.present @ 8.RH(:
pci2ridgeF.virt%al;ev @ 8pcieRootPort:
pci2ridgeF.'%nctions @ 8IA
vmci0.present @ 8.RH(:
roamingVM.e0it2e$avior @ 8go:
display/ame @ 8node1A
g%estOS @ 8oraclelin%0:
nvram @ 8Oracle (nterprise )in%0.nvram:
virt%al9-.prod%ctCompatibility @ 8$osted:
printers.enabled @ 8.RH(:
e0tendedCon'ig+ile @ 8Oracle (nterprise )in%0.vm0':
et$ernet0.generatedAddress @ 80050c5"E5dG5b5*0A
tools.sync.ime @ 8.RH(:
%%id.location @ 8G *d 7d "G e" "e e0 1I>7* 10 0G cb 1I dG b
*0A
%%id.bios @ 8G *d 7d "G e" "e e0 1I>7* 10 0G cb 1I dG b *0A
cleanS$%tdown @ 8+A)S(:
replay.s%pported @ 8.RH(:
replay.'ilename @ 8:
scsi050.redo @ 8:
pci2ridge0.pciSlot/%mber @ 81FA
pci2ridge*.pciSlot/%mber @ 8"1A
pci2ridge.pciSlot/%mber @ 8""A
pci2ridgeG.pciSlot/%mber @ 8"7A
pci2ridgeF.pciSlot/%mber @ 8"*A
scsi0.pciSlot/%mber @ 81GA
%sb.pciSlot/%mber @ 87"A
et$ernet0.pciSlot/%mber @ 877A
so%nd.pciSlot/%mber @ 87*A
e$ci.pciSlot/%mber @ 87A
vmci0.pciSlot/%mber @ 87GA
vmotion.c$ec,point+2Si<e @ 81GFFF"1GA
et$ernet0.generatedAddressO''set @ 80A
vmci0.id @ 8*1GF"*"IEA
tools.remind#nstall @ 8+A)S(:
et$ernet0.connection.ype @ 8bridged:
dis,.loc,ing@:+A)S(:
dis,)ib.dataCac$eMa0Si<e@ 80A
scsi0.s$ared2%s @:virt%al:
scsi051.device.ype@ 8dis,:
scsi051.present @ 8.RH(:
scsi051.'ile/ame @ 8asm1.vmd,:
scsi051.mode @ 8independent>persistent:
scsi05".device.ype@ 8dis,:
scsi05".present @ 8.RH(:
scsi05".'ile/ame @ 8asm".vmd,:
scsi05".mode @ 8independent>persistent:
scsi057.device.ype@ 8dis,:
scsi057.present @ 8.RH(:
scsi057.'ile/ame @ 8asm7.vmd,:
scsi057.mode @ 8independent>persistent:
scsi05*.device.ype@ 8dis,:
scsi05*.present @ 8.RH(:
scsi05*.'ile/ame @ 8ocr.vmd,:
scsi05*.mode @ 8independent>persistent:
et$ernet1.present @ 8.RH(:
et$ernet1.connection.ype @ 8$ostonly:
et$ernet1.wa,eOnPc,tRcv @ 8+A)S(:
et$ernet1.address.ype @ 8generated:
et$ernet1.generatedAddress @ 80050c5"E5dG5b5*a:
scsi051.redo @ 8:
scsi05".redo @ 8:
scsi057.redo @ 8:
scsi05*.redo @ 8:
et$ernet1.pciSlot/%mber @ 87FA
et$ernet1.generatedAddressO''set @ 810A
ide150.startConnected @ 8+A)S(:
%nity.wasCapable @ 8+A)S(:
denY alt@YY C?

You might also like