Understanding Oracle RAC 12c Internals OOW13 [CON8806]

download Understanding Oracle RAC 12c Internals OOW13 [CON8806]

of 31

  • date post

    23-Aug-2014
  • Category

    Lifestyle

  • view

    678
  • download

    7

Embed Size (px)

description

Understanding Oracle RAC 12c Internals as presented during Oracle Open World 2013 with Mark Scardina. This is part two of the Oracle RAC 12c "reindeer series" used for OOW13 Oracle RAC-related presentations.

Transcript of Understanding Oracle RAC 12c Internals OOW13 [CON8806]

  • 9/30/13 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 of the corporate presentation template1 Understanding Oracle RAC 12c Internals Markus Michalewicz, Mark Scardina Director of Product Management
  • 9/30/13 2 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 Oracles 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 12c 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
  • 9/30/13 3 Copyright 2013, Oracle and/or its affiliates. All rights reserved.5 The New Oracle RAC 12c 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 Oracle Real Application Clusters (RAC) Oracle Grid Infrastructure (GI): Automatic Storage Management (ASM) Oracle Clusterware (OCW) Oracle Flex ASM CRM **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: backofficedasher 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
  • 9/30/13 4 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 12c 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
  • 9/30/13 5 Copyright 2013, Oracle and/or its affiliates. All rights reserved.9 Oracle ASM 12c Overview Oracle ASM 12c 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 Node5ASM ASM ASM ASM ASM ASM Instance Database Instance DBA DBA DBCDBB DBBDBB 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 DBA DBA DBCDBB DBBDBB
  • 9/30/13 6 Copyright 2013, Oracle and/or its affiliates. All rights reserved.11 Supporting Pre-Oracle 12c Databases Pre-Oracle 12c 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 DBA DBA DBC ASM ASM 11g DB 11g DB DBB DBBDBB 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
  • 9/30/13 7 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,dasher,dancer [GRID]> srvctl config asm -detail ASM home: /u01/app/12.1.0/grid Password file: +INFRA/orapwASM ASM listener: LISTENER ASM is enabled. ASM instance count: 3 Cluster ASM listener: ASMNET1LSNR_ASM,ASMNET2LSNR_ASM [GRID]> srvctl modify asm -count all [GRID]> srvctl status asm ASM is running on comet,dasher,dancer [GRID]> srvctl start asm [GRID]> srvctl status asm ASM is running on comet,vixen,dasher,dancer Test scenarios attached Copyright 2013, Oracle and/or its affiliates. All rights reserved.14 Oracle Flex ASM Some test scenarios A failure of an ASM instance is without effect for the databases using ASM disk groups (here: -MGMTDB) If an ASM instance is running on all nodes (count all) the ASM instance is restarted upon failure If an ASM instance is running on a subset of nodes the ASM instance might be restarted on another node The client using the ASM instance may change A failure of an ASM instance is without effect for the APX (ADVM proxy) running on the same node A failure of the APX will lead to a restart of the database instance (on the node) that uses an ACFS file system. More information: http://docs.oracle.com/cd/E16655_01/server.121/e17612/ asminst.htm#OSTMG95329 [GRID]> ps -ef |grep pmon grid 3840 1 0 09:11 ? 00:00:01 mdb_pmon_-MGMTDB grid 4093 1 0 11:35 ? 00:00:00 asm_pmon_+ASM1 grid 4548 1 0 11:36 ? 00:00:00 apx_pmon_+APX1 oracle 5092 1 0 11:36 ? 00:00:00 ora_pmon_raccdb1_4 [GRID]> kill -9 4093 [GRID]> ps -ef |grep pmon grid 3840 1 0 09:11 ? 00:00:01 mdb_pmon_-MGMTDB grid 4548 1 0 11:36 ? 00:00:00 apx_pmon_+APX1 oracle 5092 1 0 11:36 ? 00:00:00 ora_pmon_raccdb1_4 [GRID]> ps -ef |grep pmon grid 3840 1 0 09:11 ? 00:00:01 mdb_pmon_-MGMTDB grid 4548 1 0 11:36 ? 00:00:00 apx_pmon_+APX1 oracle 5092 1 0 11:36 ? 00:00:00 ora_pmon_raccdb1_4 grid 5748 1 0 11:39 ? 00:00:00 asm_pmon_+ASM1 grid 5793 19013 0 11:39 pts/1 00:00:00 grep pmon [GRID]> asmcmd lsct data DB_Name Status Software_Version Compatible_version Instance_Name Disk_Group +APX CONNECTED 12