oracle10g rac

Upload: ravi-shetty

Post on 04-Jun-2018

252 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Oracle10g RAC

    1/24

    Oracle 10g Real Application Cluster

    Topic : Real Application ClustersVersion : Oracle 10g Release 2Platform : RHEL AS !p"ate

    CONTENTS

    Oracle 10g RAC1. REQUIREMENTS2. OPERATING SYSTEM INSTALLATION3. CONFIGURING OPERATING SYSTEM4. CONFIGURING USER an S!ARE" "IS#$. CONFIGURING OCFS2 %Oracle Cl&'(ere F)le S*'(e+,-. INSTALL AN" CONFIGURE ORACLE CLUSTERARE/. INSTALL ORACLE "ATAASE SOFTARE. CONFIGURING "IS#S FOR ASM

    . CREATE ORACLE "ATAASE USING OCFS2 AN" ORACLE ASM10.COMMAN" LINE UTILITIES11.!O TO C!ANGE RAC " NOARC!IELOG TO ARC!IELOG MO"E

    12. UPGRA"ING CLUSTER ARE AN" ORACLE "ATAASE 13. CLUSTERARE AN" ASM A"MINISTRATION

    1.REQUIREMENTS

    !ar5are6

    77777777Ser8er' 9N:e' 6 M)n 2 n:e'Pr:ce'':r 6 PI an a;:8eRa+ 6 M)n 1G!ar ")'< 6 1$ G =:r O>era()ng S*'(e+ an 10 G =:r Oracle Cl&'(er 5are

    An Oracle "a(a;a'e S:=(5areNe(5:r< Car' 6 2 NIC car' )n eac? n:e %1 =:r P&;l)c IP@ 1 =:r Pr)8a(e IP,S?are ")'< 6 ISCSI S?are S(:rage

    S:=(5are677777777

    O>era()ng S*'(e+ 6 Re!a( L)n& AS4 U>a(e 4Oracle Cl&'(er S:=(5are 6 Oracle 10g Relea'e 2 Cl&'(er5areOracle "a(a;a'e S:=(5are 6 Oracle 10g Relea'e 2 En(er>r)'e E)():n =:r L)n&OCFS2 r>+ 6 ":5n l:a OCFS2 RPM a' >er *:&r :>era()ng '*'(e+

    #ernel &'e ;el:5 l)n699:''.:racle.c:+9>r:Bec('9:c='9ASM RPM 6 ":5n L:a ASM RPM a' >er *:&r :>era()ng '*'(e+

    #ernel

    ?((>699:''.:racle.c:+9>r:Bec('9a'+9

    http://oss.oracle.com/projects/ocfs/http://oss.oracle.com/projects/asm/http://oss.oracle.com/projects/ocfs/http://oss.oracle.com/projects/asm/
  • 8/13/2019 Oracle10g RAC

    2/24

    2.OPERATING SYSTEM INSTALLATION

    Par()():n' %'elec( +an&al )'< >ar()():n)ng,6

    9 10 G F)e S)e =:r r::(9;::( 200 M F)e S)e =:r ::( L:aer 9&'r G F)e S)e =:r 'elec(e >acac 9 8)r(&al +e+:r*9(+> 1G F)e S)e (e+>:rar* =)le' area98ar 2 G F)e S)e O9S l:g =)le'9:>( $00 M F)e S)e =:r :>():nal >ac for hostname

    !. Set"# t$e Hosts %&'e (a'' nodes)

    # vi /etc/hosts

    # Do not remove the following line, or various programs

    # that require network functionality will fail.

    127.0.0.1 localhost.localdomain localhost

    #PUBLIC IP192.168.10.1 rac1

    192.168.10.2 rac2

  • 8/13/2019 Oracle10g RAC

    3/24

    #PRI!" IP10.0.0.1 rac1$%riv10.0.0.2 rac2$%riv

    #IR"U!L IP192.9.200.226 rac1$vi%

    192.9.200.22& rac2$vi%

    Note: Ensure that the node names are notincluded for the loopback address in the

    /etc/hostsfile. If the machine name is listed in the in the loopback address entry as

    below:

    12&.0.0.1 rac1'oca'host.'oca'(omain 'oca'host

    it will need to be removed as shown below:

    12&.0.0.1 'oca'host.'oca'(omain 'oca'host

    If the RAC node name is listed for the loopback address, you will receive the following error

    during the RAC installation:

    ORA-00603: ORACLE server session terminated by fatal error

    Ping each other node to check the connectivity:

    )rac1*# %ing rac2)rac1*# %ing rac2$%riv

    )rac2*# %ing rac1)rac2*# %ing rac1$%riv

    Note*)r(&al IP 5)ll n:( >)ng &n()l (?e cl&'(er5are )' )n'(alle

    c. Se(&> (?e ara+e(er' %all n:e',

    vi /etc/s+sct'.conf

    ,erne'.shmma- 2996&29,erne'.shma'' 2686,erne'.shmmni 096,erne'.sem 20 2000 100 128fs.fi'e$ma- 66net.i%v.i%'oca'%ortrange 102 6000net.core.rmem(efa3't108&6net.core.rmemma-108&6net.core.4mem(efa3't2621net.core.4memma-2621

    L:a (?e '*'c(l 'e(()ng' %5)(?:&( re;::(, :n all n:e'

    )root5rac1 *# s+sct' $%

  • 8/13/2019 Oracle10g RAC

    4/24

    Se( (?e ?:'(na+e an :+a)n na+e %:n all n:e',6E)( ;el:5 =)le

    vi /etc/s+sconfig/net4or,

    7ostnamerac1

    d. C$e+, F&e-a'' &s d&sa!'ed

    )root5rac1 *# /etc/rc.(/init.(/i%ta'es stat3sF)re5all )' '(:>>e.

    e. Disable SE Linux (if enabled) on all nodes:

    )root5rac1 *# /3sr/in/s+stem$config$sec3rit+'eve'

    %. Ena!'e/&sa!'e se0&+es (!ot$ nodes)

    # ch,config sen(mai' off $$: turn off the sendmail configuration# ch,config c3%s off $$: turn off the printer service (optional)# ch,config -inet( on --> for telnet service# ch,config te'net on --> enable telnet# ch,config vsft%( on --> for ftp service# service -inet( restart --> restart the services# service vsft%( restart

    .CONFIGURING USER and SHARE/ /IS

    a. Ceate Oa+'e "se and /&e+to&es

    Y:& 5)ll ;e &')ng OCFS2 (: '(:re (?e =)le' reJ&)re (: ;e '?are =:r (?e Oracle Cl&'(er5are':=(5are. ?en &')ng OCFS2@ (?e UI" := (?e UNIK &'er oraclean GI" := (?e UNIK

    gr:&> dba'?:&l ;e )en()cal :n all +ac?)ne' )n (?e cl&'(er. I= e)(?er (?e UI" :r GI" are

    )==eren(@ (?e =)le' :n (?e OCFS =)le '*'(e+ +a* '?:5 &> a' &n:5ne :r +a* e8en ;e:5ne ;* a )==eren( &'er.

    Ee+"te %o''o-&n4 +ommands &n a'' node*

    # gro3%a(( $g 01 oinsta''# gro3%a(( $g 02 (a# gro3%a(( $g 0 o%er# 3sera(( $m $3 01 $g oinsta'' $; (a $( /home/orac'e $s/in/ash $c

  • 8/13/2019 Oracle10g RAC

    5/24

    Ceate mo"nt #o&nt %o +'"ste %&'es &n a'' nodes*# m,(ir D% /ocr $$: mo3nt %oint for =CE>2# m,(ir $% /vote $$: mo3nt %oint for =CE>2# m,(ir $% /ora(ata $$: mo3nt %oint for =CE>2

    !. Ceate #at&t&ons &n t$e s$aed d&s, 5 FROM ONE NO/E ONLY6

    N:(e6 %I= ?a8e an* :l >ar()():n' )' (?ere nee (: ele(e :l >ar()():n' &')ng =)'en =)le e'cr)>(:r' n:=)le -$$3- %?ar l)+)(,

    Ma)+&+ n&+;er := >r:ce''e' a8a)la;le (: a ')ngle &'er n>r:c 1-34 %?ar l)+)(,

    Ee+"te t$e %o''o-&n4 %om a'' nodes*

    )root5rac1 *# cat :: /etc/sec3rit+/'imits.conf FF=Eorac'e soft n%roc 20&orac'e har( n%roc 168orac'e soft nofi'e 102orac'e har( nofi'e 66=E

    cat :: /etc/%am.(/'ogin FF=Esession reG3ire( /'i/sec3rit+/%am'imits.so=E

    F:r (?e :&rne@ a'?@ :r #:rn '?ell@ a (?e =:ll:5)ng l)ne' (: (?e /etc/%rofi'e=)le ;*

    r&nn)ng (?e =:ll:5)ng c:++an6

    cat :: /etc/%rofi'e FF=Eif ) HU>R an):n C"@ (?eOracle Un)8er'al In'(aller %OUI, =)r'( )n'(all' (?e ':=(5are (: (?e l:cal n:e r&nn)ng (?e)n'(aller %).e. l)n&1,. T?e ':=(5are )' (?en c:>)e re+:(el* (: all := (?e re+a)n)ng n:e' )n(?e cl&'(er %).e. l)n&2,. "&r)ng (?e re+:(e c:>* >r:ce''@ (?e OUI 5)ll eec&(e (?e UNIKtar c:++an :n eac? := (?e re+:(e n:e' (: e(rac( (?e =)le' (?a( 5ere arc?)8e an

    c:>)e :8er. I= (?e a(e an ()+e :n (?e n:e >er=:r+)ng (?e )n'(all )' grea(er (?an (?a( := (?en:e )( )' c:>*)ng (:@ (?e OUI 5)ll (?r:5 an err:r =r:+ (?e tar c:++an )n)ca()ng )( )'

    a((e+>()ng (: e(rac( =)le' '(a+>e 5)(? a ()+e )n (?e =&(&re.

  • 8/13/2019 Oracle10g RAC

    8/24

    En'&re (?a( (?e a(e an ()+e := (?e all n:e' are 'a+e %&nle'' *:& are &')ng Ne(5:r< T)+e,.T: 'e( (?e a(e an ()+e n:5@ *:& can eec&(e (?e =:ll:5)ng c:++an'6

    rac1# date -s "9/13/2010 23:00:00"

    rac2# date -s "9/13/2010 23:00:30"

    --> node 2 is greater than node 1 for safetye. Con%&4"&n4 9$an4+$e+,:t&me;

    S(ar()ng 5)(? Oracle) Relea'e 2 %.2.0.2,@ (?e 5a(c?:g ae+:n ?a' ;een e>reca(e ;* aL)n& e :nl* ;* Oracle@ ?:5e8er@ (?)' +:&le )' n:5)ncl&e 5)(? Re !a( L)n& AS '(ar()ng 5)(?

  • 8/13/2019 Oracle10g RAC

    9/24

    To test t$e $an4+$e+,:t&me mod"'e man"a''7 (!e%oe e!oot)*

    )root5rac1 *# mo(%roe hangchec,$timer)root5rac1 *# gre% 7angchec, /var/'og/messages K tai' $2

    Ma* 2 1164063$ rac1 lan (: &'e (: )n'(all Oracle Cl&'(er5are 10gan (?e Oracle "a(a;a'e 10g':=(5are. T?e )n'(alla():n an

    c:n=)g&ra():n (a'er=:r+e :n ;:(? Oracle RAC n:e'. A'c:n=)g&re earl)er )n (?)' ar()cle@ (?e ':=(5are :5ner =:r Oracle Cl&'(er5are 10gan (?e Oracle "a(a;a'e 10g':=(5are 5)ll ;e orac'e.

    T?e g:al ?ere )' (: 'e(&> user e&uivalence=:r (?e orac'eUNIK &'er acc:&n(. U'er eJ&)8alence ena;le' (?e

    orac'eUNIK &'er acc:&n( (: acce'' all :(?er n:e' )n (?e cl&'(er %r&nn)ng c:++an' an c:>*)ng =)le',

    5)(?:&( (?e nee =:r a >a''5:r. Oracle ae '&>>:r( )n 10gRelea'e 1 =:r &')ng (?e SS! (::l '&)(e =:r 'e(()ng&> &'er eJ&)8alence. e=:re Oracle "a(a;a'e 10g@ &'er eJ&)8alence ?a (: ;e c:n=)g&re &')ng re+:(e '?ell%RS!,.

    N:(e6 T?e =)r'( '(e> )n c:n=)g&r)ng SS! )' (: crea(e an RSA >&;l)c9>r)8a(e a)r :n ;:(? Oracle RAC n:e')n (?e cl&'(er. T?e c:++an (: : (?)' 5)ll crea(e a >&;l)c an >r)8a(e )e )n(: an authori'ed key file5?)c? )' (?en)'(r);&(e (: ;:(? Oracle RAC n:e' )n (?e cl&'(er.

    Perform all the below steps (1 to 3) in the all the nodes

    1. L:g :n a' (?e orac'eUNIK &'er acc:&n(.

    # s3 $ orac'e

    2. I= nece''ar*@ crea(e (?e.ssh

    )rec(:r* )n (?eorac'e

    &'erH' ?:+e )rec(:r* an 'e( (?e c:rrec(

    >er+)''):n' (: en'&re (?a( :nl* (?e orac'e&'er ?a' rea an 5r)(e >er+)''):n'6

    m,(ir $% /.ssh chmo( &00 /.ssh

    3. En(er (?e =:ll:5)ng c:++an (: genera(e an RSA a)r %>&;l)c an >r)8a(e r:(:c:l6

    /3sr/in/ssh$,e+gen $t rsa

    A( (?e >r:+>('6

    Acce>( (?e e=a&l( l:ca():n =:r (?e

  • 8/13/2019 Oracle10g RAC

    10/24

    Perform the following steps from the first node only.

    F)r'(@ e(er+)ne )= an a&(?:r)e &;l)c re8):&' 'ec():n.

    /. In (?)' '(e>@ &'e SCP %Sec&re C:>*, :r SFTP %Sec&re FTP, (: c:>* (?e c:n(en( := (?e/.ssh/i(rsa.%3>&;l)c le )' ;e)ng r&n =r:+ 'rac1an a''&+e' a (5:n:e cl&'(er@ 5)(? n:e' 'rac1

    an 'rac26

    ssh rac1 cat /.ssh/i(rsa.%3 :: /.ssh/a3thorie(,e+s

    "he a3thenticit+ of host O'in3-1 ?192.168.10.1@O canOt e esta'ishe(.R>! ,e+ finger%rint is 60f1aca69(86(88&6a(e&c9.!re +o3 s3re +o3 4ant to contin3e connecting ?+es/no@ &es

    Qarning Permanent'+ a((e( O'in3-1192.168.10.1O ?R>!@ to the ist of,no4n hosts.orac'e5'in3-1Os %ass4or( '''''

    ssh rac2 cat /.ssh/i(rsa.%3 :: /.ssh/a3thorie(,e+s

    "he a3thenticit+ of host O'in3-2 ?192.168.10.2@O canOt e esta'ishe(.R>! ,e+ finger%rint is e998a&(96102a280&&1&02(00&.!re +o3 s3re +o3 4ant to contin3e connecting ?+es/no@ &esQarning Permanent'+ a((e( O'in3-2192.168.10.2O ?R>!@ to the ist of,no4n hosts.orac'e5'in3-2Os %ass4or( '''''

    sc% /.ssh/a3thorie(,e+s 'in3-2.ssh/a3thorie(,e+s

    orac'e5'in3-2Os %ass4or( '''''

    C?ange (?e >er+)''):n := (?e a&(?:r)e

  • 8/13/2019 Oracle10g RAC

    11/24

    N:5 ''? >r:+>( )' )n( a'a''5:r.

  • 8/13/2019 Oracle10g RAC

    12/24

    *etc*init+"*o2c, status --> check status*etc*init+"*o2c, loa" --> Load all ocfs modules*etc*init+"*o2c, online ocfs2 --> Online the cluster we created: ocfs*etc*init+"*o2c, offline ocfs2 --> Offline the cluster we created: ocfs*etc*init+"*o2c, unloa" --> Unload all ocfs modules

    Afterter installing ocfs rpms check the ocfs file system status

    *etc*init+"*o2c, status

    To(3'e

  • 8/13/2019 Oracle10g RAC

    13/24

  • 8/13/2019 Oracle10g RAC

    14/24

  • 8/13/2019 Oracle10g RAC

    15/24

    [oracle10g@rac1 cluvfy]$ ./runcluvfy.sh comp ssa -n rac1,rac2 -verbose

    Verify the prerequisites for CRS installation (only ONE node):

    [oracle10g@rac1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose

    If all the above verifications complete successfully, then you can proceed with the CRS

    installation.

    c. Invoke the Oracle Universal Installer (only ONE node)

    [oracle10g@rac1 clusterware]$ ./r3nInsta''er

    1. Click Next

    2. Choose path for OraInventory /home/oracle/oraInventory, Choose Oracle group

    as oinstall3. Home Name: OraCrs10g_home

    Path: /crs/app/product/10.2.0/crs

    4. Verify requirements and click next

    5. Specify cluster configuration details:

    Cluster Name: crs

    Cluster nodes: rac1 rac1-priv rac1-vip

    rac2 rac2-priv rac2-vip

    6. Verify the network interface usage:

    eth0 192.168.10.0 Public

    eth1 10.10.0.0 Private7. Specify Oracle Cluster Registry Location:(Need to select external redundancy

    only)

    Location: /ocr/ocr1.dbf

    8. Specify Voting Disk Location: (Need to select external redundancy only)

    Location: /vote/vote1.dbf

    9. Click Install to start installation

    10. Execute Configuration Scripts:

    Execute orainstRoot.sh - on all nodes as root user only

    [root@rac1 ~]# /home/orac'e/oraInventor+/orainstRoot.sh

    Changing permissions of /home/oracle/oraInventory to 770.

    Changing groupname of /home/oracle/oraInventory to oinstall

    The execution of the script is complete

    [ Do not execute simultaneously on all nodes]

    [root@rac1 ~]# /crs/a%%/orac'e/crs/root.sh

  • 8/13/2019 Oracle10g RAC

    16/24

    While executing root.sh in any of the remote node, if you get a message eth0 is not

    public or any

    similar error, you need to execute the VIPCA (Virtual IP Configuration Assistant)

    manually.

    Running vipca manually:

    [root@rac2~]# sh /crs/a%%/orac'e/crs/in/vi%caEnter the proper IP address of your VIP and its alias names, then click Finish

    to complete the configuration.

    You can verify the pinging of Virtual IP address now:

    [oracle@rac2 ~]$ %ing rac1$vi%

    [oracle@rac1 ~]$ %ing rac2$vi% Return to the Execute Configuration Scripts Screen and Click OK

    11. Once the configurations are run successfully, click Exit to exit the installation

    d. Post install verification (all nodes)

    List the cluster nodes:

    [oracle@rac1 ~]$ /crs/a%%/%ro(3ct/crs/in/o'sno(es $nrac1 1

    rac2 2

    Check oracle cluster auto-startup scripts:

    [oracle@rac1 ~]$ 's $' /etc/init.(/init.M

    -r-xr-xr-x 1 root root 1951 May 29 21:30 /etc/init.d/init.crs

    -r-xr-xr-x 1 root root 4716 May 29 21:30 /etc/init.d/init.crsd

    -r-xr-xr-x 1 root root 35396 May 29 21:30 /etc/init.d/init.cssd

    -r-xr-xr-x 1 root root 3192 May 29 21:30 /etc/init.d/init.evmd

    Check cluster ready services:

    [oracle@rac1 ~]$ %s $ef K gre% crs

    Check cluster synchronization services:

    [oracle@rac1 ~]$ %s $ef K gre% css

    Check the pinging of Virtual IP:

    [oracle@rac1 ~]$ %ing rac1$vi%

    [oracle@rac2 ~]$ %ing rac2$vi%

  • 8/13/2019 Oracle10g RAC

    17/24

    . INSTALL ORACLE /ATA=ASE SOFT@ARE

    -----------------------------------------------------------------------------------------------

    Verify the prerequisites for RDBMS installation (only ONE node):

    [oracle@rac1 cluvfy]$ c( c'3ster4are/c'3vf+

    [oracle@rac1 cluvfy]$ .9r&ncl&8=*.'? '(age >re ;)n'( n rac1@rac2 8er;:'e

    If all the above verifications complete successfully, then you can proceed with the CRS

    installation.

    a. Download and extract the Oracle 10g Release 2 Database Software (one NODE only)

    [oracle10g@rac1 10gRAC]$ unzip Ora10gSetup.zip

    [oracle10g@rac1 10gRAC]$ cd database/

    [oracle10g@rac1 database]$ ls

    doc install response runInstaller stage welcome.html

    b. Invoke the Oracle Universal Installer (one NODE only)

    [oracle10g@rac1 database]$ ./r3nInsta''er

    1. You can verify the cluster installation by clicking installed products. Click

    next

    2. Choose Enterprise Edition

    3. Choose Home details:

    Name: OraDb10g_home1

    Path: /oracle10g/oracle/product/10.2.0/db_14. Click Select all for installing in all clustered nodes

    5. Verify the requirements and click next

    6. Choose Install database Software only

    7. Click install to start installation

    8. Execute Configuration Scripts

    Execute root.sh in all nodes (one at a time) as root user only

    [root@rac1 ~]# /oracle/product/10.2.0/db_1/root.sh

    Once the scripts are run successfully, return to Execute Configuration

    Scripts window

    and click ok9. Click Exit to exit the installation

  • 8/13/2019 Oracle10g RAC

    18/24

    c. Set the Oracle Environment

    Edit the .bash_profile of oracle user (all nodes):

    e>:r( ORACLEASE79:racle9>r:&c(9e>:r( ORACLE!OME79:racle9>r:&c(910.2.09;1e>:r( ORACRS!OME79cr'9:racle9>r:&c(910.2.09cr'e>:r( ORACLESI"7:rcl1 --> change sid in other nodese>:r( PAT!7ORACLE!OME9;)n6ORACRS!OME9;)n6PAT!export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORA_CRS_HOME/lib

    Execute the .bash_profile (all nodes):

    [oracle@rac1 ~]$ . .bash_profile

    Verify the environment:

    [oracle@rac1 ~]$ echo $ORACLE_HOME/oracle/product/10.2.0/db_1

    B. CREATE ORACLE /ATA=ASE

    a. Con%&4"e L&stenes on a'' nodes (as &t -o"'d !e e"&ed %o +eat&n4 data!ase !7

    /=CA)

    U'e ne(ca an c:n=)g&re l)'(ener' an '(ar( (?e l)'(ener %=r:+ :nl* ONE n:e,

    D:racle10grac1 netca

    1. C?::'e RAC :>():n2. C?::'e L)'(ener c:n=)g&ra():n3. C?::'e A4. A (?e na+e@ >r:(:c:l@ an >:r( e(a)l'$. a)( =:r l)'(ener (: '(ar( )n all n:e'

    I= l)'(ener :e' n:( '(ar(@ *:& can +an&all* '(ar( (?e l)'(ener' ;* &')ng LSNRCTL

    c:++an l)ne &()l)(*-. Cl)c< =)n)'? (: e)(

    +. Ceate data!ase on OCFS2 %&'e s7stem "s&n4 /=CA .

    In0o,e /ata!ase Con%&4"at&on Ass&stant (/=CA) : %om on'7 ONE node

    D:racle10grac1 ;ca

    1. C?::'e RAC O>():n'2. C?::'e Crea(e a(a;a'e

  • 8/13/2019 Oracle10g RAC

    19/24

    3. Cl)c< Selec( All (: 'elec( all (?e n:e'4. C?::'e (?e (*>e := a(a;a'e General P&r>:'e$. S>ec)=* (?e Gl:;al "a(a;a'e Na+e a' :rcl-. C?::'e C:n=)g&re a(a;a'e 5)(? en(er>r)'e +anager/. S>ec)=* (?e >a''5:r' =:r &'er acc:&n('. C?::'e A&(:+a()c '(:rage +anage+en(. Selec( (?e OCFS2 =)le '*'(e+ %eg6 9:raa(a, 5?ere (?e a(a;a'e ?a' (: ;e crea(e

    10. C?::'e U'e Oracle Manage F)le' an e)( (?e OCFS =)le '*'(e+ %9:raa(a,na+e )= *:& 5an(

    11. C?::'e 5?e(?er (: &'e Fla'? Rec:8er* Area an Arc?)8)ng (: *:&r a(a;a'e12. Selec( 5?e(?er (: crea(e 'a+>le 'c?e+a'13. Re8)e5 (?e 'er8)ce'14. C?::'e A&(:+a()c :r c&'(:+ =:r +e+:r* +anage+en(. En'&re (?a( *:& ?a8e

    en:&g? '>ace =:r '?are >::l.1$. Re8)e5 (?e =)le'1-. Cl)c< F)n)'?1/. Re8)e5 (?e In)()al)a():n 8ar)a;le' an cl)c< O# (: '(ar( (?e a(a;a'e crea():n1. Plea'e 5a)( &n()l (?e a(a;a'e )' crea(e '&cce''=&ll*

    1. A '&++ar* )' '?:5n a( (?e en =:r *:&r )n=:r+a():n. Cl)c< e)(%*:& can n:(e (?e SI"@ SPF)le >a(? an OEM are'',

    20. T?e a(a;a'e ge(' re'(ar(e a=(er cl)c+'

    #r%m Divh orac'easmM.r%m

    Ed&t et+s7s+on%&4a-de0&+es to ma# t$e de0&+es -&t$ L&n" a- %&'es (a'' nodes)

    Dr::(rac1 vi /etc/s+sconfig/ra4(evices--> /dev/sdb. /dev/sdb) /dev/sdb% is not mapped as it used for $*+,)

    9e89ra59ra54 9e89'a$ --> sda is not mapped as it is e0tended partition

    Restat t$e a-de0&+es se0&+e (a'' nodes)*

    Dr::(rac1 service ra4(evices restart

    C$an4e #em&ss&ons to a- de0&+es so t$at t$e Oa+'e "se $as ead and -&te a++ess

    (a'' nodes)*

    Dr::(rac1 cho4n orac'e(a /(ev/ra4/ra4J chmo( 600 /(ev/ra4/ra4

  • 8/13/2019 Oracle10g RAC

    20/24

    Ed&t et++.'o+a' to add #em&ss&on deta&'s to !e ass&4ned at e0e7 stat"# (a'' nodes)*

    Dr::(rac1 vi /etc/rc.'oca'c?:5n :racle6;a 9e89ra59ra54V c?+: -00 9e89ra59ra54

    !. Con%&4"e ASM &nstan+e ("s&n4 /=CA)

    In0o,e /ata!ase Con%&4"at&on Ass&stant (/=CA) : %om on'7 ONE node

    D:raclerac1 ;ca

    1. C?::'e RAC O>():n'2. C?::'e C:n=)g&re A&(:+a()c S(:rage Manage+en(3. Cl)c< Selec( All (: 'elec( all (?e n:e' (: ;e c:n=)g&re4. S>ec)=* (?e >a''5:r =:r SYS &'er := ASM )n'(ance.

    C?::'e S>=)le =:r crea()ng >ara+e(er =)le. S>ec)=* (?e l:ca():n := OCFS2 =)le'*'(e+6

    9:raa(a9'>=)leASM.:ra$. Cl)c< Oa(?' reJ&)re@ '>ec)=* (?e =a)l gr:&> na+e@

    an cl)c< O#. Plea'e 5a)( &n()l (?e )'< gr:&> )' crea(e.. N:5@ *:& can 'ee (?e l)'( (?e )'' crea(e.10. S)+)larl*@ *:& can crea(e +an* )'' 5)(? (?e e)'()ng )'l&'SQLWPl&'6 Relea'e 10.2.0.1.0 Pr:&c():n :n e Ma* 30 064/6$/ 200/C:>*r)g?( %c, 12@ 200$@ Oracle. All r)g?(' re'er8e.En(er &'erna+e6 9a' '*';a

    C:nnec(e (:6Oracle "a(a;a'e 10g En(er>r)'e E)():n Relea'e 10.2.0.1.0 Pr:&c():n)(? (?e Par()():n)ng@ Real A>>l)ca():n Cl&'(er'@ OLAP an "a(a M)n)ng :>():n'

    SQL 'elec( na+e =r:+ 8a'+)'VSQL 'elec( gr:&>n&+;er@ )'n&+;er@ na+e@ '(a(e@ =ree+;@ :==l)ne)'

  • 8/13/2019 Oracle10g RAC

    21/24

    D:racle10grac1 (ca

    1. C?::'e RAC O>():n'2. C?::'e Crea(e a(a;a'e3. Cl)c< Selec( All (: 'elec( all (?e n:e'4. C?::'e (?e (*>e := a(a;a'e General P&r>:'e$. S>ec)=* (?e Gl:;al "a(a;a'e Na+e a' :rcl-. C?::'e C:n=)g&re a(a;a'e 5)(? en(er>r)'e +anager/. S>ec)=* (?e >a''5:r' =:r &'er acc:&n('. C?::'e A&(:+a()c '(:rage +anage+en(. Selec( (?e ")'< gr:&>' 5?ere (?e a(a;a'e ?a' (: ;e crea(e10. C?::'e U'e Oracle Manage F)le' an e)( (?e )' na+e )= *:& 5an(11. C?::'e 5?e(?er (: &'e Fla'? Rec:8er* Area an Arc?)8)ng (: *:&r a(a;a'e12. Selec( 5?e(?er (: crea(e 'a+>le 'c?e+a'13. Re8)e5 (?e 'er8)ce'14. C?::'e A&(:+a()c :r c&'(:+ =:r +e+:r* +anage+en(. En'&re (?a( *:& ?a8e

    en:&g? '>ace =:r '?are >::l.

    1$. Re8)e5 (?e =)le'1-. Cl)c< F)n)'?1/. Re8)e5 (?e In)()al)a():n 8ar)a;le' an cl)c< O# (: '(ar( (?e a(a;a'e crea():n1. Plea'e 5a)( &n()l (?e a(a;a'e )' crea(e '&cce''=&ll*1. A '&++ar* )' '?:5n a( (?e en =:r *:&r )n=:r+a():n. Cl)c< e)(

    %*:& can n:(e (?e SI"@ SPF)le >a(? an OEM are'',20. T?e a(a;a'e ge(' re'(ar(e a=(er cl)ca''5:r =)le' crea(e =:r *:&r a(a;a'e an a'+)n'(ance' )n all )n'(ance'2. C:n=)g&re (?e re>:')(:r* =:r En(er>r)'e Manager

    emca $re%os create

    . Config3re the T (conso'e

    emca $config (contro' (

    . Eor an+ he'% in the s+nta- +o3 can 3se thefo''o4ing comman(

    emca he'%+

    http://rac1:1158/emhttp://rac1:1158/em
  • 8/13/2019 Oracle10g RAC

    22/24

    . >tart T VBConso'e (3ring ne-t start3%

    emct' start (conso'e

    Man"a' +on%&4"at&on o% data!ase se0&+es -&t$ s0+t'*

    Add ASM details:

    srvct' a(( asm $n rac1 $i W!>T1 $o =R!CL7=T srvct' a(( asm $n rac2 $i W!>T2 $o =R!CL7=T

    srvct' ena'e asm $n rac1 srvct' ena'e a(m $n rac2

    Add database details:

    srvct' a(( (ataase $( orc' $o /orac'e/%ro(3ct/10.2.0/(1 srvct' a(( instance $( orc' $i orc'1 $n rac1 srvct' a(( instance $( orc' $i orc'2 $n rac2

    Check the configuration:

    srvct' config (ataase $( orc'

    >tart or >to% (ataase

    srvct' X start K sto% Y (ataase $( orc' ) $o norma' *

    >tart or >to% instance

    srvct' X start K sto% Y instance $( orc' $i orc'1

    Check configuration in the OCR:

    $ crs_stat -t

    Fo''o- t$e ste#s (man"a') to s$"tdo-n 7o" se0es*

    e+c(l '(:> ;c:n':le (: '(:> (?e "a(a;a'e C:n':le$ srvctl stop database -d orcl --> to stop the database in all the instances

    $ srvctl status database -d orcl --> to check the status

    $ srvctl stop asm -n rac1 --> to stop the ASM in each node

    $ srvctl stop asm -n rac2 --> to stop the ASM in each node

    $ srvctl stop nodeapps -n rac1 --> to stop other utilities in each node

    # crsctl stop crs --> to stop cluster ready services

    C$e+,'&st at net stat"#*

    S5)(c? :n (?e '?are )'

  • 8/13/2019 Oracle10g RAC

    23/24

    D:raclerac1 cr'c(l c?ec< cr' C?ec< (?e P)ng)ng ;e(5een n:e'

    D:raclerac2 >)ng rac1D:raclerac2 >)ng rac1>r)8D:raclerac2 >)ng rac18)>

    C?ec< 5?e(?er OCFS )' +:&n(eD:raclerac2 +:&n( X gre> 9:raa(a

    S(ar( (?e N:e a>>l)ca():n' )n all n:e'D:raclerac1 'r8c(l '(a(&' n:ea>>' n rac1

    IP )' r&nn)ng :n n:e6 rac1GS" )' n:( r&nn)ng :n n:e6 rac1L)'(ener )' n:( r&nn)ng :n n:e6 rac1ONS ae+:n )' r&nn)ng :n n:e6 rac1

    D:raclerac1 srvct' start no(ea%%s $n rac1D:raclerac1 srvct' start no(ea%%s $n rac2

    S(ar( (?e ASM )n'(ance )n all n:e'D:raclerac1 srvct' start asm $n rac1D:raclerac1 srvct' start asm $n rac2

    S(ar( (?e "a(a;a'e )n'(ance =r:+ :ne n:e

    D:raclerac1 srvct' start (ataase $( orc'

    S(ar( (?e En(er>r)'e Manager " C:n':le :n all n:e'

    D:raclerac1 emct' start (conso'eD:raclerac2 emct' start (conso'e

    Con%&4"e Net-o, &nte%a+es*

    :)=c=g ge()= n:e rac1 :)=c=g ge()= gl:;al

    $ oifcfg setif /:

    Note on Paamete %&'e*Para+e(er T*>e'6

    1dentical across instances

    ;na+ec:+>a();lecl&'(era(a;a'ec:n(r:l=)le;;l:cace

    3ulti-4alued Parameters

  • 8/13/2019 Oracle10g RAC

    24/24

    =a'('(ar(+((r(arge()n'(ancegr:&>' %=:r >arallel J&er* :>era():n',

    S>=)le Fea(&re'6Oracle rec:++en' (: &'e '>=)leEa')er (: &'e an +anageS)ngle@ cen(ral l:ca():n

    Para+e(er' are a>>l)ca;le (: all )n'(ance'I( >er+)(' *na+)c c?ange'Per')'(en(Can '>ec)=* c:++:n 8al&e' an '>ec)=)c 8al&e'

    W.:>enc&r':r'7300rac)n'1.:>enc&r':r'7200