Copyright © 2009 Rolta International, Inc., All Rights Reserved Michael R. Messina, Management Consultant Rolta-TUSC, Oracle Open World 2009 (60 min) ID#:

Slides:



Advertisements
Similar presentations
Copyright © SoftTree Technologies, Inc. DB Tuning Expert.
Advertisements

Chris Ruel * Image used without permission.
<Insert Picture Here>
Exadata Distinctives Brown Bag New features for tuning Oracle database applications.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
5 Copyright © 2005, Oracle. All rights reserved. Managing Database Storage Structures.
Big Data Working with Terabytes in SQL Server Andrew Novick
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
IBM Software Group ® Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
Copyright © 2009 Rolta International, Inc., All Rights Reserved ID#: S Centralize Your Automatic Workload Repository Data for Better Analysis Michael.
Oracle Database Compression with Oracle Database 12c
Delphix User Experience
1 - Oracle Server Architecture Overview
Harvard University Oracle Database Administration Session 5 Data Storage.
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Navigating the Oracle Backup Maze Robert Spurzem Senior Product Marketing Manager
Simplify your Job – Automatic Storage Management Angelo Session id:
© 2009 Oracle Corporation. S : Slash Storage Costs with Oracle Automatic Storage Management Ara Vagharshakian ASM Product Manager – Oracle Product.
Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1 Preview of Oracle Database 12 c In-Memory Option Thomas Kyte
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1  MyOnlineITCourses.com 1 MyOnlineITCourses.com Oracle Partitioning -- A Primer.
CHAPTER 11 Large Objects. Need for Large Objects Data type to store objects that contain large amount of text, log, image, video, or audio data. Most.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Database Storage Considerations Adam Backman White Star Software DB-05:
Cloud Computing Lecture Column Store – alternative organization for big relational data.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
IT The Relational DBMS Section 06. Relational Database Theory Physical Database Design.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
Database Technical Session By: Prof. Adarsh Patel.
1 Oracle Database 11g – Flashback Data Archive. 2 Data History and Retention Data retention and change control requirements are growing Regulatory oversight.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
1 Robert Wijnbelt Health Check your Database A Performance Tuning Methodology.
Physical Database Design & Performance. Optimizing for Query Performance For DBs with high retrieval traffic as compared to maintenance traffic, optimizing.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
March 19981© Dennis Adams Associates Tuning Oracle: Key Considerations Dennis Adams 25 March 1998.
September 2011Copyright 2011 Teradata Corporation1 Teradata Columnar.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
Architecture Rajesh. Components of Database Engine.
Table Compression in Oracle9i R2 Plamen Zyumbyulev INSIDE OUT,, Let someone k n o w ”
Oracle Advanced Compression – Reduce Storage, Reduce Costs, Increase Performance Session: S Gregg Christman -- Senior Product Manager Vineet Marwah.
1.
The protection of the DB against intentional or unintentional threats using computer-based or non- computer-based controls. Database Security – Part 2.
Selling the Storage Edition for Oracle November 2000.
Never Down? A strategy for Sakai high availability Rob Lowden Director, System Infrastructure 12 June 2007.
Achieving Scalability, Performance and Availability on Linux with Oracle 9iR2-RAC Grant McAlister Senior Database Engineer Amazon.com Paper
Overview Managing a DHCP Database Monitoring DHCP
Mark Inman U.S. Navy (Naval Sea Logistics Center) Session #213 Analytic SQL for Beginners.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
14 Copyright © 2006, Oracle. All rights reserved. Tuning Block Space Usage.
1 Logical I/O Julian Dyke Independent Consultant Web Version juliandyke.com © 2005 Julian Dyke.
Physical Database Design Purpose- translate the logical description of data into the technical specifications for storing and retrieving data Goal - create.
Chapter 4 Logical & Physical Database Design
Infrastructure for Data Warehouses. Basics Of Data Access Data Store Machine Memory Buffer Memory Cache Data Store Buffer Bus Structure.
Senior Solutions Architect, MongoDB Inc. Massimo Brignoli #MongoDB Introduction to Sharding.
Chap 5. Disk IO Distribution Chap 6. Index Architecture Written by Yong-soon Kwon Summerized By Sungchan IDS Lab
11-Nov Distr. DB Operations workshop - November 2008 The PVSS Oracle DB Archive in ATLAS ( life cycle of the data ) Gancho Dimitrov (LBNL)
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
Introduction to Exadata X5 and X6 New Features
Exadata Distinctives 988 Bobby Durrett US Foods. What is Exadata? Complete Oracle database platform Disk storage system Unique to Exadata – intelligent.
Oracle Database Architectural Components
Oracle Storage Performance Studies
CHAPTER 5: PHYSICAL DATABASE DESIGN AND PERFORMANCE
Working with Very Large Tables Like a Pro in SQL Server 2014
Michael R. Messina, Management Consultant
Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
ISYS366, Oracle Disk Internals
Database administration
Working with Very Large Tables Like a Pro in SQL Server 2017
Presentation transcript:

Copyright © 2009 Rolta International, Inc., All Rights Reserved Michael R. Messina, Management Consultant Rolta-TUSC, Oracle Open World 2009 (60 min) ID#: S Partitioning, More Cost Savings, Better Performance, Better Management in 11g

Introduction Michael Messina Management Consultant with TUSC Background includes Performance Tuning, High Availability and Disaster Recovery Using Oracle for approximately 16 years

Audience Experience How many have utilized Partitioning and what have been some of your experiences? How many have utilized Table Compression and index compression (prior to 11g Advanced Compression) and what are your thoughts/experiences?

Goals Touch on industry challenges – Explosive Data Growth – Performance – Costs Look at 2 new Partitioning Features Introduced with 11g Examine 11g Advanced Compression and impact using 2 new partitioning features Show how Partitioning and Advanced Compression together help address some of the industry challenges

Industry Challenges Exploding Data Growth – Got to keep up Performance – Query Performance Degradation as data volumes increase – Backup time increases as data volumes increase Costs - What are the True Costs? – Disk Space Purchase / Backup / Space Management / Power / Cooling What can we do??

Exploding Data Growth If you think storing data is a challenge now, it's nothing compared to what it could be in just a few years. Data Growth of 60% is common.

Performance “Storage capacity grows at over 60% per year while performance improves at less than 10% per year. This trend has existed for over 10 years and is expected to continue for the foreseeable future. “, BNET

Releasing your Database Performance

Performance Ref Partitioning what is advertised Introduced with Oracle 11g Improves performance for parent child relationships Partitions the child with the parent Interval Partitioning what is advertised Introduced with 11g Same performance Benefits as Range partitioning

Manageability Interval Partitioning – Introduced with 11g – Defined using an interval – Works much like Range Partitioning – Partitions are created as needed eliminates need to manually add partitions. Ref Partitioning – Introduced with 11g – Simpler partition management, child partitions created automatically when parent partitions are created

True Disk Costs “The cost of managing storage hardware ranges from two to ten times the acquisition cost of the storage hardware.”, BNET ** The above costs are based on 16TB configuration. Monash University, Cost of Storage – Direct Attached vs. SAN Cost/GBGB Util Rate Real Cost per GB True Business Storage Cost DAS$9.6545%$20.27$40.54 – $ SAN FC$ %$22.21$44.42 – $ SAN SATA$6.3380%$7.60$ $76

Compression Index Compression since 8i Table Compression since 9i – No Additional License Requirement – Only for direct inserts – Compression Not Maintained with updates and normal inserts – Had to re-org table to re-compress over time. Advanced Compression 11g – Additional License Requirement – Compression Maintained with all DML activity – No re-orgs required after initial compression

Compression What can compression accomplish? – Shrink size of tables? – Shrink Size of indexes? – Improve buffer cache utilization? – Improve I/O disk visits? – Improve performance?

What can we do Reduce Size of Existing? – Can we get a 10%, 20%, 30% reduction? Reduce Size of Future Data? – Can we impact growth by 10%, 20%, 30% Minimize performance impact of larger data volumes? – Disk Space, Backup/Recovery, Server Resources Can we do all this without adding significant management overhead to the DBA?

Ref Partitioning Examine Space Impact of Partitioning – Show disk space impact partitioned and un- partitioned. Examine the true performance gain from Ref Partitioning – Demonstrate the partitioned and un- partitioned performance – Demonstrate the partitioned and compressed performance

Ref Partitioning – Un-Partitioned Table Size ORDERS (78880 rows) SUM(BYTES)/ ORDER_ITEMS ( rows) SUM(BYTES)/

Ref Partitioning Impact on Table Sizes ORDERS (78880 rows) SUM(BYTES)/ ORDER_ITEMS ( rows) SUM(BYTES)/ * Surprisingly we see the child table size reduced

Ref - Non Partitioned Table Performance SELECT o.order_date, sum(oi.unit_price*oi.quantity) order_total FROM oe.orders o, oe.order_items oi WHERE o.order_date BETWEEN TO_DATE('01-APR- 1999','DD-MON-YYYY') AND TO_DATE('30-JUN- 1999','DD-MON-YYYY') AND o.order_id = oi.order_id GROUP BY order_date ORDER BY order_date ;.. 16 rows selected. Elapsed: 00:00:00.93

Ref - Non Partitioned Table Performance Statistics recursive calls 0 db block gets 1967 consistent gets 1964 physical reads 0 redo size 970 bytes sent via SQL*Net to client 427 bytes received via SQL*Net from client 3 SQL*Net roundtrips to/from client 1 sorts (memory) 0 sorts (disk) 16 rows processed

Ref Partitioning Impact SELECT o.order_date, sum(oi.unit_price*oi.quantity) order_total FROM oe.orders o, oe.order_items oi WHERE o.order_date BETWEEN TO_DATE('01- APR-1999','DD-MON-YYYY') AND TO_DATE('30-JUN- 1999','DD-MON-YYYY') AND o.order_id = oi.order_id GROUP BY order_date ORDER BY order_date ;.. 16 rows selected. Elapsed: 00:00:00.57 *.93 to.57 / 38% Improvement

Ref Partitioning Impact Statistics recursive calls 0 db block gets 1630 consistent gets 1621 physical reads 0 redo size 896 bytes sent via SQL*Net to client 427 bytes received via SQL*Net from client 3 SQL*Net roundtrips to/from client 1 sorts (memory) 0 sorts (disk) 16 rows processed * PIO - from 1967 to 1630 / 17% Improvement LIO – from 1964 to 1621 / 17% Improvement

Interval Partitioning Examine Space Impact of Partitioning – Show disk space impact partitioned and un- partitioned. Examine the true performance gain from Interval Partitioning – Demonstrate the partitioned and un- partitioned performance – Demonstrate the partitioned and compressed performance

Interval - Non-Partitioned Table Size Un-Partitioned Table 889,888 Rows SUM(BYTES)/

Interval Partitioning Impact on Table Size Partitioned Table 889,888 Rows SUM(BYTES)/ * 45M to 58M represents and increase in size when table is partitioned.

Interval - Non Partitioned Table Performance Un-Partitioned Table 889,888 Rows SQL> select deptno, avg(sal) from emp where hiredate between to_date('01-JAN-1982', 'DD- MON-YYYY') and to_date('01-JAN-1983', 'DD-MON-YYYY') group by deptno ;.. Elapsed: 00:00:03.37

Interval - Non Partitioned Table Statistics Statistics recursive calls 0 db block gets 5548 consistent gets 5674 physical reads 0 redo size 546 bytes sent via SQL*Net to client 416 bytes received via SQL*Net from client 2 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 3 rows processed

Interval Partitioning Impact Partitioned Table 889,888 Rows SQL> select deptno, avg(sal) from emp_part where hiredate between to_date('01-JAN-1982', 'DD-MON-YYYY') and to_date('01-JAN- 1983', 'DD-MON-YYYY') group by deptno ;.. Elapsed: 00:00:01.57 * 3.37 to 1.57 / 53% Improvement

Interval Partitioning Impact Statistics recursive calls 0 db block gets 658 consistent gets 652 physical reads 0 redo size 546 bytes sent via SQL*Net to client 416 bytes received via SQL*Net from client 2 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 3 rows processed * LIO – 5548 to 658 / 88% Improvement PIO – 5674 to 653 / 88% Improvement

Accomplished With Partitioning Positive – Reduced logical I/O – Reduced Physical I/O – Improved elapse time Negative – Increased the size of the table

Impact of Compression on Size of Ref-Partitioned Tables ORDERS (78880 rows) SUM(BYTES)/ * 8% reduction over partitioned table 5% increase on Original table. ORDER_ITEMS ( rows) SUM(BYTES)/ * 29% reduction over partitioned table 17% reduction over Original table

Impact of Ref Partitioning and Compression Together Elapsed: 00:00:00.43 Statistics recursive calls 0 db block gets 413 consistent gets 407 physical reads 0 redo size 896 bytes sent via SQL*Net to client 427 bytes received via SQL*Net from client 3 SQL*Net roundtrips to/from client 1 sorts (memory) 0 sorts (disk) 16 rows processed *.43 seconds - 53% improvement to original / 24% improvement partitioned un-compressed

Impact of Compression on Size of Interval Partitioned Table Partitioned Table 889,888 Rows SUM(BYTES)/ * 39% reduction on partition and uncompressed table 13% reduction from original table

Impact of Interval Partitioning and Compression Together Elapsed: 00:00:00.59 Statistics recursive calls 0 db block gets 373 consistent gets 367 physical reads 0 redo size 546 bytes sent via SQL*Net to client 416 bytes received via SQL*Net from client 2 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 3 rows processed * PIO - Original 5548 to 373 a 93% Imprv. Partitioned 658 to 373 a 43% Imprv. LIO - Original 5677 to 367 a 93% Imprv. Partitioned 653 to 367 a 43% Imprv.

Partitioning and Compression Summary What can partitioning accomplish – Improve Performance Break large table into chunks reducing I/O – Minimize Management Cost Utilize interval and Ref partitioning where new partitions are created automatically. Manage though individual Partitions adding flexibility for Table and index Management – Improve Database backup Performance Mark tablespaces holding older Data partitions Read-Only as it eliminates the need to backup with each full backup of the database.

Partitioning and Compression Summary What Can Compression Accomplish? – Reduce Disk Space Costs Compress partitioned tables reducing the size of tables – Improve Performance Compress tables to reduce I/O read operations

Partitioning Conclusions Partitioning can improve I/O utilization Partitioning can improve performance Partitioning increases space utilization Compression reduces space utilization Compression can improve performance Compression with partitioning can improve performance more then either of them alone and can reduce space utilization. Interval Partitioning and Ref Partitioning reduces maintenance impact for partitioning

Questions/Discussion THANK YOU