Aspekte der DB2 Administration



Similar documents
IBM DB2: LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

The Self-Tuning Memory Manager (STMM): A Technical White Paper. Authors: Christian Garcia-Arellano Adam Storm Colin Taylor

Active/Active DB2 Clusters for HA and Scalability

Eliminate SQL Server Downtime Even for maintenance

SQL Server Training Course Content

Oracle Database 12c: Performance Management and Tuning NEW

CL492RU: DB2 9 for LUW Advanced Database Recovery Training CL492RU: DB2 9 for LUW Advanced Database Recovery Training

Module 14: Scalability and High Availability

DB2 Database Layout and Configuration for SAP NetWeaver based Systems

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

ORACLE DATABASE 10G ENTERPRISE EDITION

Oracle Database 10g: New Features for Administrators

Key Attributes for Analytics in an IBM i environment

1. This lesson introduces the Performance Tuning course objectives and agenda

High Availability Databases based on Oracle 10g RAC on Linux

<Insert Picture Here> Oracle Database Directions Fred Louis Principal Sales Consultant Ohio Valley Region

Appendix A Core Concepts in SQL Server High Availability and Replication

Explain how to prepare the hardware and other resources necessary to install SQL Server. Install SQL Server. Manage and configure SQL Server.

EMC Greenplum. Big Data meets Big Integration. Wolfgang Disselhoff Sr. Technology Architect, Greenplum. André Münger Sr. Account Manager, Greenplum

Oracle Database 11g: New Features for Administrators

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

SQL Server 2014 New Features/In- Memory Store. Juergen Thomas Microsoft Corporation

Ultimate Guide to Oracle Storage

DEPLOYING IBM DB2 FOR LINUX, UNIX, AND WINDOWS DATA WAREHOUSES ON EMC STORAGE ARRAYS

Oracle Database 11g: Performance Tuning DBA Release 2

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

Mind Q Systems Private Limited

Oracle Database Public Cloud Services

CommVault Simpana 7.0 Software Suite. und ORACLE Momentaufnahme. Robert Romanski Channel SE

ICONICS Choosing the Correct Edition of MS SQL Server

Tips and Tricks for Using Oracle TimesTen In-Memory Database in the Application Tier

SQL Server 2012 Database Administration With AlwaysOn & Clustering Techniques

Maintaining a Microsoft SQL Server 2008 Database

<Insert Picture Here> Oracle In-Memory Database Cache Overview

Affordable, Scalable, Reliable OLTP in a Cloud and Big Data World: IBM DB2 purescale

Microsoft SQL Database Administrator Certification

Performance and scalability of a large OLTP workload

HP ProLiant BL660c Gen9 and Microsoft SQL Server 2014 technical brief

Upgrading to DB2 9.5 for Linux, UNIX, and Windows

Oracle DBA Course Contents

HA / DR Jargon Buster High Availability / Disaster Recovery

DB2 z/os Data Sharing

High Availability for Databases Protecting DB2 Databases with Veritas Cluster Server

Oracle Database 10g: Backup and Recovery 1-2

Veritas Cluster Server from Symantec

The Ultimate Remote Database Administration Tool for Oracle, SQL Server and DB2 UDB

EMC Business Continuity for Microsoft SQL Server Enabled by SQL DB Mirroring Celerra Unified Storage Platforms Using iscsi

Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills Course 6317A: Three days; Instructor-Led

Configuring and Administering Hyper-V in Windows Server 2012 MOC 55021

Rackspace Cloud Databases and Container-based Virtualization

Safe Harbor Statement

Application Continuity with BMC Control-M Workload Automation: Disaster Recovery and High Availability Primer

Ecomm Enterprise High Availability Solution. Ecomm Enterprise High Availability Solution (EEHAS) Page 1 of 7

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

MySQL Administration and Management Essentials

IBM TSM DISASTER RECOVERY BEST PRACTICES WITH EMC DATA DOMAIN DEDUPLICATION STORAGE

Many DBA s are being required to support multiple DBMS s on multiple platforms. Many IT shops today are running a combination of Oracle and DB2 which

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

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

Oracle Database 10g. Page # The Self-Managing Database. Agenda. Benoit Dageville Oracle Corporation benoit.dageville@oracle.com

MySQL Enterprise Backup

Enterprise and Standard Feature Compare

A Practical Guide to Backup and Recovery of IBM DB2 for Linux, UNIX and Windows in SAP Environments Part 1 Backup and Recovery Overview

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Who is my SAP HANA DBA? What can I expect from her/him? HANA DBA Role & Responsibility. Rajesh Gupta, Deloitte. Consulting September 24, 2015

IBM System Storage DS5020 Express

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

Server 2008 SQL. Administration in Action ROD COLLEDGE MANNING. Greenwich. (74 w. long.)

Running Highly Available, High Performance Databases in a SAN-Free Environment

Availability Guide for Deploying SQL Server on VMware vsphere. August 2009

ORACLE DATABASE ADMINISTRATOR RESUME

Course Outline: Course 6317: Upgrading Your SQL Server 2000 Database Administration (DBA) Skills to SQL Server 2008 DBA Skills

OpenAdmin Tool for Informix (OAT) October 2012

IBM DB2 specific SAP NetWeaver Business Warehouse Near-Line Storage Solution

SAP HANA Operation Expert Summit BUILD - High Availability & Disaster Recovery

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - Performance Tuning DBA Release 2. 5 Jours [35 Heures]

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

Streamline SAP HANA with Nearline Storage Solutions by PBS and IBM Elke Hartmann-Bakan, IBM Germany Dr. Klaus Zimmer, PBS Software DMM127

Oracle vs. SQL Server. Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012

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

Oracle 11g Database Administration

EMC Unified Storage for Microsoft SQL Server 2008

6231A - Maintaining a Microsoft SQL Server 2008 Database

Database High Availability. Solutions 2010

Symantec Storage Foundation High Availability for Windows

Netezza and Business Analytics Synergy

Oracle 11g DBA Training Course Content

Tushar Joshi Turtle Networks Ltd

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

Contents. SnapComms Data Protection Recommendations

Introduction 1 Performance on Hosted Server 1. Benchmarks 2. System Requirements 7 Load Balancing 7

Schöll MOC Installing and Configuring Windows Server 2012

Eloquence Training What s new in Eloquence B.08.00

Transcription:

Aspekte der DB2 Administration Manfred Päßler, IBM SW-Group manfred.paessler@de.ibm.com Uni Jena den 9.6.06 2005 IBM Corporation

Agenda Probleme eines Admins Möglichkeiten mit DB2 Boardmitteln (V8) Speicherautomation in DB2 Viper (self tuning memory management) Zukaufbare Tools von IBM

Die Sorgen eines DB Admins... Laufen alle Anwendungen, die sich auf meine Datenbanken stützen, ok? Kann ich den Status dokumentieren? Wie löse ich das Problem????? Oder kann die Datenbank selbst etwas lösen??? Habe ich für Datencrashs genügend vorgesorgt (->Backups) Kann ich schnell genug einen möglichst zeitnahen Zustand wieder herstellen (->Recovery)? Schaffe ich Aufräumarbeiten (runststats, reorgs) in dem schmalen Wartungsfenster? Was für Auswirkungen haben zusätzliche Anwendungen X, Y auf meine Datenbanken (Plattenplatz, Performance, Hauptspeicher)? Werde ich immer rechtzeitig informiert (möglichst schon so früh, dass ich gegensteuern kann)?

Welche Tools kommen mit DB2? Minimierung von Ausfallzeiten Benutzungsergonomie Monitoring Autonomic Computing

Minimierung von geplanten Ausfallzeiten System Maintenance - Online & Incremental Backup - Online Index create and reorg - Online Table reorg - Flash Copy Support (split/mirror backup) - Partition- & Tablespace-level backup DB/System Changes - Dynamic Space Management - Software upgrades - Schema changes ( enhanced alter table in Viper) Data Changes - Guaranteed Clustering (MDC) - Self-Throttling Utilities - Self Managing and Resource Tuning (SMART 1)) - Self Tuning Memory Management (SMART 2 in Viper)

Minimierung von ungeplanten Ausfallzeiten System Failure - Cluster Failover Support - Stand-by Database - Log mirroring - Fast Recovery (e.g. parallel restore) - Built-in redundancy / can't be turned off Consistency bits Automatic mirroring of critical data files Human/Application Errors PIT Point in Time Recovery Dropped table recovery Unlimited active log space Disaster Recovery Replication Log shipping HADR

Beispiel: HA on Linux with DB V8.1 2 x 2.4GHz Intel XEON 2GB RAM DB2 V8.1 SUSE 8.1 Professional QLogic Fibre Channel Host Adapter IBM Total Storage FAStT700 456GB total storage Active Heartbeat software from the High Availability Linux Project xseries 335 QLogic Fibre Channel Host Adapter Idle Standby xseries 335

High Availability Results 1M Subscribers: 4000 3500 3000 2500 2000 1500 1000 500 80% read 20% write 9s failover Throughput - txn/sec 0 0 200 400 600 800 1000 1200 1400 160 0 1800 2000 2200 2400 2600 2800 3000 3200 3400 3600 3800 4000 4200 4400 4600 4800 5000 5200 5400 5600 5800 6000 6200 6400 6600 6800 7000 7200 7400 7600 7800 8000 8200 8400 8600 8800 9000 9200 9400 9600 Time, secs Estimated Availability/year: 99.999% (30 unplanned outages)

DB2 Highlight: HADR HADR für 24x7h Betrieb Mit HADR kann ein Rechner sehr schnell bei einem Ausfall von einem anderen Rechner übernommen werden, mit NULL Daten und Transaktionsverlusten! Geht der primary Rechner wieder online, erfolgt automatisch eine Re-Syncronisierung (im Unterschied z.b. von Oracle s RAC!!!). Client Re-Routing findet den Secondary Server automatisch. Übernahmezeit (Entdecken des Ausfalls des Primary, Umschalten auf Secondary, bereinigen der Logs, betriebsbereit) <15 sek. SW-Wartung (Aufspielen neuer Patches OS+DB) im laufenden Betrieb möglich! HTTP & App.

Benutzungsergonomie Information Center Automatic Computing Design Advisor Renaming tables and tablespaces Restoring to different code page PIT to local time Multiple Fixpaks (for all OSs in Viper)

Design Advisor SQL Workload System information Index Advisor MQT Advisor MDC Advisor Partitioning Advisor Combined Advisor DB2 Optimizer Database Structure Indexes/MQTs/MDCs Designed by DB2 for YOUR Environment

Design Advisor Preliminary Results Relative Workload execution tim e 120% 100% 80% 60% 40% 20% 0% Baseline Performance improvement New design 84.54% time reduction 6.46x faster DB2 Design Advisor Recommendation summary: 20 new indexes 6 new MDC dimensions 4 new partitioning keys 2 new MQTs Environment: BI workload in 4 Logical Partitions running on AIX in a 8 CPUs System

Monitoring snapshot and event monitor table functions (#32) select * from table(snapshot_database('db2ii', -1)) as t update monitor switches using statement on; select total_usr_cpu_time as totuser, total_sys_cpu_time as totsys, total_exec_time as totexec, substr(stmt_text,1,100)as stmt_txt from table (snapshot_dyn_sql('db2ii',-1)) as stmts order by totexec desc; Health Monitor Activity Monitor

Self Tuning Memory Management in Viper Don t care about memory tuning 2005 IBM Corporation

DB2 s database memory model shared memory All memory heaps are contained within the database shared memory set On non-windows (except 64-bit AIX) platforms the set memory is all allocated at database startup and can not grow beyond its allocated size On Windows and 64bit AIX the memory is allocated at startup but can grow or shrink as needed On 32 bit platforms set size is limited On 64 bit platforms set size virtually unlimited

Memory tuning in version 8 In version 8 the best memory tuning technique is to use the configuration advisor autoconfigure CLP command Sets all important memory parameters Tunes most workloads very well With OLTP workloads it can tune as well as performance experts Considerations with the advisor results Configuration is static If workload changes over time configuration may become out of date Configuration is dependant on DBA description of workload If workload isn t as described, configuration may be less than optimal

Memory Tuning in Viper - STMM Viper will introduce a revolutionary memory tuning system called the Self Tuning Memory Manager (STMM) Works on main database memory parameters Sort, locklist, package cache, buffer pools, and total database memory Hands-off online memory tuning Requires no DBA intervention Senses the underlying workload and tunes the memory based on need Can adapt quickly to workload shifts that require memory redistribution Adapts tuning frequency based on workload Is able to tune multiple databases and instances on the same box at the same time Works in non-partitioned and in partitioned (DPF) environments (but all partitions have to be configured similar)

STMM and the buffer pools Trades memory between buffer pools based on relative need New metrics determine where memory is most needed such that total system time is reduced Zero, one or more buffer pools can be set to AUTOMATIC In newly created Viper databases, all buffer pools default to Decreasing the buffer pools can take a lot of time Must write out all dirty pages in memory being freed If pages are in use the resize may wait on locks A large percentage of tuning time could be spent on alter buffer pools Not necessarily a concern, just something to keep in mind STMM can be set off individually for each bufferpool

STMM and DATABASE_MEMORY STMM tunes DATABASE_MEMORY if it is set to AUTOMATIC or a numeric value If set to AUTOMATIC (use it in AIX and Windows only), memory is taken from, and returned to, the OS if required by the database DBA need not know how much memory to allocate to DB2 This is the default for newly created Viper databases If set to a numeric value, memory is given to AUTOMATIC heaps up to the numeric value Allows DBA to set total memory consumption for the database DB2 will then distribute the memory to optimize performance If set to COMPUTED, no DATABASE_MEMORY tuning will occur When database starts, memory requirements are computed based on the heap configuration Once the database starts, the database shared memory set is allocated based on the computation Version 8 AUTOMATIC behavior

Scenarios where STMM shines Bufferpool Tuning Difficult to tune memory when there are multiple buffer pools Works so well that STMM is being used to tune benchmark systems in house Varying workloads Periods with high transaction throughput Periods with long running transactions or online utilities Unknown memory requirements Tunes quickly enough to bring production systems from out of the box configuration to optimal in an hour or less Performs several weeks of manual (trial and error) tuning every hour Will stop tuning automatically when it reaches optimal configuration

STMM in action Against default and benchmark configurations 70000 60000 63302 63796 50000 Transactions Per Minute 40000 30000 20000 16713 10000 0 Default (No tuning) Benchmark Tuned STMM Tuned Configuration

STMM in action Dropping an important index 10 agents executing queries with order by clause At first, queries use indexes to avoid sorting After several iterations some of the indexes are dropped Simulates DBA error in dropping vital indexes Lack of indexes forces sorts to be performed Dramatically increases the demand on the sort memory With only manual tuning, workload will likely get much slower STMM should be able to alleviate some of the burden

STMM in action Dropping an important index TPCH Query 21 - After drop index - Average times for the 10 streams 7000 6000 5000 Time in seconds 4000 3000 2000 1000 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 Order of execution

Ergänzen der mitgelieferten DB2 Funktionalitäten mit Tools Kontinuierliches Überwachen mit Historisierung Erkennen von Trends Dokumentieren des Systemzustandes Mehr Hilfen, was zu tun ist Rücksetzen von kleinen Datenveränderungen Schnelles Kopieren von Daten auch aus Offline-Medien...

DB2 Tools - Overview DB2 Performance Expert DB2 Recovery Expert DB2 High Performance Unload DB2 Table Editor DB2 Test Database Generator DB2 Web Query Tool Monitoring and Tuning of multible DB2 Systems from one common GUI FAST and intelligent Recovery of Databases/Tablespaces/Tables Recovery of Database/Tablespace/Table into other DB2 database FAST unload of Database/TS/Table data into various formats. Unloads from backups also Rapid programming of form based DB2 applications (running on Windows or browser) Easy editing of DB2 Data Generate Test Data On Demand Quering and delivering DB2 (MP and z/os) data from internet browser. Database Workbench for DB2 on the net

Learn more DB2 Viper http://ibm.com/db2/viper DB2 UDB Homesite http://www-306.ibm.com/software/data/db2/udb/ A look at the new functions in DB2 Universal Database V8.2 http://www-128.ibm.com/developerworks/db2/library/techarticle/dm- 0404zikopoulos/index.html DB2 UDB Version 8.2 and autonomic computing http://www-128.ibm.com/developerworks/db2/library/techarticle/dm- 0406zikopoulos/index.html An Overview of High Availability and Disaster Recovery for DB2 UDB http://www-128.ibm.com/developerworks/db2/library/techarticle/0304wright/0304wright.html Automating DB2 HADR Failover on Linux using Tivoli System Automation ftp://ftp.software.ibm.com/software/data/db2/linux/tsa_hadr.pdf Delivering Ten Second Failover for High Volume Transactional Telco Applications with IBM DB2 Universal Delivering Ten Second Failover for High Volume Transactional Telco ftp://ftp.software.ibm.com/software/data/pubs/papers/10sfailover.pdf

Learn More (cont..) DM Tools Homepage http://www.ibm.com/software/data/tools DB2 Performance Expert for z/os V2 http://www.redbooks.ibm.com/abstracts/sg246867.html?open DB2 Performance Expert for MP http://www.redbooks.ibm.com/abstracts/sg246470.html?open Simplify Performance Management and tuning with DB2 Performance Expert, Part I+II http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0409schuetz/ http://www-128.ibm.com/developerworks/db2/library/techarticle/dm- 0409schuetz2/index.html Web Query Tool V1.2, SG24-6832-00 http://www.redbooks.ibm.com/abstracts/sg246832.html?open DB2 Table Editor Tool Version 4.2, SG24-6833-00 http://www.redbooks.ibm.com/abstracts/sg246833.html?open DB2 Recovery Expert for Multi Platform, SG24-6421-00 http://www.redbooks.ibm.com/abstracts/sg246421.html?open DB2 Test Database Generator http://www-306.ibm.com/software/data/db2imstools/db2tools/db2tdbg/