Exadata: from Beginner to Advanced in 3 Hours. Arup Nanda Longtime Oracle DBA (and now DMA)

Similar documents
Exadata for Oracle DBAs. Longtime Oracle DBA

Inge Os Sales Consulting Manager Oracle Norway

Expert Oracle Exadata

Exadata Database Machine Administration Workshop NEW

Exadata and Database Machine Administration Seminar

Applying traditional DBA skills to Oracle Exadata. Marc Fielding March 2013

Oracle Exadata: The World s Fastest Database Machine Exadata Database Machine Architecture

Enkitec Exadata Storage Layout

Preview of Oracle Database 12c In-Memory Option. Copyright 2013, Oracle and/or its affiliates. All rights reserved.

<Insert Picture Here> Oracle Exadata Database Machine Overview

Oracle Database - Engineered for Innovation. Sedat Zencirci Teknoloji Satış Danışmanlığı Direktörü Türkiye ve Orta Asya

2009 Oracle Corporation 1

How To Use Exadata

Tuning Exadata. But Why?

How To Build An Exadata Database Machine X2-8 Full Rack For A Large Database Server

Oracle Exadata Database Machine for SAP Systems - Innovation Provided by SAP and Oracle for Joint Customers

An Oracle White Paper June A Technical Overview of the Oracle Exadata Database Machine and Exadata Storage Server

Oracle Maximum Availability Architecture with Exadata Database Machine. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

Oracle Database In-Memory The Next Big Thing

Oracle 11g: RAC and Grid Infrastructure Administration Accelerated R2

Oracle Big Data, In-memory, and Exadata - One Database Engine to Rule Them All Dr.-Ing. Holger Friedrich

Safe Harbor Statement

Expert Oracle Exadata

Ultimate Guide to Oracle Storage

Exadata Performance, Yes You Still Need to Tune Kathy Gibbs Senior Database Administrator, CONFIO Software

An Oracle White Paper December A Technical Overview of the Oracle Exadata Database Machine and Exadata Storage Server

SUN ORACLE DATABASE MACHINE

SUN ORACLE EXADATA STORAGE SERVER

An Oracle White Paper October A Technical Overview of the Oracle Exadata Database Machine and Exadata Storage Server

High Availability Databases based on Oracle 10g RAC on Linux

How Oracle Exadata Delivers Extreme Performance

SUN ORACLE DATABASE MACHINE

ORACLE DATABASE HIGH AVAILABILITY STRATEGY, ARCHITECTURE AND SOLUTIONS

Capacity Management for Oracle Database Machine Exadata v2

Overview: X5 Generation Database Machines

News and trends in Data Warehouse Automation, Big Data and BI. Johan Hendrickx & Dirk Vermeiren

Virtualized Oracle 11g/R2 RAC Database on Oracle VM: Methods/Tips Kai Yu Oracle Solutions Engineering Dell Inc

Main Memory Data Warehouses

How to Migrate your Database to Oracle Exadata. Noam Cohen, Oracle DB Consultant, E&M Computing

HP Oracle Database Platform / Exadata Appliance Extreme Data Warehousing

Oracle Database Public Cloud Services

Why and How You Should Be Using Policy-Managed RAC Databases

An Oracle White Paper April A Technical Overview of the Sun Oracle Database Machine and Exadata Storage Server

Novinky v Oracle Exadata Database Machine

About the Author About the Technical Contributors About the Technical Reviewers Acknowledgments. How to Use This Book

Scalable NAS for Oracle: Gateway to the (NFS) future

ORACLE EXADATA DATABASE MACHINE X2-8

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

An Oracle White Paper September A Technical Overview of the Sun Oracle Exadata Storage Server and Database Machine

Oracle Database Cloud Exadata Service

Oracle Cloud Storage and File system

ORACLE DATABASE ADMINISTRATOR RESUME

Oracle Database 11g: RAC Administration Release 2

Oracle - Engineered for Innovation. Thomas Kyte

Exadata Database Machine

<Insert Picture Here> Best Practices for Extreme Performance with Data Warehousing on Oracle Database

Introduction to Database as a Service

Backup and Recovery Solutions for Exadata. Ľubomír Vaňo Principal Sales Consultant

Oracle Database In-Memory A Practical Solution

High Availability Infrastructure for Cloud Computing

Maximum Availability Architecture

Performance Baseline of Hitachi Data Systems HUS VM All Flash Array for Oracle

Oracle Storage Options

ORACLE EXADATA STORAGE SERVER X2-2

TUT NoSQL Seminar (Oracle) Big Data

Flash Performance for Oracle RAC with PCIe Shared Storage A Revolutionary Oracle RAC Architecture

Oracle BI EE Implementation on Netezza. Prepared by SureShot Strategies, Inc.

<Insert Picture Here>

Oracle Database In- Memory Op4on in Ac4on

High Performance Oracle RAC Clusters A study of SSD SAN storage A Datapipe White Paper

HDS UCP for Oracle key differentiators and why it should be considered. Computacenter insight following intensive benchmarking test

Who am I? Copyright 2014, Oracle and/or its affiliates. All rights reserved. 3

Removing Performance Bottlenecks in Databases with Red Hat Enterprise Linux and Violin Memory Flash Storage Arrays. Red Hat Performance Engineering

Aaron Werman.

High Availability Infrastructure of Database Cloud: Architecture, Best Practices. Kai Yu Oracle Solutions Engineering, Dell Inc.

Why Standardize on Oracle Database 11g Next Generation Database Management. Thomas Kyte

Oracle Exadata Life Cycle & Services

Backup and Recovery Solutions for Exadata. Cor Beumer Storage Sales Specialist Oracle Nederland

HP recommended configuration for Microsoft Exchange Server 2010: HP LeftHand P4000 SAN

An Oracle White Paper May Exadata Smart Flash Cache and the Oracle Exadata Database Machine

ORACLE EXADATA STORAGE SERVER X4-2

Oracle 11g New Features - OCP Upgrade Exam

<Insert Picture Here> Refreshing Your Data Protection Environment with Next-Generation Architectures

OLTP Meets Bigdata, Challenges, Options, and Future Saibabu Devabhaktuni

ORACLE CONFIGURATION SERVICES EXHIBIT

<Insert Picture Here> Oracle Cloud Storage. Morana Kobal Butković Principal Sales Consultant Oracle Hrvatska

Optimize Oracle Business Intelligence Analytics with Oracle 12c In-Memory Database Option

How To Test Backup And Restore Performance On An Exadata Database Machine

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

Advanced Oracle DBA Course Details

Instant-On Enterprise

Top 10 Things You Always Wanted to Know About Automatic Storage Management But Were Afraid to Ask

Oracle Database 11g: New Features for Administrators DBA Release 2

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

IBM System x SAP HANA

Best Practices for Monitoring Exadata Enterprise Manager Cloud Control 12c

Transcription:

Exadata: from Beginner to Advanced in 3 Arup Nanda Longtime Oracle DBA (and now DMA)

Why this Session? If you are an Oracle DBA Familiar with RAC, 11gR2 and ASM about to be a Database Machine Administrator (DMA) How much do you have to learn? How much of you own prior knowledge I can apply? What s different in Exadata? What makes it special, fast, efficient? Do you have to go through a lot of training? 2

What is Exadata It is like an appliance containing Storage, Flash Disks, Database Servers, Infiniband Switches, Ethernet Switches, KVM (some models) But it is not an appliance. Why? additional software to make it a better database machine Components can be managed independently That s why Oracle calls it a Database Machine (DBM) And DMA Database Machine Administrator 3

Anatomy of an Oracle Database Instance SELECT NAME FROM CUSTOMERS WHERE STATUS ='ANGRY' Combination of Memory Areas Background Processes UPDATE CUSTOMERS SET BONUS = 1M WHERE STATUS ='ANGRY' datafile1 datafile2 Storage 4

RAC Database datafile1 datafile2 Storage 5

Query Processing JILL SELECT NAME FROM CUSTOMERS WHERE STATUS ='ANGRY' datafile1 datafile2 Storage Database Block 6

Components for Performance CPU Memory Network I/O Controller Less I/O = better performance Disk 7

What about SAN Caches? Success of SAN caches is built upon predictive analytics They work well, if a small percentage of disk is accessed most often The emphasis is on disk; not data Most database systems are way bigger than caches need to get the data to the memory to process --> I/O at the disk level is still high Caches are excellent for filesystems. or very small databases 8

What about In-Memory DBs Memory is still more expensive How much memory is enough? You have a 100 MB database and 100 MB buffer cache The whole database will fit in the memory, right? NO! Oracle database fills up to 7x DB size buffer cache http://arup.blogspot.com/2011/04/can-i-fit-80mb-database-completely-in.html 9

The Solution A typical query may: Select 10% of the entire storage Use only 1% of the data it gets To gain performance, the DB needs to shed weight It has to get less from the storage. Filtering at the storage level. The storage must be cognizant of the data CPU Memory SELECT NAME FROM CUSTOMERS WHERE STATUS ='ANGRY' Filtering should be Applied Here Network I/O Controller Disk 10

The Magic #1 CPU Memory Network I/O Controller Disk idb The communication between CPU and Disk carries the information on the query columns and predicates. This occurs as a result of a special protocol called idb. 11

Magic #2 Storage Cell Server idb Cells are Sun Blades Run Oracle Enterprise Linux Software called Exadata Storage Server (ESS) which understands idb Disk1 Disk2 Disk3 12

Magic #3 Storage Indexes Storage Indexes store in memory of the Cell Server the areas on the disk and the MIN/MAX value of the column and whether NULL exists. They eliminate disk I/O. Disk1 Disk2 Disk3 SELECT FROM TABLE WHERE COL1 = 1 MIN = 3 MAX = 5 MIN = 4 MAX = 5 MIN = 1 MAX = 2 MIN = 3 MAX = 5 Storage Index Disk4 13

Checking Storage Index Use select name, value/1024/1024 as stat_value from v$mystat s, v$statname n where s.statistic# = n.statistic# and n.name in ( 'cell physical IO bytes saved by storage index', 'cell physical IO interconnect bytes returned by smart scan ) Output STAT_NAME STAT_VALUE ---------- ---------- SI Savings 5120.45 Smart Scan 1034.00 14

Checking Offloading of an SQL select sql_id, child_number child#, plan_hash_value plan_hash, executions execs, (elapsed_time/1000000)/decode(nvl(executions,0),0,1,executions)/ decode(px_servers_executions,0,1,px_servers_executions/decode(nvl(executions,0),0,1, executions)) avg_elapsed_time_in_secs, px_servers_executions/decode(nvl(executions,0),0,1,executions) avg_par_deg, decode(io_cell_offload_eligible_bytes,0,'no','yes') Offloaded, decode(io_cell_offload_eligible_bytes,0,0,100*(io_cell_offload_eligible_bytesio_interconnect_bytes) /decode(io_cell_offload_eligible_bytes,0,1,io_cell_offload_eligible_bytes)) "%age IO Saved", buffer_gets/decode(nvl(executions,0),0,1,executions) avg_lio from v$sql where sql_text like <SQL Statement Comes Here>%' 15

Why Not? Pre-requisite for Smart Scan Direct Path Full Table or Full Index Scan > 0 Predicates Simple Comparison Operators Other Reasons Cell is not offload capable The diskgroup attribute cell.smart_scan_capable set to FALSE; Not on clustered tables, IOTs, etc. Disabling Smart Scans cell_offload_processing = false; _kcfis_storageidx_disabled = true; 16

Magic #4 Flash Cache These are flash cards presented as disks; not memory to the Storage Cells. They are similar to SAN cache; but Oracle controls what goes on there and how long it stays. datafile1 datafile2 Storage 17

Magic #5 Process Offloading Bloom Filters Functions Offloading Get the functions that can be offloaded V$SQLFN_METADATA Decompression (Compression handled by Compute Nodes) Virtual Columns 18

Components CPU Memory Network I/O Controller Disk Database Node (Sun Blade. OEL) Oracle 11gR2 RAC InfiniBand Switch Storage Cell Exadata Storage Server Disks, Flash 19

Put Together: One Full Rack RAC Cluster Database Database Database Node Database 1 Node 8 Node Database 1 Node 1 Node 1 InfiniBand Network Switch Switch Cell 1 Cell 14 Cell 1 Cell 1 Cell 1 Clients connect to the database nodes. 20

How it Looks Number of Compute Nodes Total Compute Node Processor Cores Total Compute Node Memory Number of Storage Servers Number of SAS Disks in Storage Storage Capacity - HP X2-2 Qtr X2-2 Half X2-2 Full X2-8 Full 2 4 8 2 24 48 96 160 196 GB 384 GB 768 GB 4 TB 3 7 14 14 36 84 168 168 21.6 TB 50.4 TB 100.8 TB 100.8 TB Storage Capacity - HC Number of InfiniBand Switches 108 TB 252 TB 504 TB 504 TB 2 3 3 3 Source: upcoming book Exadata Recipes by Clarke from Apress 21

Disk Layout Compute Nodes Storage Cell Disks (hard and flash) are connected to the cells. The disks are partitioned at the cell Some partitions are presented as filesystems The rest are used for ASM diskgroups All these disks/partitions are presented to the compute nodes 22

Disk Presentation filesystem filesystem Cell Node 23

Command Components Compute Nodes Storage Cell Linux Commands vmstat, mpstat, fdisk, etc. ASM Commands SQL*Plus, ASMCMD, ASMCA Database Commands startup, alter database, etc. Clusterware Commands CRSCTL, SRVCTL, etc. Linux Commands vmstat, mpstat, fdisk, etc. CellCLI command line tool to manage the Cell 5-part Linux Commands article series http://bit.ly/k4mkqs 4-part Exadata Command Reference article series http://bit.ly/lljfl0 24

Administration Skills Skill Needed System Administrator 15% Storage Administrator 0% Network Administrator 5% Database Administrator 60% Cell Administration 20% DBA Sys Admin Network Admin Cell Admin 25

One Cluster? One Cluster QA1 QA2 QA3 Prod1 Prod2 Prod3 Dev1 Int1 QA1 QA2 Prod4 Prod1 Prod2 Prod3 Dev1 Int1 QA1 QA2 QA3 Prod1 Prod2 Prod3 Dev1 Int1 Dev2 26

Many Clusters? QA Cluster Prod Cluster Dev Int QA1 QA2 QA3 Prod1 Prod2 Prod3 Dev1 Int1 QA Cluster Prod Cluster Dev Int 27

Disk Failures Datafile block1 Cell 1 Cell 2 block1 block1 28

Disk Failures Datafile block1 Cell 1 Cell 2 Cell 3 block1 block1 block1 High Redundancy 29

Playing Nice Database Resource Manager I/O Resource Manager Cell Fencing QA Prod Compute Nodes Storage Cells 30

Divide and Conquer Database DBA Machine System Admin Network Network Admin Storage?? DBA Sys Admin Network Admin Cell Admin 31

Combined Skills Database Machine Network New Role Database Machine Administrator (DMA) Storage DBA Sys Admin Network Admin Cell Admin 32

Other Questions Q: Do clients have to connect using Infiniband? A: No; Ethernet is also available Q: How do you back it up? A: Normal RMAN Backup, just like an Oracle Database Q: How do you create DR? A: Data Guard is the only solution Q: Can I install any other software? A: Nothing on Cells. On nodes yes Q: How do I monitor it? A: Enterprise Manager, CellCLI, SQL Commands 33

Backup and DR No SAN connectivity Only NAS Exadata Infiniband Tape, Disk Pool DR Infiniband No Storage Level Replication Only Data Guard Backup Supplemental Logging Device Force Logging http://www.oracle.com/technetwork/database/features/availa bility/maa-wp-dr-dbm-130065.pdf Golden Gate 34

ETL and Reporting OLTP Informatica Exadata Infiniband Golden Gate MicroStrategy Exalytics 35

Overall Activities Physical Aspects Delivery, power, network components, etc. Layout Planning Installation and Configuration Data Migration Administration Who manages it Backup and Disaster Recovery Application Development 36

Power Delivery Units Over or Under the unit Power Requirement Single-Phase Low Voltage Americas / Japan / Taiwan) Single-Phase High Voltage (EMEA & APAC (excluding Japan / Taiwan) Three-Phase Low Voltage (Americas / Japan / Taiwan) Three-Phase High Voltage (EMEA & APAC (excluding Japan / Taiwan) 37

Network Ports NET0 Admin Interface NET1, NET2 Network Access to Nodes NET3 IB Backup Network Infiniband Network IP Addr: Qtr Rack: 5; Half Rack: 11; Full rack: 22 38

Installation Activities 1. Configuration Worksheet 2. Pre-delivery Survey 3. Generate config files 4. Run checkip.sh 5. Power on and validate components 6. Configure KVM 7. Configure IB 8. Configure Cisco Switch ACS Oracle HW 39

Installation, contd. 9. Configure IP to PDUs 10. Validate Storage Cells 11. Validate Compute Nodes 12. Config files from USB 13. Firstboot and applyconfig.sh 14. Stage Oracle Software on Node 1 15. Run OneCommand Oracle HW ACS 40

Summary Exadata is an Oracle Database running 11.2 The storage cells have added intelligence about data placement The compute nodes run Oracle DB and Grid Infra Nodes communicate with Cells using idb which can send more information on the query Smart Scan, when possible, reduces I/O at cells even for full table scans Cell is controlled by CellCLI commands DMA skills = 60% RAC DBA + 15% Linux + 20% CellCLI + 5% miscellaneous 41

Resources My Articles 5-part Linux Commands article series http://bit.ly/k4mkqs 4-part Exadata Reference article series http://bit.ly/lljfl0 OTN Page on Exadata http://www.oracle.com/technetwork/database/exadata/index. html Tutorials http://www.oracle.com/technetwork/tutorials/index.html OTN Exadata Forum https://forums.oracle.com/forums/forum.jspa?forumid=829 Exadata SIG http://www.linkedin.com/groups?home=&gid=918317 42

Thank You! My Blog: arup.blogspot.com My Tweeter: arupnanda 43