+ All Categories
Home > Documents > Rac r2 Sem 06 Crs Jfv2

Rac r2 Sem 06 Crs Jfv2

Date post: 06-Jul-2018
Category:
Upload: anonymous-znpla5nco
View: 230 times
Download: 0 times
Share this document with a friend

of 15

Transcript
  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    1/15

    6Copyright © 2006, Oracle. All rights reserved.

    Oracle Clusterware

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    2/15

    Copyright © 2006, Oracle. All rights reserved.6 - 2

    Objectives

    After completing this lesson, you should be able to

    describe:

    • CRS resources

    • RAC resources

    • Virtual ! addresses and RAC

    • OCR architecture

    • CRS framewor"

    • Cluster Verify

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    3/15

    Copyright © 2006, Oracle. All rights reserved.6 - 3

    Oracle Clusterware: Overview

    • !ortable cluster infrastructure that provides high

    availability to RAC databases and#or other applications:

     – $onitor applications% health

     – Restart applications on failure

     – Can fail over applications on node failure

    Oracle Clusterware

    system files

    ORAC&'()O$'

    ORA(CRS()O$'

    ORAC&'()O$'

    ORA(CRS()O$' ORA(CRS()O$'

    &istener 

    RAC *+ nst

    !rotected App A

    &istener 

    RAC *+ nst

    !rotected App +

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    4/15

    Copyright © 2006, Oracle. All rights reserved.6 - 4

    CRS Resources

    • A resource is a CRSmanaged application-

    • Application profile attributes are stored in OCR:

     – Chec" interval

     – .ailure policies

    • An action script must do a:

     – Start of the application

     – Stop of the application

     – Chec" of the application

    • &ife cycle of a resource:

    crs(profile crs(register   crs(start crs(stat

    crs(relocate crs(stop crs(unregister 

     – Action script

     – !rivileges

     – *ependencies

     – /

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    5/15

    Copyright © 2006, Oracle. All rights reserved.6 - 6

    RAC Resources

    $ $CRS_HOME/crs_stat -t Name Type Target State Host----------------------------------------------------------------ora.atlhp8.ASM1.asm applcato! ON"#NE ON"#NE atlhp8ora.atlhp8."#STENER_AT"H8.ls!r applcato! ON"#NE ON"#NE atlhp8ora.atlhp8.gs% applcato! ON"#NE ON"#NE atlhp8ora.atlhp8.o!s applcato! ON"#NE ON"#NE atlhp8ora.atlhp8.&p applcato! ON"#NE ON"#NE atlhp8ora.atlhp'.ASM(.asm applcato! ON"#NE ON"#NE atlhp'ora.atlhp'."#STENER_AT"H'.ls!r applcato! ON"#NE ON"#NE atlhp'ora.atlhp'.gs% applcato! ON"#NE ON"#NE atlhp'ora.atlhp'.o!s applcato! ON"#NE ON"#NE atlhp'ora.atlhp'.&p applcato! ON"#NE ON"#NE atlhp'

    ora.)*+E.,1.cs applcato! ON"#NE ON"#NE atlhp8ora.)*+E.,1.)*+E1.sr& applcato! ON"#NE ON"#NE atlhp8ora.)*+E.,1.)*+E(.sr& applcato! ON"#NE ON"#NE atlhp'ora.)*+E.% applcato! ON"#NE ON"#NE atlhp'ora.)*+E.)*+E1.!st applcato! ON"#NE ON"#NE atlhp8ora.)*+E.)*+E(.!st applcato! ON"#NE ON"#NE atlhp'

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    6/15

    Copyright © 2006, Oracle. All rights reserved.6 - 7

    Virtual ! Addresses and RAC

    ER0ESCR#T#ON  00HOSTcl2s!o%e-1&p33  00HOSTcl2s!o%e-(&p33  0SER4#CE_NAMEER33

    clnode0

    ER0ESCR#T#ON  00HOSTcl2s!o%e-133  00HOSTcl2s!o%e-(33  0SER4#CE_NAMEER33

    1imeout

    wait

    clnode2

    clnode0 clnode2

    2

    3

    4

    5

    clnode0vip

    clnode2vip

    2

    clnode0vipclnode2vip

    4

    6

    5

    Clients

    06

    7

    03

    7

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    7/15Copyright © 2006, Oracle. All rights reserved.6 -

    OCR Architecture

    8ode1

    OCR cache

    CRS

    process

    Client

    process

    8ode2

    OCR cache

    CRS

    process

    8ode3

    OCR cache

    CRS

    process

    Client

    process

    OCR

    primary

    file

    Shared

    storageOCR

    mirror 

    file

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    8/15Copyright © 2006, Oracle. All rights reserved.6 - !0

    Automatic OCR +ac"ups

    •1he OCR content is critical to Oracle Clusterware-

    • OCR is automatically bac"ed up physically:

     – 'very four hours: CRS "eeps the last three-

     – At the end of every day: CRS "eeps the last two-

     – At the end of every wee": CRS "eeps the last two-

     –

    • Change the default automatic bac"up location:

    $ c% $ORAC"E_5ASE/Crs/c%ata/67&_cl2s$ ls -lt-r*-r--r-- 1 root root 981(8 ,a! ' :(;

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    9/15Copyright © 2006, Oracle. All rights reserved.6 - !!

    1hird!arty Application !rotection: Overview

    • )igh availability framewor": – Commandline tools to register applications with CRS

     – Calls control application agents to manage applications

     – OCR used to describe CRS attributes for the applications

    • )igh availability C A!:

     – $odify CRS attributes directly in OCR

     – $odify CRS attributes at run time

    • Application V!s:

     – 9sed for applications accessed by networ" means

     –8C redundancy

     – 8C failover 

    • OC.S:

     – Store application configuration files

     – Share files between cluster nodes

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    10/15Copyright © 2006, Oracle. All rights reserved.6 - !2

    9se CRS .ramewor": Overview

    0- Create an application V! if necessary:

    a Create a profile: 8etwor" data ; 2sr&p predefined script

    b Register the application V!-

    c Set user permissions on the application V!-

    d Start the application V! by using crs_start-

    2-

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    11/15Copyright © 2006, Oracle. All rights reserved.6 - !3

    9se CRS .ramewor": Overview

    4- Create an application profile:

    • Action script location

    • Chec" interval

    • .ailover policies

    • Application V! if necessary

    6- Set permissions on your application-

    3- Register the profile with Oracle Clusterware-

    7- Start your application using crs_start-

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    12/15Copyright © 2006, Oracle. All rights reserved.6 - !4

    Cluster Verify: Overview

    • 1o verify that you have a wellformed cluster for Oracle

    Clusterware and RAC, chec" the:

     – nstallation

     – Configuration

     – Operation

    • .ull stac" verification

    • 8onintrusive verification

    • *iagnostic mode see"s to establish a reason for the

    failure of any verification tas"-• 'asytouse interface:

     – Stage commands

     – Component commands

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    13/15Copyright © 2006, Oracle. All rights reserved.6 - !"

    Cluster Verify Stages

    9ser sets up thehardware,

    networ", = storage

    Sets up OC.S

    > O!1

    nstalls

    CRS

    nstalls

    RAC

    Configures

    RAC *+

    -post h*os

    -post c7s

    -post crs!st

    -pre crs!st

    -pre %!st

    -pre %c7g

    -pre c7s

    $ cl2&7y stage -lst

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    14/15Copyright © 2006, Oracle. All rights reserved.6 - !6

    *emos

    • Apache

    • ?cloc"

    http:##www-oracle-com#technology#obe#demos#admin#demos-html

  • 8/17/2019 Rac r2 Sem 06 Crs Jfv2

    15/15Copyright © 2006 Oracle All rights reserved6 !7

    Summary

    n this lesson, you should have learned about:

    • CRS resources

    • RAC resources

    • Virtual ! addresses and RAC

    • OCR architecture

    • CRS framewor"

    • Cluster Verify


Recommended