Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]

Click here to load reader

Embed Size (px)

description

Oracle RAC 12c Best Practices with Customer Example (Sanger) as presented during Oracle Open World 2013 (OOW13). This is part one of the Oracle RAC 12c "reindeer series" used for OOW13 Oracle RAC-related presentations.

Transcript of Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]

  • 9/30/13& 1& Copyright 2013, Oracle and/or its affiliates. All rights reserved.1 Oracle Real Application Clusters (RAC) 12c Best Practices Markus Michalewicz, Director of Product Management, Oracle Real Application Clusters Kalyan Kallepally, Principal Database Administrator, Wellcome Trust Sanger Institute
  • 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 ! Oracle RAC 12c and Standardization ! Preparation of the Servers for Oracle RAC 12c ! Installation of Oracle Grid Infrastructure 12c ! Installation of the Oracle Database Home ! Oracle (RAC) Database Creation using DBCA ! Post-install Steps and Configuration ! Customer Example: Wellcome Trust Sanger Institute ! Summary and Q&A
  • 9/30/13& 3& Copyright 2013, Oracle and/or its affiliates. All rights reserved.5 Standardize on Clusters Clusters increase scalability and HA regardless of DB types used later Oracle GI Oracle GI Oracle GI for a Cluster Oracle GI for a Cluster High Availability Scalability License Costs Oracle GI Standalone Oracle GI Re-configuration to enable cluster MOS note: 1584742.1 Support Impact of the Deprecation Announcement of Oracle Restart with Oracle Database 12c Copyright 2013, Oracle and/or its affiliates. All rights reserved.6 Standardize on Oracle RAC For all the flexibility you need Oracle GIDBA DBA Oracle GIDBA DBA DBA Oracle RAC One Node Oracle RAC Flexibility Scalability Online upgrade DBA Oracle Restart Oracle GI Online (rolling) Patch and PSU Application
  • 9/30/13& 4& Copyright 2013, Oracle and/or its affiliates. All rights reserved.7 Standardize on Oracle RAC and Oracle Multitenant The new standard for Oracle Database Consolidation Oracle GI Oracle RAC One Node Consolidation Agility Oracle GI Oracle RAC Copyright 2013, Oracle and/or its affiliates. All rights reserved.8 Preparation of the Servers ! Setup of the Servers include: Setting up network connections ! Public and private with switch Setting up shared storage for all servers ! Shared storage required Setting up the OS image here OL 6.4 ! Suggestion: Use cloning to deploy OS images fastervixencomet dancerdasher OS OL 6.4 OS OL 6.4 OS OL 6.4OS OL 6.4 OS image setup and more
  • 9/30/13& 5& Copyright 2013, Oracle and/or its affiliates. All rights reserved.9 Preparation of the Servers ! Recommendations: Use OL 6.4+ UEK Use the Oracle preinstall package ! Available for Oracle Database 11g Rel. 2 Oracle Database 12c Rel. 1 Additional steps to perform after using the pre-install package for an Oracle RAC cluster: ! Add a grid user & dba group ! Align UIDs / GUIDs across servers ! Set SELinux to permissive, if possible ! Check large / huge pages settings Kernel and Oracle preinstall package [[email protected] ~]# uname a Linux dasher 2.6.39-400.17.1.el6uek.x86_64 #1 SMP Fri Feb 22 18:16:18 PST 2013 x86_64 x86_64 x86_64 GNU/Linux #Get the pre-install package [[email protected] Desktop]# yum list oracle-* oracle-rdbms-server-11gR2-preinstall.x86_64 1.0-7.el6 ol6_latest oracle-rdbms-server-12cR1-preinstall.x86_64 1.0-8.el6 ol6_latest Copyright 2013, Oracle and/or its affiliates. All rights reserved.10 Install Oracle Grid Infrastructure 12c What is the default when keeping the preselection in steps 1-4? ! GI for a Cluster Installation ! Standard Cluster ! Typical Installation
  • 9/30/13& 6& Copyright 2013, Oracle and/or its affiliates. All rights reserved.11 Install Oracle Grid Infrastructure 12c Step 3: Double-check the cluster topology to deploy! Copyright 2013, Oracle and/or its affiliates. All rights reserved.12 Oracle Flex Cluster The new standard for resource management in the cluster DBA DBA DBA DBB DBB Hub Nodes Leaf Nodes ! Oracle Flex Cluster: The new standard for flexible resource management in the cluster ! Use it as demand requires it ! Inherits all Flex ASM HA capabilities ! Will support more use cases in future Efficient High Availability and resource management across tiers ! Lightweight cluster stack on leaf nodes Benefit from virtualization and physical deployments in one cluster
  • 9/30/13& 7& Copyright 2013, Oracle and/or its affiliates. All rights reserved.13 Install Oracle Grid Infrastructure 12c For now, Standard Cluster is the default given the preselection ! Oracle Flex Cluster Can consist of only HUB-nodes ! If a Leaf-node has access to shared storage, it can perform a role change to a HUB-node A Standard Cluster can be converted to a Flex Cluster at any time after the installation ! Once a cluster is configured as a Flex Cluster this configuration is irreversible without a re- configuration of the cluster. ! Recommendation: An all-HUB-node Flex Cluster behaves the same as a Standard Cluster using Flex ASM. Either can be used, but if in doubt, you can choose standard Cluster and convert later. Copyright 2013, Oracle and/or its affiliates. All rights reserved.14 Install Oracle Grid Infrastructure 12c Step 4: Do not accept the default choose Advanced Installation ! Typical Installation Does not provide an option to use Flex ASM Does not provide an option to create the Mgmt DB / Grid Infrastructure Management Repository ! Enhancement Requests for later releases have been filed already ! Advanced Option Recommended for all configurations
  • 9/30/13& 8& Copyright 2013, Oracle and/or its affiliates. All rights reserved.15 Install Oracle Grid Infrastructure 12c Advanced Installation SCAN & GNS requirement ! Recommendations: SCAN remains to be required for the cluster Choose cluster-specific unique SCAN names OUI will try to enforce it as much as possible ! http://www.oracle.com/technetwork/products/ clustering/overview/scan-129069.pdf Choose Configure GNS if: ! You want to use dynamic IP management (DHCP assigned / IPv6 Stateless Address Autoconfiguration) for client connectivity In this case, GNS requirements remain as with previous version for standard cluster Copyright 2013, Oracle and/or its affiliates. All rights reserved.16 Install Oracle Grid Infrastructure 12c Advanced Installation Network Interface Usage ! Recommendations: Use Redundant Interconnect Usage feature ! Bonding can be used underneath if required ! MOS notes explain further configuration e.g.: MOS note 1210883.1 - 11gR2 Grid Infrastructure Redundant Interconnect and ora.cluster_interconnect.haip It is recommended to align the ASM network with the private interconnect. Using different subnets for the private interconnect is required.
  • 9/30/13& 9& Copyright 2013, Oracle and/or its affiliates. All rights reserved.17 Install Oracle Grid Infrastructure 12c Advanced Installation Grid Infrastructure Management Repository ! Grid Infrastructure Management Repository (GIMR) A Single Instance Oracle Database 12c It will be installed on one of the nodes ! It is managed as a failover database It contains the Cluster Health Monitor (CHM) data It is stored in the first ASM disk group created As part of the configuration, Quality of Service Management (QoS) required resources are added to the cluster configuration (e.g. OC4J) ! Recommendation: configure the GIMR! Copyright 2013, Oracle and/or its affiliates. All rights reserved.18 Install Oracle Grid Infrastructure 12c Advanced Installation Storage Options ! For Standard Cluster Installations three storage options are available: 1. Standard ASM ! ASM configuration as known from previous releases 2. Oracle Flex ASM ! Recommended option available with Oracle Grid Infrastructure 12c Flex Cluster requires Flex ASM 3. Shared File System ! Alternative
  • 9/30/13& 10& Copyright 2013, Oracle and/or its affiliates. All rights reserved.19 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.20 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& 11& Copyright 2013, Oracle and/or its affiliates. All rights reserved.21 Install Oracle Grid Infrastructure 12c Use Oracle Flex ASM for storage ! Recommendations: Use Oracle Flex ASM for storage