aix oracle rac requirements v0 5

Upload: katie-benson

Post on 01-Jun-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    1/25

    27/01/2015

    AIX configuration recommendations for Oracle RAC

    Version

    Version Date Author Comments

    0.1 1stDecember2009

    Gnanasambandam,Swaminathan

    Initial Draft

    0.2 1stDecember2009

    en !ri"ht #id$ %& and create scri&t o%tof instr%ctions

    0.' 2ndDecember2009

    en !ri"ht (ddition of e)tra st%ff forconfi"%ration

    0.* 7thDecember2009

    en !ri"ht +ead thro%"h tid$ %& andchec

    dd if=/dev/zero of=/dev/emcasm001 bs=125829120 count=1

    Introduction

    #his doc%ment "oes thro%"h the confi"%ration of an (I- Serer for installin" racle+(.It first "oes thro%"h the ser +e%irements for the racle l%ster and racle serand then "oes thro%"h some best &ractises identified b$ the +( (ss%rance #eamreleant to (I- s&ecific +( im&lementations.

    #he lin below &roides a base &oint for the rest of the doc%ment.

    htt&3//download.oracle.com/docs/cd/24'5901/install.111/b24254/&reai).htm6(DG8

    #he serer containin" these scri&ts is sin%&e02.infra."o2%ti.com :10.2*0.12.10'; andthe$ are located in /data/software/scri&ts/admin/ai)/oracle.

    #his can be mo%nted b$ iss%in" the commands3

    mdir /tm&/netmo%nt 10.2*0.12.10'3/data/software /tm&/net

    The following software should be installed:

    #he followin" software &acs sho%ld be installed on the serer.

    bos.adt.basebos.adt.libbos.adt.libmbos.&erf.lib&erfstatbos.&erf.&erfstatbos.&erf.&roctoolsrsct.basic.rtersct.com&at.clients.rte

    en !ri"ht 1bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    2/25

    27/01/2015

    )l.ai)=1.rte39.0.0.1 :or later;)l.rte39.0.0.1 :or later;

    "cc

    >d

    ?ote3 ollowin" command lists the e)istin" installed &aca"es information

    lsl&& @llsl&& @a :for all o&tions;

    ther than A"ccB and A>dB the other Software Sets sho%ld be able to be installed fromthe ?IC Serer :for installation instr%ctions &lease see (I- confi"%ration after ?ICinstallation @ the$ are fo%nd in the ase Installation Software aca"e;.

    or G, it needs to be installed from the r&m &aca"e &roided inA10.2*0.12.10'3/data/software/ai)B

    #o install the r&m &aca"e r%n the command3

    r&m @i /tm&/net/ai)/"ccE*.2.0E'.ai)=.1.&&c.r&m

    or DF, this comes installed with the S, different ersions can be fo%nd on the?IC Serer.

    Creating the required Groups and Users

    !e need to create followin" %sers alon" with followin" "ro%&s.

    1. ser E racle3&r$ "r& 3 oinstall Sec "r&3dba2. ser E asm3 &r$ "r& 3 oinstall Sec "r& 3 asm, dba, asmdba'. ser E crs3 &r$ "r& 3 oinstall Sec "r& 3 crs, dba

    Example of Creating the Oracle Clusterware User and OraInventor !ath " new

    #he followin" is an e)am&le of how to create the racle l%sterware software owner

    :in this case, crs;, and a &ath com&liant with ( str%ct%re with correct &ermissionsfor the oraInentor$ director$. #his e)am&le also shows how to create se&arate racleDatabase and racle (SC homes with correct ownershi& and &ermissions36 mdir /%01/a&&/crs6 chown crs3oinstall /%01/a&&6 mdir /%01/a&&/oracle6 chown oracle3oinstall /%01/a&&/oracle6 chmod E+ 775 /%01/a&&/6 mdir /%01/a&&/asm6 chown asm3oinstall /%01/a&&/asm(t the end of this &roced%re, $o% will hae the followin"3

    /%01 owned b$ root. /%01/a&& owned b$ crs3oinstall with 775 &ermissions. #his ownershi& and

    en !ri"ht 2bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    3/25

    27/01/2015

    &ermissions enables I to create the oraInentor$ director$, in the &ath/%01/a&&/oraInentor$. /%01/a&&/crs owned b$ crs3oinstall with 775 &ermissions. #hese

    &ermissions are re%ired for installation, and are chan"ed d%rin" the installation

    &rocess. /%01/a&&/oracle owned b$ oracle3oinstall with 775 &ermissions. /%01/a&&/asm owned b$ asm3oinstall with 775 &ermissions.

    In the .&rofile of all %ser crs,asm,orcale

    test Et 0if :Hstat%s 0; thenstt$ intr Jendif

    %mas 022

    ai)thread s

    the "ro%& dba will SD(:Database D(;,the "ro%& asm will be:asmdba;,the "ro%&crs will be crs

    #he &lan is to hae se&arate oraclebase for l%sterware and owned b$ crs%ser.#he asm and db will share the same oraclebase b%t se&arate oraclehome.

    ?ote3 Kdit .&rofile of the oracle, asm and crs %sers.&rofile m%st be contains the followin" entries and remainin" lines sho%ld becommented before installin" softwares

    mas 022#C, #CDI+ location and e)&ort the same+(LK(SK(I-#8+K(DSKS

    (fter installation com&lete %ncomment all the entries and add re%ired entries.

    #he Gro%&s and sers can be created %sin" the followin" scri&t3

    (I-Eni)EraE+(EserEreate.sh

    #he scri&ts sho%ld &erform all the tass re%ired b$ the doc%mentation @ an$additional chan"es sho%ld be reiewed and added below :&reference is to modif$ thescri&t for f%t%re rollo%ts;.

    (fter the aboe scri&t has been r%n the /etc/sec%rit$/limits file needs to be modified sothat the Adefa%ltB is set to3

    en !ri"ht 'bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    4/25

    27/01/2015

    defa%lt3 fsiMe E1 core E1

    c&% E1 data 512000 rss 512000 stac 512000 nofiles 2000

    #o set the A#aximum $um%er of User !rocessesB to 217= or aboe#o set the A&stem 'loc( &i)e AllocationB to A124B or aboe

    #hen r%n the scri&t A(I-ESetELimits.shB

    Tune Virtual Memory Parameters

    #he Virt%al Cemor$ arameters can be set b$ r%nnin" the scri&t3

    (I-ESetEVCC.sh

    #his will t%ne the followin" Virt%al Cemor$ arameters3min&ermN'ma)&ermN90ma)clientNE90

    lr%filere&a"e0strictma)&erm0strictma)client1

    &a"estealmethod1

    (nd set the AIX*+READ,&CO!Eal%e to ASB in the /etc/enironment file(nd to disable the !rocessor -oldingfor racle Knironments :&m)c&%sE1;

    etwor! requirements

    ?etwor &arameters on the serer need to be ad>%sted to im&roe the &erformance ofthe racle l%ster. +%n the scri&t3

    (I-ESetE?etworaram.sh

    #his will set the followin" networ &arameters3%d&sends&ace=55'=%d&recs&ace=55'=0tc&sends&ace=55'=tc&recs&ace=55'=rfc1'2'1sbma)2O=55'=0i&ma)len512

    H ./rda.sh E# hce

    en !ri"ht *bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    5/25

    27/01/2015

    rocessin" 8VK tests ...(ailable reEInstallation +%le Sets3 1. racle Database 10" +1 :10.1.0; reInstall :(I-; 2. racle Database 10" +2 :10.2.0; reInstall :(I-;

    '. racle Database 11" +1 :11.1.0; reInstall :(I-; *. racle (&&lication Serer 10" :9.0.*; reInstall :(I-; 5. racle %sion Ciddleware 11" +1 :11.1.1; reInstall :(I-; =. racle ortal reInstall :Generic;(ailable ostEInstallation +%le Sets3 7. racle ortal ostInstall :"eneric; 4. Data G%ard ostInstall :Generic;Knter the 8VK r%le set n%mber8it P+et%rnP to acce&t the defa%lt :1;Q '

    Knter al%e for R lanned +(LK8CK location Q8it P+et%rnP to acce&t the defa%lt :/o&t/a&&/oracle/asm/&rod%ct/11.1.0/asm;Q

    Knter al%e for R DF 8ome QQ /%sr/>aa5=*

    #est racle Database 11" +1 :11.1.0; reInstall :(I-; e)ec%ted at ri Dec 1407357354 2009

    #est +es%ltsTTTTTTTTTTTT

    ID ?(CK +KSL# V(LK (00010 S ertifiedU (SSKD ertified with racle Database 11" +1(00020 ser in /etc/&asswdU (SSKD %serF(000*0 Gro%& in /etc/"ro%&U (SSKD Gro%&F(00050 In&%t +(LK8CK +K+D

    /o&t/a&&/oracle/asm/&rod%ct/11.1.0/asm(000=0 +(LK8CK ValidU (SSKD 8e)ists(00070 8 ermissions FU (SSKD orrecterms(00040 oraInentor$ ermiss (SSKD oraInentor$F(00090 Got ld,nm,ar,maeU (SSKD ldnmarmaefo%nd(00100 mas Set to 022U (SSKD masF(00110 %limits FU (ILKD Data#ooSmall Stac#ooSmall(001*0 LDLI+(+(#8 nsetU (ILKD IsSet(001=0 LI(#8 nsetU (ILKD IsSet(00190 DF 8ome +K+D /%sr/>aa5=*(00200 DF Version (SSKD (de%ate

    (00210 ther 8s in (#8U (ILKD ratabKntr$Inath(00220 ther I &U (SSKD ?otherI

    en !ri"ht 5bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    6/25

    27/01/2015

    (002'0 /tm& (de%ateU (SSKD #em&S&aceF(002*0 Dis S&ace FU (SSKD DisS&aceF(00250 Swa& :in C; +K+D 4192(002=0 +(C :in C; (SSKD *09=

    (00270 Swao+(C FU (SSKD Swao+(CF(00290 I (ddress +K+D 10.2*0.4.117(00'00 Domain ?ame +K+D detst."o2%ti.com(00'10 D?S Loo%& (ILKD 8ost not correctl$ re"istered in D?S(00'20 /etc/hosts ormat (ILKD Cissin" host.domain(00'*0 (I-#8+K(DSKSU (SSKD (I-#8+K(DSKF(00'50 LI?F?#+L is nsetU (SSKD LI?F?#+L%nset(00*10 Got S atchesU (SSKD ?otheced(00*'0 Got S aca"esU (SSKD (ll re%ired S &aca"es are installed+es%lt file3 /tm&/rda/o%t&%t/+D(8VK(200D11+1ai)res.htm

    $etwor( configuration

    Kach node in the cl%ster m%st hae at least two networ ada&ters to"ether with thenames associated with the networ ada&ters bein" the same across all nodes.#h%s for two nodes Aen?B m%st be %sed for the same &%r&ose @ &%blic or &riate.

    sin" the followin" commands chan"e the al%es of the followin" &arameters:in(I-;3. no "o tcp,sendspace/010233

    . no "o tcp,recvspace/010233

    . no "o udp,sendspace/14451

    . no "o udp,recvspace/010233

    Also the parameter rfc2505 needs to %e set to 2 for an *C!6 UD! parameters

    settings of over 1378

    no "o rfc2505/2

    Adding these entries to 6etc6rc8net will ensure that the parameter ta(e effect on

    ever re%oot8

    I! Address Re9uirements

    efore startin" the installation, fill in the table below for the racle D(Ws :below isan e)am&le from the A#est +( InstallationB.

    ?ode ?ame Interface

    ?ame

    #$&e I (ddress +e"istered

    in

    Deice

    Sin%tn02 Sin%tn02 %blic 10.2*0.4.117 D?S KnU

    en !ri"ht =bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    7/25

    27/01/2015

    Sin%tn02Ei&

    Sin%tn02Ei&

    %blic 10.2*0.4.201 D?S KnU

    Sin%tn02E&ri

    Sin%tn02E&ri

    riate 10.2*0.1*.117 8osts KnU

    Sin%tn0' Sin%tn0' %blic 10.2*0.4.125 D?S KnUSin%tn0'Ei&

    Sin%tn0'Ei&

    %blic 10.2*0.4.202 D?S KnU

    Sin%tn0'E&ri

    Sin%tn0'E&ri

    riate 10.2*0.1*.125

    8osts KnU

    $otes:

    (n I address with an associated networ name re"istered in the domain name

    serice :D?S; for the &%blic interface. If $o% do not hae an aailable D?S,then record the networ name and I address in the s$stem hostsfile, /etc/hosts.

    ne irt%al I :VI; address with an associated networ name re"istered in

    D?S. If $o% do not hae an aailable D?S, then record the networ name andVI address in the s$stem hosts file, /etc/hosts. Select an address for $o%r VIthat meets the followin" re%irements3

    o #he I address and networ name are c%rrentl$ %n%sed

    o #he VI is on the same s%bnet as $o%r &%blic interface

    efore installation, chec that the defa%lt "atewa$ can be accessed b$a &in" command. D%rin" installation, I %ses the &in" command to ens%rethat the VI is reachable. #o find the defa%lt "atewa$, %se the ro%te command,as described in $o%r o&eratin" s$stemPs hel& %tilit$. (fter installation,

    confi"%re clients to %se either the VI address, or the networ name associatedwith the VI. If a node fails, then the nodePs irt%al I address fails oer toanother node.

    ( &riate I address with a host name for each &riate interface

    racle recommends that $o% %se &riate networ I addresses for these interfaces :fore)am&le3 10.O.O.O or 192.1=4.O.O;. se the /etc/hosts file on each node to associate

    &riate networ names with &riate I addresses.

    ( %sef%l command to see the ?etwor Interfaces and their I (ddresses %se3

    6 netstat Ei

    ?ote3 /etc/hosts file entries sho%ld be lie the followin" e)am&le

    at /etc/hosts

    127.0.0.1 loo&bac localhost 6 loo&bac :lo0; name/address

    10.2*0.4.1'0 sin%n01.c."o2%ti.com sin%n0110.2*0.4.210 sin%n01Ei&.c."o2%ti.com sin%n01Ei&10.2*0.1*.1'0 sin%n01E&ri.c."o2%ti.com sin%n01E&ri

    10.2*0.4.1'1 sin%n02.c."o2%ti.com sin%n0210.2*0.4.211 sin%n02Ei&.c."o2%ti.com sin%n02Ei&

    en !ri"ht 7bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    8/25

    27/01/2015

    10.2*0.1*.1'1 sin%n02E&ri.c."o2%ti.com sin%n02E&ri

    "etting up the I#$ %is! configuration

    racle mae the followin" recommendation howeer as we are %sin" L(+Ws this is

    set on the VI Serer la$er3

    Set the ibre hannel SSI I/ ontroller rotocol Deice eent error recoer$&olic$ to fastfail for each fibreEchannel ada&ter3

    chde El fscsi0 Ea fcerrrecofastfail E

    Creating the &'( %e)ices for $racle Cluster

    !hen im&lementin" +(, $o% m%st tae care with the S(? stora"e chosen. #heS(? Stora"e m%st be ca&able of read/write conc%rrenc$ :writin" at the same time

    from an$ member of the +( cl%ster; thro%"h itWs driers. #his means thatAresere&olic$B attrib%te from the discoered diss :hdis, hdis&ower, dlmfdr, etcX; m%st be ca&able of handlin" settin"s with3 AnoresereB or AnolocB al%es.

    #o confi"%re racle on m%lti&le serers within a cl%ster it is beneficial to create allthe dis deices with the same name, b$ this we mean access name.#he standards are for normal D(#( or LG Dis Gro%&s the raw dis deice files are"ien the alias3

    /de/emcasm00?/de/emcasm00?Y1

    #he standards for the racle Votin" and l%ster Diss are3

    /de/oraotraw/de/oraocrraw

    #o create these alias files create the director$3 /de/rds.

    #he command Als @al /de/OhdisO will dis&la$ the 8ard Dis iles c%rrentl$ nownb$ the &eratin" S$stem3

    brwEEEEEEE 1 root s$stem 2*,4192 Dec 05 2001 /de/hdisn

    crwEEEEEEE 1 root s$stem 2*,4192 Dec 05 2001 /de/rhdisnIn this e)am&le, the deice file /de/rhdisnre&resents the character raw deice, 2* isthe deice ma>or n%mber, and 4192 is the deice minor n%mber.

    Knter a command similar to the followin" to create the new deice file, s&ecif$in" thenew deice file name and the deice ma>or and minor n%mbers that $o% identified inthe &reio%s ste&3$ote:

    In the followin" e)am&le, $o% m%st s&ecif$ the character AcB to create a character rawdeice file.mnod /de/rds/oraocrraw c 2* 4192

    Knter commands similar to the followin" to chan"e the owner, "ro%&, and &ermissionson the character raw deice file for the dis3

    en !ri"ht 4bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    9/25

    27/01/2015

    +3chown root3oinstall /de/rds/oraocrrawchmod =*0 /de/rds/oraocrraw

    racle l%sterware otin" dis3

    chown oracle3dba /de/rds/oraoterawchmod ==0 /de/rds/oraoteraw

    (SC diss3

    hown asm3dba /de/emcasm00?

    hmod ==0 /de/emcasm00?

    Knter a command similar to the followin" to erif$ that $o% hae created the newdeice file s%ccessf%ll$3

    ls Eal /de/rds Z "re& 2*,4192#he o%t&%t sho%ld be similar to the followin"3

    brwEEEEEEE 1 root s$stem 2*,4192 Dec 05 2001 /de/hdisncrwErEEEEE 1 root oinstall 2*,4192 Dec 05 2001 /de/oraocrrawcrwEEEEEEE 1 root s$stem 2*,4192 Dec 05 2001 /de/rhdisn

    #o enable sim%ltaneo%s access to a dis deice from m%lti&le nodes, $o% m%st set thea&&ro&riate b>ect Data Cana"er :DC; attrib%te, de&endin" on the t$&e of resereattrib%te %sed b$ $o%r diss. #he followin" section describes how to &erform this tas%sin" hdis lo"ical names. +efer to $o%r o&eratin" s$stem doc%mentation to findlo"ical deice names.

    #o determine the resere settin" $o%r diss %se, enter the followin" command,where nis the hdis deice n%mber3

    lsattr EK El hdisnZ "re& resere

    #he res&onse is either a resereloc settin", or a resere&olic$ settin".If the attrib%te is resereloc, then ens%re that the settin" is resereloc no.If the attrib%te is resere&olic$, then ens%re that the settin" is resere&olic$ noresere.

    If necessar$, chan"e the settin" with the chde command %sin" the followin" s$nta),where nis the hdis deice n%mber3chde El hdisnEa [ reserelocno Z resere&olic$noresere \

    or e)am&le, to chan"e a settin" for thedeice hdis* from resereloc$es to reserelocno, enter the followin"command36 chde El hdis* Ea reserelocno

    #o erif$ that the settin" is correct on all dis deices, enter the followin" command3

    6 lsattr EKl hdisnZ "re& resere

    en !ri"ht 9bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    10/25

    27/01/2015

    Knter commands similar to the followin" on an$ node to clear the VID from

    each dis deice that $o% want to %se36 chde El hdisnEa &clear

    !hen $o% are installin" racle l%sterware, $o% m%st enter the &aths to the

    a&&ro&riate deice files when &rom&ted for the &ath of the + and raclel%sterware otin" dis, for e)am&le3/de/rds/oraotraw/de/rds/oracrsraw

    or D(#( ] LG Dis "ro%& chan"e the ownershi& of alias that has been created forthis to asm3oinstall

    %rcase

    Kmcasm001Kmcasm002

    ?ote3 oth oracle otin" and cl%ster diss are m%st hae the followin" owner and&ermissions

    /de/oraotraw oracle3dba/de/oraocrraw root3dba

    (nd for (SC dis owner sho%ld be lie asm3dba

    Configuring ""* on Cluster Member odes

    #o confi"%re SS8, $o% m%st first create +S( or DS( e$s on each cl%ster node, andthen co&$ all the e$s "enerated on all cl%ster node members into an a%thoriMed e$sfile that is identical on each node. ?ote that the SS8 files m%st be readable onl$ b$root and b$ the software installation %ser :oracle, crs, asm;, as SS8 i"nores a &riatee$ file if it is accessible b$ others. !hen this is done, then start the SS8 a"ent toload e$s into memor$. In the e)am&les that follow, the +S( e$ is %sed.o% m%st confi"%re SS8 se&aratel$ for each racle software installation owner that$o% intend to %se for installation.

    #o confi"%re SS8, com&lete the followin"3

    Create 8&&+; and Create R&A 7es On Each $ode

    om&lete the followin" ste&s on each node31. Lo" in as the software owner :in this e)am&le, the crs %ser;.2. #o ens%re that $o% are lo""ed in as the racle %ser, and that the %ser ID

    matches the e)&ected %ser ID $o% hae assi"ned to the racle %ser, enter thecommands id and id oracle. Kns%re that racle %ser "ro%& and %ser and theterminal window &rocess "ro%& and %ser IDs are identical. or e)am&le3

    '. H id*. %id502:crs; "id501:oinstall; "ro%&s501:oinstall;,502:crs;

    5. H id crs=. %id502:crs; "id501:oinstall; "ro%&s501:oinstall;,502:crs;

    en !ri"ht 10bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    11/25

    27/01/2015

    7. If necessar$, create the .ssh director$ in the crs %serPs home director$, and set&ermissions on it to ens%re that onl$ the oracle %ser has read and write&ermissions3

    4. H mdir T/.ssh9. H chmod 700 T/.ssh10. Knter the followin" command311. H /%sr/bin/sshEe$"en Et rsa12. Im&ortant 3 ssh %serWs home director$ &ermisson m%st be 750.

    (t the &rom&ts3o (cce&t the defa%lt location for the e$ file :&ress Enter;.

    o Knter and confirm a &ass &hrase %ni%e for this installation %ser.

    #his command writes the +S( &%blic e$ to the T/.ssh/idrsa.&%b file and the &riatee$ to the T/.ssh/idrsa file.

    ?eer distrib%te the &riate e$ to an$one not a%thoriMed to &erform racle software

    installations.1'. +e&eat ste&s 1 thro%"h * on each node that $o% intend to mae a member of

    the cl%ster.

    1'.+e&eat the ste&s for asm ] oracle %ser.

    'dd 'll +eys to a Common authori,ed-!eys .ile

    om&lete the followin" ste&s31. n the local node, chan"e directories to the .ssh director$ in the racle

    l%sterware ownerPs home director$ :t$&icall$, either crs or oracle;.

    #hen, add the +S( e$ to the a%thoriMede$s file %sin" the followin" commands3H cat idrsa.&%b QQ a%thoriMede$sH lsIn the .ssh director$, $o% sho%ld see the idrsa.&%b e$s that $o% hae created, and thefile a%thoriMede$s.

    2. n the local node, %se S :Sec%re o&$; or S# :Sec%re #; to co&$the a%thoriMede$s file to the oracle %ser .ssh director$ on a remote node. #hefollowin" e)am&le is with S, on a node called node2, with the raclel%sterware owner crs, where the crs %ser &ath is /home/crs3

    '. [crs

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    12/25

    27/01/2015

    *. sin" SS8, lo" in to the node where $o% co&ied the a%thoriMede$s file,%sin" the &ass &hrase $o% created. #hen chan"e to the .ssh director$, and %sin"the cat command, add the +S( e$s for the second node tothe a%thoriMede$s file3

    5. [crs

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    13/25

    27/01/2015

    '. [crs

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    14/25

    27/01/2015

    Identit$ added3 /home/crs/.ssh/idrsa :/home/crs/.ssh/idrsa;#hese commands start the sshEa"ent on the node, and load the +S( e$s into memor$so that $o% are not &rom&ted to %se &ass &hrases when iss%in" SS8 commandsIf $o% hae confi"%red SS8 correctl$, then $o% can now %se the ssh or sc& commands

    witho%t bein" &rom&ted for a &assword or a &ass &hrase. or e)am&le3[crs

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    15/25

    27/01/2015

    e)&ort +(LK(SK/o&t/a&&/crs/&rod%cte)&ort (I-#8+K(DSKS 6:S for s$stemEwide thread sco&e;e)&ort #KC/tm&//tm&e)&ort#C/tm&

    e)&ort #CDI+/tm&%mas 022if [ Et 0 \^ thenstt$ intr Jfi

    Gie the inentor$ location as /o&t/a&&/crs/&rod%ct/orainentor$

    #his orainentor$ director$ will be created b$ o%i

    1 #tmp#net#oracle#23#44G#cluster-44gr4#clusterware#runclu)fy5sh comp ssa 6n all6)erbose

    e)&ort +S8CK/crs/11.1.0e)&ort +(LK+S8CKH+S8CKe)&ort +(LK8CKH+(+S8CKe)&ort LDLI+(+(#8H+S8CK/lib3H+S8CK/lib'2e)&ort LI(#8HLDLI+(+(#8e)&ort (#8H+S8CK/bin3H(#8

    ?otes S&ecif$ 8ome DetailsS&ecif$ an +(LK8CK name and destination director$ for the +S installation.#he destination director$ sho%ld not be within the H+(LK(SK s%btree.

    ?e)t we will install the racle l%sterware la$er.

    racle l%sterware is an essential com&onent of the racle +( databaseinfrastr%ct%re.racle l%sterware does not re%ire an$ other cl%sterin" software.Oracle Clusterware will %e installed in 6crs622828< =>CR&,+O#E;

    >ORA,CR&,+O#E? on each node8

    'ut we have used

    6opt6app6crs6product622828

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    16/25

    27/01/2015

    ail%re to obsere this r%le co%ld well mean that other &eo&le when remoin" an (SCor racle home willdestro$ $o%r cl%sterware installation.

    Vi&ca called ma%lall$ and S b%" iss%e soled b$ oracle b$ chan"in" the rac"i&scri&t

    Codif$ the scri&t rac"i& in R+SE8CKQ/bin to &ic %& the al%e of the =thcol%mn :H=; instead of the 5th col%mn :H5; E re&lace H5 with H= l%sterware scri&trac"i& lines 62=' and 6275^

    from

    1_H?K#S#(# En EI HI Z H(!F ` if :/JHI/; `&rint H5^ e)it_

    and2_H?K#S#(# En EI HI Z H(!F ` if :/JHI/; `&rint H5^ e)it_

    to1_H?K#S#(# En EI HI Z H(!F ` if :/JHI/; `&rint H=^ e)it_and

    2_H?K#S#(# En EI HI Z H(!F ` if :/JHI/; `&rint H=^ e)it_

    Install &atch 11.1.0.7

    /tm&/net/oracle/5L/11G/cl%ster11"r1/cl%sterware/r%ncl%f$ sta"e E&ost crsinst Ensin%tn02

    H e)ec /%sr/bin/sshEa"ent HS8KLLH /%sr/bin/sshEadd

    1828 CVU chec( %efore creating A instance

    Verif$ the cl%ster is confi"%red correctl$ for an instance creation,as asm %ser/tm&/net/oracle/5L/11G/cl%ster11"r1/cl%sterware/r%ncl%f$ sta"e E&re dbinst Ennode1,node2 Er 11"+1 Eerbose

    Show V "pre d%inst o%t&%t 8ide V o%t&%t

    18 Oracle A +ome &oftware Install

    In this cha&ter we are "oin" to install the asm software :onl$;. reatin" the asmstora"e is in the ne)t cha&ter.#he software will be installed in a director$ se&arate from an$ crs or database home,

    &referabl$ in the H+(LK(SK tree and not as a su%tree in the data%ase home8

    reate "ro%& (sm for asm %ser

    reate a asm %ser E &rimar$ "ro%& is oinstall and secondar$ "ro%& is asm ] asmdba

    en !ri"ht 1=bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    17/25

    27/01/2015

    /o&t/a&&/oracle ownershi& has been chan"ed to oracle3oinstall

    reate a asm ] oracle base director$ as /o&t/a&&/oracle/&rod%ct as oracle %ser

    han"e the &rod%ct director$ &ermission 777

    (sm home is /o&t/a&&/oracle/&rod%ct/11.1.0/asm

    racle base is /o&t/a&&/oracle/&rod%ct

    In the asm ] rbdms director$

    /oracle/asm/oracle/rdbms

    Lo"in as the asm owner :asm in o%r case;. In ncStart the ncserer and lo"in to "%i.

    Set%& and e)&ort $o%r DISL(, #C and #KC ariables !ith /tm& or otherdestination hain" eno%"hfree s&ace, abo%t 500Cb on each node.lease note the act%al dis&la$ ma$ be different. or instance if $o% are r%nnin" fromthe console this willt$&icall$ be 30.0 #he dis&la$ settin" and the )host settin" can be checed b$ t$&in"P)clocP if $o% see thecloc then $o% are "ood to "o.`node13asm e)&ort DISL(node131`node13asm e)&ort #C/tm&`node13asm #KC/tm&`node13asm e)&ort #CDI+/tm&

    /tm&/net/oracle/5L/11G/rdbms11"r1/11"+12of2/database

    all .r%nintsaller

    nce software installation finshed. #hen chan"e the asm &rofile as below.

    i H8CK/.&rofile file in the asm %sers home director$.(dd the entries in bold.(#8/%sr/bin3/etc3/%sr/sbin3/%sr/%cb3H8CK/bin3/%sr/bin/-113/sbin3.e)&ort (#8if [ Es HC(IL \ 6 #his is at Shell start%&. In normal

    then echo HC(ILCSG 6 o&eration, the Shell checsfi 6 &eriodicall$.

    en !ri"ht 17bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    18/25

    27/01/2015

    K?VH8CK/.shrce)&ort K?V6#he followin" line is added b$ License se Cana"ement installatione)&ort (#8H(#83/%sr/o&t/ifor/ls/os/ai)/bin

    e)&ort (#8H(#83/%sr/>aa1*/bine)&ort C(?(#8HC(?(#83/%sr/local/mane)&ort +(LK(SK/o&t/a&&/oraclee)&ort (I-#8+K(DSKSe)&ort #KC/tm&e)&ort #C/tm&e)&ort #CDI+/tm&%mas 022e)&ort +S8CK/o&t/a&&/crs/&rod%ct/11.1.0/crs6note for f%t%re installation limit the home to 11.1.0e)&ort +(LK+S8CKH+S8CK

    e)&ort +(LK8CKH+(LK(SK/asm/&rod%ct/11.1.0/asme)&ort LDLI+(+(#8H+(LK8CK/lib3H+S8CK/lib3H+(LK8CK/lib'23H+S8CK/e)&ort LI(#8HLDLI+(+(#8e)&ort (#8H+(LK8CK/bin3H+S8CK/bin3H(#8e)&ort #?S(DCI?H+(LK8CK/networ/admine)&ort +(LKSIDY(SC1

    similarl$ in other nodes.note chan"e the sid accordinl$.

    reload &rofile

    @8 Oracle RAC Data%ase istener Creation

    #he racle networ listeners traditionall$ r%n from the (SC home. 8ere we are"oin" to create the listeners%sin" netca from the (SC home.@828 Create $ode specific networ( listeners

    As asm user8

    efore $o% start the racle niersal Installer $o% need to e)ec%te the followin"command in the same session as in which $o% will start the I.

    n the s$stem where $o% want to install the software lo" in as the %ser oracle.

    Knter the followin" commands3

    H e)ec /%sr/bin/sshEa"ent HS8KLLH /%sr/bin/sshEadd

    (fter the &rom&t $o% need to add the &ass&hrase for each e$ $o% "enerated.

    (s we hae not "ien &ass&hrase d%rin" ssh "eneration $o% need not enter an$ thin".

    %st &ress enter $o% will "et the messa"e that identit$ added.

    en !ri"ht 14bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    19/25

    27/01/2015

    ?ow $o% m%st be able to create a ssh connection witho%t bein" &rom&ted for a&assword#est this before $o% start the I.

    Hssh nodename date

    If $o% donPt "et &rom&ted for a &assword $o%r ssh is worin" correctl$.

    cd H+(LK8CK/bin @ asmWs oracle home./netca a

    ?ote3 hec if both the nodes listeners are %& and r%nnin" fine or not. If not then add

    listener which is not r%nnin" b$ %sin" srctl and start the same.

    all dbca from (SCWs oraclehome for (SC Instance installation.(s asm %sercd H+(LK8CK/bin @ asmWs oracle home../dbca

    racle 10G software installation for Ds

    `node13root/ 6 chown rdbms3oinstall /o&t/a&&/oracle/rdbms`node13root/ 6 chmod ==5 /oracle/rdbms`node13root/`node23root/ 6 chown oracle3oinstall /o&t/a&&/oracle/rdbms`node23root/ 6 chmod 7=5 /o&t/a&&/oracle/rdbms`node23root/ 6Set%& and e)&ort $o%r DISL(, #C and #KC ariables!ith /tm& or other destination hain" eno%"h free s&ace, abo%t 500Cb on each node.

    In the oracle &rofile &%t the below entr$.

    H i .&rofilee)&ort #C/tm&e)&ort #CDI+/tm&%mas 022if [ Et 0 \^ thenstt$ intr Jfi

    %mas 022

    en !ri"ht 19bwri"ht

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    20/25

    27/01/2015

    e)&ort +S8CK/o&t/a&&/crs/&rod%ct/11.1.0/crs

    6note for f%t%re installation limit the home to 11.1.0

    e)&ort +(LK+S8CKH+S8CK

    6e)&ort +(LK8CKH+(LK(SK/11.1.0/asm

    e)&ort (#8H+S8CK/bin3H(#8

    6e)&ort #?S(DCI?/o&t/a&&/oracle/&rod%ct/11.1.0/asm/networ/admin

    (s a oracle %ser "ie crsstat see asm,listener are r%nnin"

    ./r%ncl%f$.sh sta"e E&re dbinst En sin%tn02 Er 10"+2 Eerbose

    +%n /tm&/net/oracle/5L/10G/e)tra/&==1'5501020'(I-=*E5L/root&re.sh

    /tm&/net/oracle/5L/10G/rmdb10"r2/Dis./r%ninstaller

    hoose enter&rise edition

    In the s&ecif$ home details

    B808 Completed creation of A Instance and add of the DA*A,D

    dis(group

    on"rat%lations $o% hae installed (SC, ?etwor listeners and created an (SCdis"ro%&.

    2

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    21/25

    27/01/2015

    !e are nearl$ read$ to %se the Database onfi"%ration (ssistant :dbca; to create theracle +( instances onall the nodes.C(?D(#+3 han"e &ermissions to allow the rdbms %ser to write to directories

    owned b$ the asm %ser,from node1 e)ec%te36 chmod E+ "Yw /oracle/asm/11.1.0/networ6 chmod E+ "Yw /oracle/cf"toollo"s6 chmod E+ "Yw /oracle/admin6 chmod E+ "Yw /oracle/dia"6 rsh node2 chmod E+ "Yw /oracle/asm/11.1.0/networ6 rsh node2 chmod E+ "Yw /oracle/cf"toollo"s6 rsh node2 chmod E+ "Yw /oracle/admin6 rsh node2 chmod E+ "Yw /oracle/dia"

    or o%r case %se the below.

    H chmod E+ "Yw /o&t/oracle/&rod%ct/11.1.0/asm/networH ssh sin%n02 chmod E+ "Yw /o&t/oracle/&rod%ct/11.1.0/asm/networ

    chmod E+ "Yw /o&t/oracle/&rod%ct/dia"ssh sin%n02 chmod E+ "Yw /o&t/oracle/&rod%ct/dia"

    chmod E+ "Yw /o&t/oracle/&rod%ct/admin

    ssh sin%n02 chmod E+ "Yw /o&t/oracle/&rod%ct/admin?ote3 If $o% e)ec%ted the V E&re dbinst command d%rin" the (SC instanceinstallation, $o% donot hae the e)ec%te the command a"ain.

    2

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    22/25

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    23/25

    27/01/2015

    6#he followin" line is added b$ License se Cana"ement installatione)&ort (#8H(#83/%sr/o&t/ifor/ls/os/ai)/bine)&ort (#8H(#83/%sr/>aa1*/bine)&ort C(?(#8HC(?(#83/%sr/local/man

    e)&ort +(LK(SK/o&t/oracle/&rod%cte)&ort (I-#8+K(DSKSe)&ort #KC/tm&e)&ort #C/tm&e)&ort #CDI+/tm&%mas 022e)&ort +S8CK/o&t/oracle/crs/&rod%ct/11.1.0e)&ort +(+S8CKH+S8CKe)&ort (SC8CKH+(LK(SK/11.1.0/asme)&ort +((SC8CKH(SC8CKe)&ort +(LK8CKH+(LK(SK/10.2/db1

    e)&ort LDLI+(+(#8H+(LK8CK/lib3H+S8CK/lib3H+(LK8CK/lib'23H+S8CK/e)&ort LI(#8HLDLI+(+(#8e)&ort (#8H+(LK8CK/bin3H+S8CK/bin3H(#8e)&ort #?S(DCI?H(SC8CK/networ/admin

    Database Serers onnectiit$ Details3

    &$o D' $ame &ervice

    $ame

    &erver $ame I! address !ort $um%er

    2 SI?01 SI?01 sin%n01Ei& 10.2*0.4.210 15210 SI?02 SI?02 sin%n02Ei& 10.2*0.4.211 1521

    +ow to Connect

    a; sin" #?S entr$3

    -or to connect &I$O

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    24/25

    27/01/2015

    :+K#+IKS 140; :DKL( 5; ; ;

    ;-or example

    sl&l%s DDC#I!?K+/))))dbc3oracle3thin3

  • 8/9/2019 AIX Oracle RAC Requirements v0 5

    25/25

    27/01/2015

    %rl>dbc3oracle3thin3