Understanding Oracle RAC 12c Internals

download Understanding Oracle RAC 12c Internals

of 31

  • date post

    07-Jul-2018
  • Category

    Documents

  • view

    220
  • download

    0

Embed Size (px)

Transcript of Understanding Oracle RAC 12c Internals

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    1/31

    !"#$"%#

    %

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template 1

    Understanding Oracle RAC 12 c Internals Markus Michalewicz, Mark Scardina Director of Product Management

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    2/31

    !"#$"%#

    '

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.3

    Safe Harbor Statement

    The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.4

    Agenda

    ! Introduction ! The New Features in Oracle Grid Infrastructure and RAC 12 c

    – Flex ASM

    – Flex Cluster

    ! Policy-Managed Databases – Improved HA Management

    – Dynamic Database Services

    !

    Multiple Subnet Support, Listeners & SCAN in Oracle RAC 12c ! Summary and Q&A

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    3/31

    !"#$"%#

    #

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.5

    The New Oracle RAC 12 c

    Oracle RAC 12c provides**:

    1. Better Business Continuity and High Availability (HA)

    2. Agility and Scalability

    3. Cost-effective Workload Management

    Using ! Standardized and improved

    deployment and management !

    A familiar and matured HA stack

    O r a c l e

    R e a l A p

    p l i c a t i o

    n C l u s t

    e r s ( R A

    C )

    O r a c l e

    G r i d I n f r

    a s t r u c t u

    r e ( G I ) :

    A u t o m a

    t i c S t o r a

    g e M a n a

    g e m e n t

    ( A S M )

    O r a c l e

    C l u s t e r

    w a r e ( O

    C W )

    O r a c l e

    F l e x A S M

    ! " #

    **Understanding Oracle RAC Internals 11g Rel. 2 : http://www.oracle.com/technetwork/products/clustering/overview/understandingrac11grel2internals-2010098.pdf

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.6

    The Setup for this Session What has been installed and configured so far?

    vixen srvpool: frontofficecomet srvpool: backoffice

    dancer srvpool: backoffice dasher srvpool: frontoffice

    OS OL 6.4 OS OL 6.4

    OS OL 6.4OS OL 6.4

    Oracle GI for a cluster Oracle GI for a cluster

    Oracle GI for a clusterOracle GI for a cluster

    Oracle RAC Oracle RAC

    Oracle RACOracle RAC

    raccdb1

    raccdb1_2

    raccdb1_1

    [RAC]> srvctl status database -d raccdb1 Instance raccdb1_1 is running on node comet Instance raccdb1_2 is running on node dancer Instance raccdb1_3 is running on node vixen Instance raccdb1_4 is running on node dasher

    raccdb1_4

    raccdb1_3

    ! 4-node cluster ! OL 6.4 UEK ! Oracle Grid Infrastructure 12c

    – Per node installation

    ! Oracle RAC Database Home 12c – Shared installation on ACFS

    ! One Oracle Multitenant Container Database – DB name: raccdb1

    – Deployed as a Policy-Managed Database

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    4/31

    !"#$"%#

    (

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.7

    New Memory Requirements Not an Oracle RAC internal – just something to mention

    [GRID]> srvctl status asm ASM is running on comet,dasher,dancer

    [GRID]> srvctl status mgmtdb Database is enabled Instance -MGMTDB is running on node dasher

    [GRID]> ps -ef |grep pmon grid 3227 1 0 13:54 ? 00:00:02 asm_pmon_+ASM1 grid 3868 1 0 13:55 ? 00:00:01 mdb_pmon_-MGMTDB grid 7364 1 0 13:57 ? 00:00:01 apx_pmon_+APX1 oracle 7917 1 0 13:57 ? 00:00:02 ora_pmon_raccdb1_4

    [RAC]> df -h Filesystem Size Used Avail Use% Mounted on ... tmpfs 1.7G 1.3G 475M 73% /dev/shm ...

    Physical memory requirements with Oracle RAC 12c: 4GB

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.8

    Agenda

    ! Introduction ! The New Features in Oracle Grid Infrastructure and RAC 12 c

    – Flex ASM

    – Flex Cluster

    ! Policy-Managed Databases – Improved HA Management

    – Dynamic Database Services

    !

    Multiple Subnet Support, Listeners & SCAN in Oracle RAC 12c ! Summary and Q&A

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    5/31

    !"#$"%#

    )

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.9

    Oracle ASM 12 c – Overview Oracle ASM 12 c Standard Deployment

    ASM Cluster Pool of Storage

    Disk Group BDisk Group AShared Disk Groups

    Wide File Striping

    One to One Mapping of ASM Instances to Servers

    ASM Instance

    Database Instance

    ASM Disk

    RAC Cluster

    Node4Node3Node2Node1 Node5 ASM ASM ASM ASM ASM

    ASM Instance

    Database Instance

    DB A DB A DBC DBB DB B DBB

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.10

    Introducing Oracle Flex ASM Removal of One to One Mapping and HA

    ASM Cluster Pool of Storage

    Disk Group BDisk Group AShared Disk Groups

    Wide File Striping

    Databases share ASM instances

    ASM Instance

    Database Instance

    ASM Disk

    RAC Cluster

    Node5Node4Node3Node2Node1

    Node5 runs as

    ASM Client to Node4

    Node1 runs as

    ASM Client to Node2

    Node1 runs as

    ASM Client to Node4

    Node2 runs as

    ASM Client to Node3

    ASM ASM ASM

    ASM Instance

    DB A DB A DBC DBB DB B DBB

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    6/31

    !"#$"%#

    *

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.11

    Supporting Pre-Oracle 12 c Databases Pre-Oracle 12 c Databases require a local ASM instance

    ASM Cluster Pool of Storage

    Disk Group BDisk Group AShared Disk Groups

    Wide File Striping

    Databases share ASM instances

    ASM Instance

    Database Instance

    ASM Disk

    RAC Cluster

    Node5Node4Node3Node2Node1 ASM ASM ASM

    DB A DB A DBC

    ASM ASM

    11g DB

    11g DBDBB DB B DBB

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.12

    Oracle Flex ASM Configuration details

    ! Flex ASM introduces new local resources:

    – At least one ASM listener

    – One “proxy_advm” (per node) ! Used for ACFS access to Flex ASM instances

    ! Connections from a database instance to an ASM instance are based on SQLnet using listeners.

    – The listener directs the connection to the least loaded ASM instance based on the load metric it maintains.

    – The connection details are fetched from CSS global data

    – The ASM instance to which the database instance connects to is listed in the database alert log:

    ! NOTE: ASMB connected to ASM instance +ASM1 (Flex mode; client id 0x10004)

    – The userid and password supplied are also managed automatically. They are supplied while establishing the session, not while connecting.

    [GRID]> crsctl stat res -t ------------------------------------------------------------------------------- Name Target State Server State details ------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------

    ora.ASMNET1LSNR_ASM.lsnr ONLINE ONLINE comet STABLE ONLINE ONLINE dancer STABLE ONLINE ONLINE dasher STABLE ONLINE ONLINE vixen STABLE

    ... ora.DATA.dg

    ONLINE ONLINE comet STABLE ONLINE ONLINE dancer STABLE ONLINE ONLINE dasher STABLE OFFLINE OFFLINE vixen STABLE

    ... ora.INFRA.dg

    ONLINE ONLINE comet STABLE ONLINE ONLINE dancer STABLE ONLINE ONLINE dasher STABLE

    OFFLINE OFFLINE vixen STABLE ...

    ora.proxy_advm ONLINE ONLINE comet STABLE ONLINE ONLINE dancer STABLE ONLINE ONLINE dasher STABLE ONLINE ONLINE vixen STABLE

  • 8/19/2019 Understanding Oracle RAC 12c Internals

    7/31

    !"#$"%#

    +

    Copyright © 2013, Oracle and/or its affiliates. All rights reserved.13

    Oracle Flex ASM Administering Flex ASM

    ! Check ASM mode using asmcmd ! Check where ASM instances are running using srvctl ! Check the configuration of ASM using srvctl

    ! Modify the ASM configuration using srvctl

    ! Cluster ASM listener: – Flex ASM can have its own network or overlap with the

    private interconnect network used by RAC DB instances

    – It is recommended to configure a full overlap of the private interconnect and the ASM network in current use cases:

    [GRID]> asmcmd ASMCMD> showclustermode ASM cluster : Flex mode enabled

    [GRID]> srvctl status asm ASM is running on comet,d