An Index's Guide to the Universe

Size: px
Start display at page:

Download "An Index's Guide to the Universe"

Transcription

1 An Index's Guide to the Universe Brad Price Werner Enterprises Session Code: D12 Thu, May 02, 2013 (03:30 PM -04:30 PM) Platform: DB2 LUW An Index's Guide to the Universe Brad Price Werner Enterprises Session Code: D12 Thu, May 02, 2013 (03:30 PM -04:30 PM) Platform: DB2 LUW

2 3 Agenda Indexes 101 -the basics Important Index info in the catalog Index considerations when tuning Special Commands related to Indexes Index Potpourri for $500, Alex 4 Why Do We Need Indexes?? Performance improvement Reducing I/O to find desired rows Avoiding sorts Enforce Uniqueness Support a Primary Key definition Make the DBA look like a hero!! If you don t find it in the index, look very carefully through the entire catalogue. - Sears, Roebuck and Co., Consumer s Guide, 1897

3 5 What Does an Index Look Like? B-tree structure Leaf pages and non-leaf pages One or more columns An index with more than one column is called a composite index Unique or non-unique 6 How Does an Index Work?? Navigate the b-tree structure to the appropriate leaf pages The leaf page stores the RID (Row Identifier) that points to the physical location in the table for the row The DBMS then requests a read of the pagecontaining the requested row(s) of data (Pssst this isn t free!!!)

4 7 B+ Tree Structure (unique IX) E N Z Root page(s) B E F L N T U Z Non-leaf pages F,rid G,rid I,rid K,rid L,rid M,rid N,rid Leaf pages 8 What Makes a Good Index?? Columns that have high cardinality What is the cardinality of a flag column with Y and N? From left to right, build the index with: 1. Columns used in local equal predicates or Columns used as join predicates (if this is inner table of join) Where city = OMAHA Where a.city = b.city 2. Columns used as local range predicates Where age > Columns used as join to other tables (if this is the outer tableof join) Where a.city = b.city 4. Columns in the select clause Index-only access

5 9 What Makes a Good Index?? Select col_a, col_b, col_c From edw.tractor_history Where pk_tractor_nb = and pk_tractor_change_ts > Two possible indexes pk_tractor_nb, pk_tractor_change_ts desc pk_tractor_nb, pk_tractor_change_ts desc, col_a, col_b, col_c What about this index? col_a, col_b, col_c, pk_tractor_nb, pk_tractor_change_ts desc 10 Index Only access If all of the columns referenced in a query are in the index there is no need to access the data portion of the table. Very fast read performance Increasing penalty for insert/update/delete operations as more columns are added Indexes can become very large and less desirable for the dbms to use Index Only can break if additional columns are added to query Use this sparingly.

6 11 What Makes a Good Index?? Select col_a, col_b, col_c,col_d From edw.tractor_history Where pk_tractor_nb = and pk_tractor_change_ts > Two possible indexes pk_tractor_nb, pk_tractor_change_ts desc pk_tractor_nb, pk_tractor_change_ts desc, col_a, col_b, col_c Do we still have index only access? 12 Can an Index Have Too Many Columns?? YES!! Makes an index much bigger and less likely to be used by other queries Brad s rule-of-thumb is start with three columns or less If a query is super-critical and runs frequently, then consider additional columns to facilitate index only access

7 13 Can a Table Have Too Many Indexes?? YES!! Every index must be updated whenever there is an Insert/Delete Updates to columns in indexes require updating both table and index Indexes are included in backups Indexes are rebuilt during loads/reorgs Indexes are scanned during DB2 Runstats operations Use with sampled detailed indexes to reduce index I/O on Runstats 14 What Is The Right Number of Indexes for a Table?? In OLTP, where access patterns are somewhat predictable, most tables should do quite well with 5 indexes or less Exceptions abound however In Data Warehouse, where the access patterns are much more varied, you can see larger numbers of indexes How to identify and remove unused indexes Monitor index scans using db2pd tcbstats index or mon_get_index Lastused column in syscat.indexes How long should something be unused before you get rid of it????

8 15 What is a Clustering Index?? One, and only one, index that defines the physical order of rowson a table DBMS attemptsto insert new rows based upon the clustering index Over time, clustering degrades and requires a reorg to re-order the rows Significant performance improvements for queries that need groups of similar rows or that process rows in a certain order i.e. all rows for a given date range 16 Regular non-clustering indexes Index On Region Table Index on Year

9 Clustering Index 17 Clustering Index On Region Table Index on Year 18 Why are reads faster when a table is clustered?? The first I/O reads a page into memory which contains many rows with the same key or a range of key values Example: App needs 500 rows for a given region. If the DBMS knows that it will need to fetch several or many consecutive pages, then it can begin prefetching extents (multiple pages) into memory before application needs it 18 IOs vs 3 IOs vs 1 IO

10 19 Agenda Indexes 101 -the basics Important Index info in the catalog Index considerations when tuning Special Commands related to Indexes Index PotPourri for $500, Alex 20 Important Index Info in the Catalog select substr(indname,1,20) indname, substr(colnames,1,50) colnames, firstkeycard, fullkeycard from syscat.indexes where tabname = 'TRACTOR_HISTORY'; INDNAME COLNAMES FIRSTKEYCARD FULLKEYCARD TRC_HIST_IX1 -DSTAGE_IDENTITY_NB TRACTOR_HIST_IX1 +TRACTOR_HISTORY_TYPE_CD+PK_TRACTOR_CHANGE_TS+COST TRACTOR_HIST_IX2 +PK_TRACTOR_CHANGE_TS+PK_TRACTOR_NB+TRACTOR_HISTOR TRACTOR_HIST_IX3 +PK_TRACTOR_CHANGE_TS+DRIVER_EMPLOYEE_NB TRACTOR_HIST_IX4 +PK_TRACTOR_CHANGE_TS+TRACTOR_DRIVER2_NB TRACTOR_HIST_IX5 +PK_TRACTOR_NB-PK_TRACTOR_CHANGE_TS+TRACTOR_HISTOR TRACTOR_HIST_IX6 +TRACTOR_DRIVER2_NB+PK_TRACTOR_CHANGE_TS TRACTOR_HIST_IX7 +DRIVER_EMPLOYEE_NB+PK_TRACTOR_CHANGE_TS Some more columns: FULLKEYCARD CLUSTERRATIO CLUSTERFACTOR SEQUENTIAL_PAGES CREATE_TIME STATS_TIME REVERSE_SCANS DENSITY IID NLEAF NLEVELS FIRSTKEYCARD FIRST2KEYCARD FIRST3KEYCARD FIRST4KEYCARD

11 21 Index Cardinality Columns in the Catalog select substr(indname,1,20) indname, firstkeycard, first2keycard, first3keycard, first4keycard, fullkeycard from syscat.indexes where tabname = 'TRACTOR_HISTORY'; INDNAME FIRSTKEYCARD FIRST2KEYCARD FIRST3KEYCARD FIRST4KEYCARD FULLKEYCARD TRACTOR_HIST_IX TRACTOR_HIST_IX TRACTOR_HIST_IX TRACTOR_HIST_IX TRACTOR_HIST_IX TRACTOR_HIST_IX TRACTOR_HIST_IX TRACTOR_HIST_IX TRC_HIST_IX Density is Important If Density is low Tend to have more physical index IO Indicates a need to reorg index Procedure sysproc.reorgchk_ix_stats (and tb_stats) CALL SYSPROC.REORGCHK_IX_STATS('T','MAPW.ADDRESS')

12 23 Agenda Indexes 101 -the basics Important Index info in the catalog Index considerations when tuning Special Commands related to Indexes Index PotPourri for $500, Alex 24 Monitor Logical Data Reads and Logical Index Reads to Look for Indexing Opportunities Use db2 get snapshot for application or db2batch with -o p 3 If Logical Data Reads are high track down which tables are causing the high reads and design appropriate index If Logical Index Reads are high, look for high IO cost on Explain Could be caused by a non-matching index scan Jump Scans will help on this in v10 Can also be caused by an inappropriate NLJoin doing high numbersof index seeks Buffer pool data logical reads = Buffer pool data physical reads = Buffer pool temporary data logical reads = 5800 Buffer pool temporary data physical reads = 9 Buffer pool data writes = 0 Buffer pool index logical reads = Buffer pool index physical reads = 20693

13 25 Is This a Good Query? select * from edw.freight_bill where billing_invoice_nb = ' ' Returns 112 rows Select colnames from syscat.indexes where tabname = 'FREIGHT_BILL' COLNAMES PK_FREIGHT_BILL_NB+PK_TRIP_ID -DSTAGE_IDENTITY_NB +RECORD_UPDATE_TS +PK_TRIP_ID+RECORD_DELETE_FG+AMOUNT_PAID_ON_BILL_AM+TOTAL_CHARGE_AM+PK_FREIGHT_BILL_NB +RECORD_DELETE_FG-BILLING_INVOICE_NB 26 Poor Man s Way to Find Hot Tables Needing Indexes Works best on a low activity system Great for finding problem tables in monster queries From clp: 1. db2 reset monitor all 2. Start query 3. Repeatedly issue: db2 get snapshot for tables on db grep e Table Name e Rows Read Or: 1. Select tabname, rows_read from TABLE(MON_GET_TABLE('','',-2)) AS t where tabname in ( TAB1, TAB2, ) 2. Run query The tables in your query 3. Run step1 again and compare differences of rows_read

14 27 Poor Man s Hot Table example db2 reset monitor all Start query db2 get snapshot for tables on db grep e Table Name e Rows Read Wait a few seconds Table Name = EMPLOYEE_CHECK_DETAIL Rows Read = 1023 Table Name = EMPLOYEE_CHECK_HEADER Rows Read = 6 Table Name = TEMP (00027,00006) Rows Read = 221 Table Name = DRIVER_RETENTION_PAY Rows Read = db2 get snapshot for tables on db grep e Table Name e Rows Read Table Name = EMPLOYEE_CHECK_DETAIL Rows Read = Table Name = EMPLOYEE_CHECK_HEADER Rows Read = Table Name = VERSIONS Rows Read = 8 Table Name = LINEAGES_MODIFIED Rows Read = 4 Table Name = CALENDAR_DATE Rows Read = 1333 Table Name = DRIVER_RETENTION_PAY Rows Read = Evolution of tuning a query Indexes for our table: INDNAME COLNAMES SQL PK_EVENT_NB EVENT_IX1 -DSTAGE_IDENTITY_NB SELECT event_start_type_cd, event_end_type_cd, record_update_ts FROM brad.event WHERE event_start_type_cd = 'USPPC'

15 29 Evolution of tuning a query Let s create a new index: CREATE INDEX brad.event_ix2 ON brad.event ( event_start_type_cd asc, event_end_type_cd asc) SELECT event_start_type_cd, event_end_type_cd, record_update_ts FROM brad.event WHERE event_start_type_cd = 'USPPC' COMPRESS NO ALLOW REVERSE SCANS; Indexes for our table: INDNAME COLNAMES SQL PK_EVENT_NB EVENT_IX1 -DSTAGE_IDENTITY_NB EVENT_IX2 +EVENT_START_TYPE_CD+EVENT_END_TYPE_CD 30 Evolution of tuning a query Indexes for our table: INDNAME COLNAMES SQL PK_EVENT_NB EVENT_IX1 -DSTAGE_IDENTITY_NB EVENT_IX2 +EVENT_START_TYPE_CD+EVENT_END_TYPE_CD Old Plan SELECT event_start_type_cd, event_end_type_cd, record_update_ts FROM brad.event WHERE event_start_type_cd = 'USPPC' New Plan What do these numbers mean? Estimated number of I/Os (These are from Control Center and I changed the metric)

16 31 Evolution of tuning a query Indexes for our table: INDNAME COLNAMES SQL PK_EVENT_NB EVENT_IX1 -DSTAGE_IDENTITY_NB EVENT_IX2 +EVENT_START_TYPE_CD+EVENT_END_TYPE_CD Old Plan SELECT event_start_type_cd, event_end_type_cd, record_update_ts FROM brad.event WHERE event_end_type_cd = 'PETOF event_start_type_cd = 'USPPC' New Plan 32 Evolution of tuning a query Indexes for our table: INDNAME COLNAMES SQL PK_EVENT_NB EVENT_IX1 -DSTAGE_IDENTITY_NB EVENT_IX2 +EVENT_START_TYPE_CD+EVENT_END_TYPE_CD EVENT_IX3 +EVENT_END_TYPE_CD+EVENT_START_TYPE_CD Old Plan SELECT event_start_type_cd, event_end_type_cd, record_update_ts FROM brad.event WHERE event_end_type_cd = 'PETOF' New Plan

17 33 Evolution of tuning a query Indexes for our table: INDNAME COLNAMES SQL PK_EVENT_NB EVENT_IX1 -DSTAGE_IDENTITY_NB EVENT_IX2 +EVENT_START_TYPE_CD+EVENT_END_TYPE_CD EVENT_IX3 +EVENT_END_TYPE_CD+EVENT_START_TYPE_CD+RECORD_UPDATE_TS SELECT event_start_type_cd, event_end_type_cd, record_update_ts FROM brad.event WHERE event_end_type_cd = 'PETOF' Old Plan Should we get rid of EVENT_IX2? New Plan 34 Welcome to DBA world.

18 35 Agenda Indexes 101 -the basics Important Index info in the catalog Index considerations when tuning Special Commands related to Indexes Index PotPourri for $500, Alex Jumpscans v10 36 Performance improvement to avoid costly index scans when the index has gaps SELECT * FROM mytab T WHERE T.COL2 = 20 Index on (COL1, COL2) COL1 is a gap column (No predicate on COL1) COL2 is a non-gap column When does Jump Scan work best? When the gap column has small cardinality and the non-gap column predicate is highly selective. Ideal case for the example: COL1 has 10 distinct values COL2 has high cardinality, and the query predicate only selects a few rows

19 Jumpscan example SELECT * FROM mytab T WHERE T.COL2 = 20 Artificially add predicate for col1 Where col2 = 20 and col1 = 1 Where col2 = 20 and col1 = 2 Where col2 = 20 and col1 = 3 Where col2 = 20 and col1 = 4 Where col2 = 20 and col1 = 5 Prior method was to scan entire index comparing on col2 With jumpscan, able to skip large amounts of index Index 37 COL1 COL Runstats now supports IndexSample v10 Similar to the existing TABLESAMPLE command parameter Speed up the time it takes to generate statistics by Reducing the total number of leaf nodes processed by RUNSTATS (when INDEXSAMPLE SYSTEM is specified) Reducing the total number of index entries processed by RUNSTATS (when INDEXSAMPLE BERNOULLI is specified) Start with a 10% page-level sample, by specifying TABLESAMPLE SYSTEM(10) and INDEXSAMPLE SYSTEM(10) If results are not desirable, try a 10% row-level sample instead, by specifying INDEXSAMPLE BERNOULLI(10)

20 39 Virtual Indexes db2advis, the Index Advisor, populates the advise_index table with potential (Virtual) indexes You can produce a what if explain with db2exfmt that will consider the virtual indexes 40 Steps to Create an Explain Plan With Virtual Indexes 1. db2 set current explain mode recommend indexes 2. Execute your SQL statement db2 -stvf test.sql SQL0217W The statement was not executed as only Explain information requests are being processed. SQLSTATE= Query advise_index table to see what indexes were recommended select explain_time, name, tbname, colnames, use_index use, exists from advise_index order by explain_time; 4. Format last explain in explain tables db2exfmt -d dbedwq -1 -o explain.txt

21 41 advise_index table entries select explain_time, name, tbname, colnames, use_index use, exists from advise_index order by explain_time; EXPLAIN_TIME NAME TBNAME COLNAMES USE EXISTS SQL TOUR_ORDER +ORDER_ID+TOUR_ID Y Y IDX ORDER +CUSTOMER_CONTROL_ROLE_ID+CUST Y N IDX TOUR +SCHEDULED_ARRIVAL_TS-TOUR_ID Y N N means these are virtual indexes 42 Format the Explain / \ db2exfmt -d dbedwq -1 -o explain.txt NLJOIN IXSCAN ( 3) ( 10) / \ e+06 TBSCAN IXSCAN INDEX: SYSTEM ( 4) ( 9) IDX Q e+06 SORT INDEX: SYSIBM ( 5) SQL Q NLJOIN ( 6) / \ TBSCAN IXSCAN ( 7) ( 8) e e+06 TABFNC: SYSIBM INDEX: SYSTEM GENROW IDX Q1 Q3 Index ~55050 is the virtual index on Tour table I/Os have gone from 1331 to 2 Index ~55080 is the virtual index on Order table

22 43 To ignore a virtual index, update advise_index to set USE to N select explain_time, name, tbname, colnames, use_index use, exists from advise_index order by explain_time; EXPLAIN_TIME NAME TBNAME COLNAMES USE EXISTS SQL TOUR_ORDER +ORDER_ID+TOUR_ID Y Y IDX ORDER +CUSTOMER_CONTROL_ROLE_ID+CUST Y N IDX TOUR +SCHEDULED_ARRIVAL_TS-TOUR_ID N N Let s update from Y to N to prevent this virtual index from being used by explain Now, the real index is being used for Tour table db2exfmt -d dbedwq -1 -o explain.txt / \ e+06 TBSCAN IXSCAN INDEX: VASDW ( 4) ( 9) IDX_TOUR_ Q e+06 SORT INDEX: SYSIBM ( 5) SQL Q NLJOIN ( 6) / \ TBSCAN IXSCAN ( 7) ( 8) e e+06 TABFNC: SYSIBM INDEX: SYSTEM GENROW IDX Q1 Q3 Existing index on Tour Still using virtual index on Order. 44

23 45 Section Actuals and the db2caem Command 1. Create Explain tables 2. Create Activity Event Monitor 3. Enable Event Monitor 4. Call wlm_set_conn_env to capture on my connection 5. Execute SQL statement(s) of interest 6. Call wlm_set_conn_env to disable collection 7. Turn off Event Monitor 8. Query Event Monitor tables to find query 9. Call explain_from_activity to explain query 10. Format explain using db2exfmt 46 Or just use db2caem!!!!!!! db2caem -d dbedwp -sf po_summary.sql This actually executes the query /brad/sqltuning/brad# ls -l inedwp db2admin inedwp db2admin 256 Feb 11 14:28 DB2CAEM_ Apr po_summary.sql /brad/sqltuning/brad/db2caem_ # ls -l inedwp db2admin 4096 Feb 11 14:28 EXPORTS inedwp db2admin 7654 Feb 11 14:28 db2caem.exfmt.1 inedwp db2admin 1872 Feb 11 14:28 db2caem.log inedwp db2admin 38 Feb 11 14:28 db2caem_options.in

24 47 db2exfmt output Estimated Cardinality Actual Cardinality Rows Rows Actual RETURN ( 1) Cost I/O ^HSJOIN ( 2) NA / \ NLJOIN IXSCAN ( 3) ( 9) NA NA / \ NA TBSCAN IXSCAN INDEX: VASDW ( 4) ( 8) IDX_TOUR_ Q5 NA NA 48 Section Actuals in db2exfmt output Input Streams: ) From Operator #7 Estimated number of rows: Actual number of rows: ) From Object BRAD.ORDER Estimated number of rows: e+06 Column Names: Q3.CUSTOMER_CONTROL_NM+Q3.STATUS_ID +Q3.STATUS_DESCRIPTION_TX+Q3.ORDER_ID Output Streams: ) To Operator #5 Estimated number of rows: Actual number of rows: 2110

25 49 Index Advisor and db2advis For 9.7 and earlier, can invoke Design Advisor from Control Center In Data Studio, it appears that Index Recommendations require purchasing a licensed product Easier/faster just to run db2advis command db2advis -db dbedwd -i po_summary.sql Warning: Index Advisor was built to analyze workloads Will tend to over-recommend indexes and index columns The DBA should be selective about what to implement It would be VERY nice if Index Advisor would provide indexes in a ranked manner 50 Agenda Indexes 101 -the basics Important Index info in the catalog Index considerations when tuning Special Commands related to Indexes Index PotPourri for $500, Alex

26 51 How To Find Unused Indexes Lastused column in syscat.indexes Date when the index was last used by any DML statement to perform a scan, or used to enforce referential integrity constraints. This column is not updated when the index is used on an HADR standby database, nor is it updated when rows are inserted into the table on which the index is defined. The default value is ' '. This value is updated asynchronously not more than once within a 24 hour period and might not reflect usage within the last 15 minutes. Beware of apar IC70265: lastused column not always updated if < v9.7 fp4 db2pd db mydb tcbstats Look at scans column Resets to zero on db2stop/db2start db2pd -db dbedwp -tcbstats index tableid=14 tbspaceid=4 TableName IID Scans TRACTOR TRACTOR 4 0 TRACTOR mon_get_index The MON_GET_INDEX table function returns metrics for one or more indexes. MON_GET_INDEX--(--tabschema--,--tabname--,--member--) select * from TABLE(MON_GET_INDEX('','', -2)) V9.7 interesting columns Index_scans Index_only_scans V10 more interesting columns Object_index_l_reads Object_index_p_reads Jump_scans

27 53 Volatile Tables By default, autostats will not collect stats on volatile tables But, if stats exist on volatile tables, the optimizer will use them So, if you run stats manually on a volatile table, they will factor into the optimizer s equation Wait for a time that the data best represents itself, then perform a single runstats There is no un-runstat command to return you to -1 Can be updated manually, but I tend to avoid this MDC Block Indexes 54 Used by MDC tables to point to blocks of data within an MDC Very small, since there is only one pointer for each block as opposed to one pointer for each row Remember with MDC to primarily use lower cardinality columns foryour dimensions

28 55 Brad Price Werner Enterprises Session D12 An Index s Guide to the Universe Evaluate my session online:

29 57 Why Are My Index Scans Slow? High ratio of Physical Index Reads/Logical Index Reads Runstats are slow during index phase Likely in need of an Index Reorg 58 An Example of Index Physical I/O and Reorg Runstats before reorg index: qa-edw01:/home/ibm/inedwq# snapapp grep -i reads Buffer pool data logical reads = Buffer pool data physical reads = 489 Buffer pool temporary data logical reads = 0 Buffer pool temporary data physical reads = 0 Buffer pool index logical reads = Buffer pool index physical reads = Buffer pool temporary index logical reads = 0 Runstats after reorg index: qa-edw01:/home/ibm/inedwq# snapapp grep -i reads Buffer pool data logical reads = Buffer pool data physical reads = 351 Buffer pool temporary data logical reads = 0 Buffer pool temporary data physical reads = 0 Buffer pool index logical reads = Buffer pool index physical reads = 23 Buffer pool temporary index logical reads = 0 V10: Index Smart Prefetch will affect this.

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

IBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs IBM DB2 LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs Day(s): 5 Course Code: CL442G Overview Learn how to tune for optimum the IBM DB2 9 for Linux, UNIX, and Windows relational

More information

The scale shows the total weight of a person with ugly toes. If you were going hiking, how much might your back pack weigh? What s in your backpack?

The scale shows the total weight of a person with ugly toes. If you were going hiking, how much might your back pack weigh? What s in your backpack? 1 The scale shows the total weight of a person with ugly toes. If you were going hiking, how much might your back pack weigh? What s in your backpack? Does it weigh too much? If you want the back pack

More information

What Developers must know about DB2 for z/os indexes

What Developers must know about DB2 for z/os indexes CRISTIAN MOLARO CRISTIAN@MOLARO.BE What Developers must know about DB2 for z/os indexes Mardi 22 novembre 2016 Tour Europlaza, Paris-La Défense What Developers must know about DB2 for z/os indexes Introduction

More information

The DB2Night Show Episode #89. InfoSphere Warehouse V10 Performance Enhancements

The DB2Night Show Episode #89. InfoSphere Warehouse V10 Performance Enhancements The DB2Night Show Episode #89 InfoSphere Warehouse V10 Performance Enhancements Pat Bates, WW Technical Sales for Big Data and Warehousing, jpbates@us.ibm.com June 27, 2012 June 27, 2012 Multi-Core Parallelism

More information

DB2 for z/os Optimizer: What have you done for me lately?

DB2 for z/os Optimizer: What have you done for me lately? Session: A08 DB2 for z/os Optimizer: What have you done for me lately? Terry Purcell IBM Silicon Valley Lab 14 th October 2008 16:45 17:45 Platform: DB2 for z/os You can always read about the features/enhancements

More information

Presentation Abstract

Presentation Abstract Presentation Abstract From the beginning of DB2, application performance has always been a key concern. There will always be more developers than DBAs, and even as hardware cost go down, people costs have

More information

Multidimensional Clustering (MDC) Tables in DB2 LUW. DB2Night Show. January 14, 2011

Multidimensional Clustering (MDC) Tables in DB2 LUW. DB2Night Show. January 14, 2011 Multidimensional Clustering (MDC) Tables in DB2 LUW DB2Night Show January 14, 2011 Pat Bates, IBM Technical Sales Professional, Data Warehousing Paul Zikopoulos, Director, IBM Information Management Client

More information

DB2 for LUW Advanced Statistics with Statistical Views. John Hornibrook Manager DB2 for LUW Query Optimization Development

DB2 for LUW Advanced Statistics with Statistical Views. John Hornibrook Manager DB2 for LUW Query Optimization Development DB2 for LUW Advanced Statistics with Statistical Views John Hornibrook Manager DB2 for LUW Query Optimization Development 1 Session Information Presentation Category: DB2 for LUW 2 DB2 for LUW Advanced

More information

DB2 LUW Index Design and Best Practices

DB2 LUW Index Design and Best Practices DB2 LUW Index Design and Best Practices Scott Hayes DBI Scott.Hayes@DBISoftware.com Session Code: C08 12 May 2010, 2:45pm 3:45pm Platform: DB2 for Linux, UNIX, Windows Scott Hayes is President & CEO of

More information

Why did the DB2 for z/os optimizer choose that access path?

Why did the DB2 for z/os optimizer choose that access path? Why did the DB2 for z/os optimizer choose that access path? Terry Purcell IBM tpurcel@us.ibm.com Saghi Amirsoleymani IBM amirsole@us.ibm.com Session Code: A10 Thursday May 13 th, 9:45am 10:45am Platform:

More information

Common DB2 Customer Issues. As seen by DB2-LUW support

Common DB2 Customer Issues. As seen by DB2-LUW support Common DB2 Customer Issues As seen by DB2-LUW support Hans Siebrand (hans_siebrand@kr.ibm.com) Jin Hwan Hyun (jhhyun2@kr.ibm.com) Information Management July 12, 2012 DB2 Support 3 levels 1 First contact

More information

7. Query Processing and Optimization

7. Query Processing and Optimization 7. Query Processing and Optimization Processing a Query 103 Indexing for Performance Simple (individual) index B + -tree index Matching index scan vs nonmatching index scan Unique index one entry and one

More information

Accelerate Your DB2 Business On Demand Autonomically!

Accelerate Your DB2 Business On Demand Autonomically! Session: C5 Accelerate Your DB2 Business On Demand Autonomically! Scott Hayes DBI (www.database-brothers.com) Nov 06, 2007 11:45 a.m. 12:45 p.m. (C5) Platform: DB2 for Linux, UNIX, Windows 1 Agenda A bit

More information

To REORG or not to REORG That is the Question. Kevin Baker BMC Software

To REORG or not to REORG That is the Question. Kevin Baker BMC Software To REORG or not to REORG That is the Question Kevin Baker BMC Software Objectives Identify I/O performance trends for DB pagesets Correlate reorganization benefits to I/O performance trends Understand

More information

Visual Explain Tutorial

Visual Explain Tutorial IBM DB2 Universal Database Visual Explain Tutorial Version 8 IBM DB2 Universal Database Visual Explain Tutorial Version 8 Before using this information and the product it supports, be sure to read the

More information

Deep Dive Into Storage Optimization When And How To Use Adaptive Compression. Thomas Fanghaenel IBM Bill Minor IBM

Deep Dive Into Storage Optimization When And How To Use Adaptive Compression. Thomas Fanghaenel IBM Bill Minor IBM Deep Dive Into Storage Optimization When And How To Use Adaptive Compression Thomas Fanghaenel IBM Bill Minor IBM Agenda Recap: Compression in DB2 9 for Linux, Unix and Windows New in DB2 10 for Linux,

More information

IBM DB DBA for LUW Upgrade from DB2 10.1

IBM DB DBA for LUW Upgrade from DB2 10.1 IBM DB2 10.5 DBA for LUW Upgrade from DB2 10.1 Dumps Available Here at: /ibm-exam/c2090-311-dumps.html Enrolling now you will get access to 30 questions in a unique set of C2090-311 dumps Question 1 An

More information

Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course:

Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course: Course Modules for MCSA: SQL Server 2016 Database Development Training & Certification Course: 20762C Developing SQL 2016 Databases Module 1: An Introduction to Database Development Introduction to the

More information

Performance Tuning Batch Cycles

Performance Tuning Batch Cycles Performance Tuning Batch Cycles and Table Partitioning Robert Williams One-point Solutions Inc. rwilliams@one-point.com March 11 2010 Platform: LUW Agenda Introduction A little about me About the DWP/EDW

More information

What s new in DB2 9 for z/os for Applications

What s new in DB2 9 for z/os for Applications What s new in DB2 9 for z/os for Applications Patrick Bossman bossman@us.ibm.com Senior software engineer IBM Silicon Valley Lab 9/8/2009 Disclaimer Copyright IBM Corporation [current year]. All rights

More information

DB2 Performance Essentials

DB2 Performance Essentials DB2 Performance Essentials Philip K. Gunning Certified Advanced DB2 Expert Consultant, Lecturer, Author DISCLAIMER This material references numerous hardware and software products by their trade names.

More information

IBM A DB DBA for Linux, UNIX, and Windows - Assessment. Download Full Version :

IBM A DB DBA for Linux, UNIX, and Windows - Assessment. Download Full Version : IBM A2090-611 DB2 10.1 DBA for Linux, UNIX, and Windows - Assessment Download Full Version : https://killexams.com/pass4sure/exam-detail/a2090-611 Answer: B QUESTION: 105 What is the purposeof specifying

More information

IBM DB2 courses, Universidad Cenfotec

IBM DB2 courses, Universidad Cenfotec IBM DB2 courses, Universidad Cenfotec Contents Summary... 2 Database Management (Information Management) course plan... 3 DB2 SQL Workshop... 4 DB2 SQL Workshop for Experienced Users... 5 DB2 9 Database

More information

This is the forth SAP MaxDB Expert Session and this session covers the topic database performance analysis.

This is the forth SAP MaxDB Expert Session and this session covers the topic database performance analysis. 1 This is the forth SAP MaxDB Expert Session and this session covers the topic database performance analysis. Analyzing database performance is a complex subject. This session gives an overview about the

More information

Chapter 9. Cardinality Estimation. How Many Rows Does a Query Yield? Architecture and Implementation of Database Systems Winter 2010/11

Chapter 9. Cardinality Estimation. How Many Rows Does a Query Yield? Architecture and Implementation of Database Systems Winter 2010/11 Chapter 9 How Many Rows Does a Query Yield? Architecture and Implementation of Database Systems Winter 2010/11 Wilhelm-Schickard-Institut für Informatik Universität Tübingen 9.1 Web Forms Applications

More information

SQLSaturday Sioux Falls, SD Hosted by (605) SQL

SQLSaturday Sioux Falls, SD Hosted by (605) SQL SQLSaturday 2017 Sioux Falls, SD Hosted by (605) SQL Please be sure to visit the sponsors during breaks and enter their end-of-day raffles! Remember to complete session surveys! You will be emailed a link

More information

DB2 9 for z/os Selected Query Performance Enhancements

DB2 9 for z/os Selected Query Performance Enhancements Session: C13 DB2 9 for z/os Selected Query Performance Enhancements James Guo IBM Silicon Valley Lab May 10, 2007 10:40 a.m. 11:40 a.m. Platform: DB2 for z/os 1 Table of Content Cross Query Block Optimization

More information

Session: D04 Green IT with DB2 LUW: 5 Essential Steps for Maximum Success Scott Hayes DBI (www.dbisoftware.com)

Session: D04 Green IT with DB2 LUW: 5 Essential Steps for Maximum Success Scott Hayes DBI (www.dbisoftware.com) Session: D04 Green IT with DB2 LUW: 5 Essential Steps for Maximum Success Scott Hayes DBI (www.dbisoftware.com) scott.hayes@dbisoftware.com Tuesday, 6 October 2009 08:30-09:30 Platform: DB2 Linux, UNIX,

More information

DATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11

DATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11 DATABASE PERFORMANCE AND INDEXES CS121: Relational Databases Fall 2017 Lecture 11 Database Performance 2 Many situations where query performance needs to be improved e.g. as data size grows, query performance

More information

Optimising Insert Performance. John Campbell Distinguished Engineer IBM DB2 for z/os Development

Optimising Insert Performance. John Campbell Distinguished Engineer IBM DB2 for z/os Development DB2 for z/os Optimising Insert Performance John Campbell Distinguished Engineer IBM DB2 for z/os Development Objectives Understand typical performance bottlenecks How to design and optimise for high performance

More information

IBM Optim Query Workload Tuner for DB2 for z/os 4.1. Hands-on Labs

IBM Optim Query Workload Tuner for DB2 for z/os 4.1. Hands-on Labs IBM Optim Query Workload Tuner for DB2 for z/os 4.1 Hands-on Labs INTRODUCTION... 2 SINGLE QUERY TUNING... 5 LAB 1 CUT COST AND OPTIMIZE PERFORMANCE... 7 1.1 GETTING STARTED... 8 1.2 CREATING A SAMPLE

More information

XML Storage in DB2 Basics and Improvements Aarti Dua DB2 XML development July 2009

XML Storage in DB2 Basics and Improvements Aarti Dua DB2 XML development July 2009 IBM Software Group XML Storage in DB2 Basics and Improvements Aarti Dua DB2 XML development July 2009 Agenda Basics - XML Storage in DB2 Major storage enhancements Base Table Row Storage in DB2 9.5 Usage

More information

DB2 V8 Neat Enhancements that can Help You. Phil Gunning September 25, 2008

DB2 V8 Neat Enhancements that can Help You. Phil Gunning September 25, 2008 DB2 V8 Neat Enhancements that can Help You Phil Gunning September 25, 2008 DB2 V8 Not NEW! General Availability March 2004 DB2 V9.1 for z/os announced March 2007 Next release in the works and well along

More information

DB2 9 for z/os V9 migration status update

DB2 9 for z/os V9 migration status update IBM Software Group DB2 9 for z/os V9 migration status update July, 2008 Bart Steegmans DB2 for z/os L2 Performance Acknowledgement and Disclaimer i Measurement data included in this presentation are obtained

More information

Vendor: IBM. Exam Code: C Exam Name: DB DBA for Linux UNIX and Windows. Version: Demo

Vendor: IBM. Exam Code: C Exam Name: DB DBA for Linux UNIX and Windows. Version: Demo Vendor: IBM Exam Code: C2090-611 Exam Name: DB2 10.1 DBA for Linux UNIX and Windows Version: Demo QUESTION 1 Due to a hardware failure, it appears that there may be some corruption in database DB_1 as

More information

To include or not include? That is the question.

To include or not include? That is the question. To include or not include? That is the question. Donna Di Carlo BMC Software Session Code: F12 Wednesday, 16 October 2013 14:45 Platform: DB2 for z/os 2 Agenda Provide an overview of index include columns

More information

SQL - Subqueries and. Schema. Chapter 3.4 V4.0. Napier University

SQL - Subqueries and. Schema. Chapter 3.4 V4.0. Napier University SQL - Subqueries and Chapter 3.4 V4.0 Copyright @ Napier University Schema Subqueries Subquery one SELECT statement inside another Used in the WHERE clause Subqueries can return many rows. Subqueries can

More information

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases DBA Best Practices: A Primer on Managing Oracle Databases Mughees A. Minhas Sr. Director of Product Management Database and Systems Management The following is intended to outline

More information

Architecture and Implementation of Database Systems (Summer 2018)

Architecture and Implementation of Database Systems (Summer 2018) Jens Teubner Architecture & Implementation of DBMS Summer 2018 1 Architecture and Implementation of Database Systems (Summer 2018) Jens Teubner, DBIS Group jens.teubner@cs.tu-dortmund.de Summer 2018 Jens

More information

DB2 9.5 Real-time Statistics Collection

DB2 9.5 Real-time Statistics Collection Session: C03 DB2 9.5 Real-time Statistics Collection John Hornibrook IBM Canada 13 October 2008 16:15 17:15 Platform: DB2 for Linux, UNIX, Windows DB2 for Linux, UNIX and Windows has supported automatic

More information

Administrivia. CS 133: Databases. Cost-based Query Sub-System. Goals for Today. Midterm on Thursday 10/18. Assignments

Administrivia. CS 133: Databases. Cost-based Query Sub-System. Goals for Today. Midterm on Thursday 10/18. Assignments Administrivia Midterm on Thursday 10/18 CS 133: Databases Fall 2018 Lec 12 10/16 Prof. Beth Trushkowsky Assignments Lab 3 starts after fall break No problem set out this week Goals for Today Cost-based

More information

Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms

Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms Crossing Over/ Breaking the DB2 Platform Barrier Comparing the Architectural Differences of DB2 on the Mainframe Vs. Distributed Platforms Agenda Basic Components Terminology Differences Storage Management

More information

Step 4: Choose file organizations and indexes

Step 4: Choose file organizations and indexes Step 4: Choose file organizations and indexes Asst. Prof. Dr. Kanda Saikaew (krunapon@kku.ac.th) Dept of Computer Engineering Khon Kaen University Overview How to analyze users transactions to determine

More information

Outline. Database Management and Tuning. Outline. Join Strategies Running Example. Index Tuning. Johann Gamper. Unit 6 April 12, 2012

Outline. Database Management and Tuning. Outline. Join Strategies Running Example. Index Tuning. Johann Gamper. Unit 6 April 12, 2012 Outline Database Management and Tuning Johann Gamper Free University of Bozen-Bolzano Faculty of Computer Science IDSE Unit 6 April 12, 2012 1 Acknowledgements: The slides are provided by Nikolaus Augsten

More information

A Examcollection.Premium.Exam.54q

A Examcollection.Premium.Exam.54q A2090-544.Examcollection.Premium.Exam.54q Number: A2090-544 Passing Score: 800 Time Limit: 120 min File Version: 32.2 http://www.gratisexam.com/ Exam Code: A2090-544 Exam Name: Assessment: DB2 9.7 Advanced

More information

Practical MySQL indexing guidelines

Practical MySQL indexing guidelines Practical MySQL indexing guidelines Percona Live October 24th-25th, 2011 London, UK Stéphane Combaudon stephane.combaudon@dailymotion.com Agenda Introduction Bad indexes & performance drops Guidelines

More information

Outline. Database Tuning. Join Strategies Running Example. Outline. Index Tuning. Nikolaus Augsten. Unit 6 WS 2014/2015

Outline. Database Tuning. Join Strategies Running Example. Outline. Index Tuning. Nikolaus Augsten. Unit 6 WS 2014/2015 Outline Database Tuning Nikolaus Augsten University of Salzburg Department of Computer Science Database Group 1 Examples Unit 6 WS 2014/2015 Adapted from Database Tuning by Dennis Shasha and Philippe Bonnet.

More information

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: 1. IT Cost Containment 84 topics 2. Cloud Computing Readiness 225

More information

DB2 SQL Tuning Tips for z/os Developers

DB2 SQL Tuning Tips for z/os Developers DB2 SQL Tuning Tips for z/os Developers Tony Andrews IBM Press, Pearson pic Upper Saddle River, NJ Boston Indianapolis San Francisco New York Toronto Montreal London Munich Paris Madrid Cape Town Sydney

More information

Unit 3 Disk Scheduling, Records, Files, Metadata

Unit 3 Disk Scheduling, Records, Files, Metadata Unit 3 Disk Scheduling, Records, Files, Metadata Based on Ramakrishnan & Gehrke (text) : Sections 9.3-9.3.2 & 9.5-9.7.2 (pages 316-318 and 324-333); Sections 8.2-8.2.2 (pages 274-278); Section 12.1 (pages

More information

Database Tuning and Physical Design: Query Optimization, Index Selection, and Schema, Query, and Transaction Tuning

Database Tuning and Physical Design: Query Optimization, Index Selection, and Schema, Query, and Transaction Tuning Database Tuning and Physical Design: Query Optimization, Index Selection, and Schema, Query, and Transaction Tuning Fall 2017 School of Computer Science University of Waterloo Databases CS348 (University

More information

Why Is This Important? Overview of Storage and Indexing. Components of a Disk. Data on External Storage. Accessing a Disk Page. Records on a Disk Page

Why Is This Important? Overview of Storage and Indexing. Components of a Disk. Data on External Storage. Accessing a Disk Page. Records on a Disk Page Why Is This Important? Overview of Storage and Indexing Chapter 8 DB performance depends on time it takes to get the data from storage system and time to process Choosing the right index for faster access

More information

Cost Models. the query database statistics description of computational resources, e.g.

Cost Models. the query database statistics description of computational resources, e.g. Cost Models An optimizer estimates costs for plans so that it can choose the least expensive plan from a set of alternatives. Inputs to the cost model include: the query database statistics description

More information

Oracle Hyperion Profitability and Cost Management

Oracle Hyperion Profitability and Cost Management Oracle Hyperion Profitability and Cost Management Configuration Guidelines for Detailed Profitability Applications November 2015 Contents About these Guidelines... 1 Setup and Configuration Guidelines...

More information

Firebird 3.0 statistics and plans

Firebird 3.0 statistics and plans 1 Firebird 3.0 statistics and plans Dmitry Kuzmenko, IBSurgeon 2 Firebird 2017 Tour: Performance Optimization Firebird Tour 2017 is organized by Firebird Project, IBSurgeon and IBPhoenix, and devoted to

More information

File Structures and Indexing

File Structures and Indexing File Structures and Indexing CPS352: Database Systems Simon Miner Gordon College Last Revised: 10/11/12 Agenda Check-in Database File Structures Indexing Database Design Tips Check-in Database File Structures

More information

IBM EXAM QUESTIONS & ANSWERS

IBM EXAM QUESTIONS & ANSWERS IBM 000-611 EXAM QUESTIONS & ANSWERS Number: 000-611 Passing Score: 800 Time Limit: 120 min File Version: 23.3 http://www.gratisexam.com/ IBM 000-611 EXAM QUESTIONS & ANSWERS Exam Name: DB2 10.1 DBA for

More information

<Insert Picture Here> DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g

<Insert Picture Here> DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g DBA s New Best Friend: Advanced SQL Tuning Features of Oracle Database 11g Peter Belknap, Sergey Koltakov, Jack Raitto The following is intended to outline our general product direction.

More information

Announcement. Reading Material. Overview of Query Evaluation. Overview of Query Evaluation. Overview of Query Evaluation 9/26/17

Announcement. Reading Material. Overview of Query Evaluation. Overview of Query Evaluation. Overview of Query Evaluation 9/26/17 Announcement CompSci 516 Database Systems Lecture 10 Query Evaluation and Join Algorithms Project proposal pdf due on sakai by 5 pm, tomorrow, Thursday 09/27 One per group by any member Instructor: Sudeepa

More information

More Ways to Challenge the DB2 z/os Optimizer. Terry Purcell IBM Silicon Valley Lab

More Ways to Challenge the DB2 z/os Optimizer. Terry Purcell IBM Silicon Valley Lab More Ways to Challenge the DB2 z/os Optimizer Terry Purcell IBM Silicon Valley Lab Agenda Introduction Process for validating the preferred access path Filter Factor Challenges Predicate Challenges Conclusion

More information

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore

EZY Intellect Pte. Ltd., #1 Changi North Street 1, Singapore Oracle Database 12c: Performance Management and Tuning NEW Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning course, learn about the performance analysis

More information

Readings. Important Decisions on DB Tuning. Index File. ICOM 5016 Introduction to Database Systems

Readings. Important Decisions on DB Tuning. Index File. ICOM 5016 Introduction to Database Systems Readings ICOM 5016 Introduction to Database Systems Read New Book: Chapter 12 Indexing Most slides designed by Dr. Manuel Rodríguez-Martínez Electrical and Computer Engineering Department 2 Important Decisions

More information

Oracle Database 10g The Self-Managing Database

Oracle Database 10g The Self-Managing Database Oracle Database 10g The Self-Managing Database Benoit Dageville Oracle Corporation benoit.dageville@oracle.com Page 1 1 Agenda Oracle10g: Oracle s first generation of self-managing database Oracle s Approach

More information

Vendor: IBM. Exam Code: Exam Name: DB DBA for Linux, UNIX, and Windows. Version: Demo

Vendor: IBM. Exam Code: Exam Name: DB DBA for Linux, UNIX, and Windows. Version: Demo Vendor: IBM Exam Code: 000-611 Exam Name: DB2 10.1 DBA for Linux, UNIX, and Windows Version: Demo QUESTION 1 Due to a hardware failure, it appears that there may be some corruption in database DB_1 as

More information

Kathleen Durant PhD Northeastern University CS Indexes

Kathleen Durant PhD Northeastern University CS Indexes Kathleen Durant PhD Northeastern University CS 3200 Indexes Outline for the day Index definition Types of indexes B+ trees ISAM Hash index Choosing indexed fields Indexes in InnoDB 2 Indexes A typical

More information

Oracle Database 12c Performance Management and Tuning

Oracle Database 12c Performance Management and Tuning Course Code: OC12CPMT Vendor: Oracle Course Overview Duration: 5 RRP: POA Oracle Database 12c Performance Management and Tuning Overview In the Oracle Database 12c: Performance Management and Tuning course,

More information

Evaluation of Relational Operations

Evaluation of Relational Operations Evaluation of Relational Operations Yanlei Diao UMass Amherst March 13 and 15, 2006 Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 Relational Operations We will consider how to implement: Selection

More information

Oracle Database 10g: New Features for Administrators Release 2

Oracle Database 10g: New Features for Administrators Release 2 Oracle University Contact Us: +27 (0)11 319-4111 Oracle Database 10g: New Features for Administrators Release 2 Duration: 5 Days What you will learn This course introduces students to the new features

More information

MIS NETWORK ADMINISTRATOR PROGRAM

MIS NETWORK ADMINISTRATOR PROGRAM NH107-7475 SQL: Querying and Administering SQL Server 2012-2014 136 Total Hours 97 Theory Hours 39 Lab Hours COURSE TITLE: SQL: Querying and Administering SQL Server 2012-2014 PREREQUISITE: Before attending

More information

Overview of Implementing Relational Operators and Query Evaluation

Overview of Implementing Relational Operators and Query Evaluation Overview of Implementing Relational Operators and Query Evaluation Chapter 12 Motivation: Evaluating Queries The same query can be evaluated in different ways. The evaluation strategy (plan) can make orders

More information

DESIGNING FOR PERFORMANCE SERIES. Smokin Fast Queries Query Optimization

DESIGNING FOR PERFORMANCE SERIES. Smokin Fast Queries Query Optimization DESIGNING FOR PERFORMANCE SERIES Smokin Fast Queries Query Optimization Jennifer Smith, MCSE Agenda Statistics Execution plans Cached plans/recompilation Indexing Query writing tips New performance features

More information

DB2 9.7 Advanced DBA for LUW

DB2 9.7 Advanced DBA for LUW 000 544 DB2 9.7 Advanced DBA for LUW Version 3.5 QUESTION NO: 1 An employee is not able to connect to the PRODDB database using the correct user ID and password. The TCP/IP protocol is running normally;

More information

Physical Design. Elena Baralis, Silvia Chiusano Politecnico di Torino. Phases of database design D B M G. Database Management Systems. Pag.

Physical Design. Elena Baralis, Silvia Chiusano Politecnico di Torino. Phases of database design D B M G. Database Management Systems. Pag. Physical Design D B M G 1 Phases of database design Application requirements Conceptual design Conceptual schema Logical design ER or UML Relational tables Logical schema Physical design Physical schema

More information

Oracle 1Z0-054 Exam Questions and Answers (PDF) Oracle 1Z0-054 Exam Questions 1Z0-054 BrainDumps

Oracle 1Z0-054 Exam Questions and Answers (PDF) Oracle 1Z0-054 Exam Questions 1Z0-054 BrainDumps Oracle 1Z0-054 Dumps with Valid 1Z0-054 Exam Questions PDF [2018] The Oracle 1Z0-054 Oracle Database 11g: Performance Tuning exam is an ultimate source for professionals to retain their credentials dynamic.

More information

Creating indexes suited to your queries

Creating indexes suited to your queries Creating indexes suited to your queries Jacek Surma PKO Bank Polski S.A. Session Code: B11 Wed, 16th Oct 2013, 11:00 12:00 Platform: DB2 z/os Michał Białecki IBM Silicon Valley / SWG Cracow Lab In every

More information

Performance Tuning for MDM Hub for IBM DB2

Performance Tuning for MDM Hub for IBM DB2 Performance Tuning for MDM Hub for IBM DB2 2012 Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise)

More information

Chapter 8: Working With Databases & Tables

Chapter 8: Working With Databases & Tables Chapter 8: Working With Databases & Tables o Working with Databases & Tables DDL Component of SQL Databases CREATE DATABASE class; o Represented as directories in MySQL s data storage area o Can t have

More information

CS317 File and Database Systems

CS317 File and Database Systems CS317 File and Database Systems http://commons.wikimedia.org/wiki/category:r-tree#mediaviewer/file:r-tree_with_guttman%27s_quadratic_split.png Lecture 10 Physical DBMS Design October 23, 2017 Sam Siewert

More information

Evaluation of Relational Operations: Other Techniques. Chapter 14 Sayyed Nezhadi

Evaluation of Relational Operations: Other Techniques. Chapter 14 Sayyed Nezhadi Evaluation of Relational Operations: Other Techniques Chapter 14 Sayyed Nezhadi Schema for Examples Sailors (sid: integer, sname: string, rating: integer, age: real) Reserves (sid: integer, bid: integer,

More information

An A-Z of System Performance for DB2 for z/os

An A-Z of System Performance for DB2 for z/os Phil Grainger, Lead Product Manager BMC Software March, 2016 An A-Z of System Performance for DB2 for z/os The Challenge Simplistically, DB2 will be doing one (and only one) of the following at any one

More information

Relational Database Index Design and the Optimizers

Relational Database Index Design and the Optimizers Relational Database Index Design and the Optimizers DB2, Oracle, SQL Server, et al. Tapio Lahdenmäki Michael Leach (C^WILEY- IX/INTERSCIENCE A JOHN WILEY & SONS, INC., PUBLICATION Contents Preface xv 1

More information

Session: G03 No Magic to Improve DB2 for z/os Application Performance. Marcel Lévy Natixis. May 19, :30 p.m. 02:30 p.m. Platform: DB2 for z/os

Session: G03 No Magic to Improve DB2 for z/os Application Performance. Marcel Lévy Natixis. May 19, :30 p.m. 02:30 p.m. Platform: DB2 for z/os Session: G03 No Magic to Improve DB2 for z/os Application Performance Marcel Lévy Natixis May 19, 2008 01:30 p.m. 02:30 p.m. Platform: DB2 for z/os 1 Agenda Story of a DB2 application migration Measurement

More information

Datenbanksysteme II: Caching and File Structures. Ulf Leser

Datenbanksysteme II: Caching and File Structures. Ulf Leser Datenbanksysteme II: Caching and File Structures Ulf Leser Content of this Lecture Caching Overview Accessing data Cache replacement strategies Prefetching File structure Index Files Ulf Leser: Implementation

More information

Arrays are a very commonly used programming language construct, but have limited support within relational databases. Although an XML document or

Arrays are a very commonly used programming language construct, but have limited support within relational databases. Although an XML document or Performance problems come in many flavors, with many different causes and many different solutions. I've run into a number of these that I have not seen written about or presented elsewhere and I want

More information

CMSC424: Database Design. Instructor: Amol Deshpande

CMSC424: Database Design. Instructor: Amol Deshpande CMSC424: Database Design Instructor: Amol Deshpande amol@cs.umd.edu Databases Data Models Conceptual representa1on of the data Data Retrieval How to ask ques1ons of the database How to answer those ques1ons

More information

SQL PerformanceExpert (SPX) in an IBM RATIONAL world. DB2 for z/os SQL Performance Plug-in for Rational Developers. Roy Boxwell,

SQL PerformanceExpert (SPX) in an IBM RATIONAL world. DB2 for z/os SQL Performance Plug-in for Rational Developers. Roy Boxwell, DB2 for z/os SQL Performance Plug-in for Developers Roy Boxwell, 2012-03-20 2012 SOFTWARE ENGINEERING GMBH and SEGUS Inc. 0 AGENDA Review of the current topology The BIG picture How a DBA works today Green

More information

Information Systems (Informationssysteme)

Information Systems (Informationssysteme) Information Systems (Informationssysteme) Jens Teubner, TU Dortmund jens.teubner@cs.tu-dortmund.de Summer 2018 c Jens Teubner Information Systems Summer 2018 1 Part IX B-Trees c Jens Teubner Information

More information

1. A DBA needs to create a federated database and configure access to join data from three Oracle instances and one DB2 database. Which objects are ne

1. A DBA needs to create a federated database and configure access to join data from three Oracle instances and one DB2 database. Which objects are ne Exam : C2090-544 Title Version : DEMO : DB2 9.7 Advanced DBA for LUW https:// 1. A DBA needs to create a federated database and configure access to join data from three Oracle instances and one DB2 database.

More information

Vendor: IBM. Exam Code: Exam Name: IBM Certified Database Administrator - DB2 10 for z/os. Version: Demo

Vendor: IBM. Exam Code: Exam Name: IBM Certified Database Administrator - DB2 10 for z/os. Version: Demo Vendor: IBM Exam Code: 000-612 Exam Name: IBM Certified Database Administrator - DB2 10 for z/os Version: Demo QUESTION NO: 1 Workload Manager (WLM) manages how many concurrent stored procedures can run

More information

Oracle Database 12c: Performance Management and Tuning

Oracle Database 12c: Performance Management and Tuning Oracle University Contact Us: +43 (0)1 33 777 401 Oracle Database 12c: Performance Management and Tuning Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning

More information

Accelerating BI on Hadoop: Full-Scan, Cubes or Indexes?

Accelerating BI on Hadoop: Full-Scan, Cubes or Indexes? White Paper Accelerating BI on Hadoop: Full-Scan, Cubes or Indexes? How to Accelerate BI on Hadoop: Cubes or Indexes? Why not both? 1 +1(844)384-3844 INFO@JETHRO.IO Overview Organizations are storing more

More information

Physical Database Design and Tuning. Review - Normal Forms. Review: Normal Forms. Introduction. Understanding the Workload. Creating an ISUD Chart

Physical Database Design and Tuning. Review - Normal Forms. Review: Normal Forms. Introduction. Understanding the Workload. Creating an ISUD Chart Physical Database Design and Tuning R&G - Chapter 20 Although the whole of this life were said to be nothing but a dream and the physical world nothing but a phantasm, I should call this dream or phantasm

More information

Db2 for z/os: Lies, Damn lies and Statistics

Db2 for z/os: Lies, Damn lies and Statistics Db2 for z/os: Lies, Damn lies and Statistics SEGUS & SOFTWARE ENGINEERING GmbH Session code: A18 05.10.2017, 11:00 Platform: Db2 for z/os 1 Agenda Quotes Quotes Basic RUNSTATS knowledge Basic RUNSTATS

More information

MCSA SQL SERVER 2012

MCSA SQL SERVER 2012 MCSA SQL SERVER 2012 1. Course 10774A: Querying Microsoft SQL Server 2012 Course Outline Module 1: Introduction to Microsoft SQL Server 2012 Introducing Microsoft SQL Server 2012 Getting Started with SQL

More information

Something to think about. Problems. Purpose. Vocabulary. Query Evaluation Techniques for large DB. Part 1. Fact:

Something to think about. Problems. Purpose. Vocabulary. Query Evaluation Techniques for large DB. Part 1. Fact: Query Evaluation Techniques for large DB Part 1 Fact: While data base management systems are standard tools in business data processing they are slowly being introduced to all the other emerging data base

More information

How Viper2 Can Help You!

How Viper2 Can Help You! How Viper2 Can Help You! December 6, 2007 Matt Emmerton DB2 Performance and Solutions Development IBM Toronto Laboratory memmerto@ca.ibm.com How Can Viper2 Help DBAs? By putting intelligence and automation

More information

Advanced Query Tuning with IBM Data Studio. Tony Andrews Themis

Advanced Query Tuning with IBM Data Studio. Tony Andrews Themis Advanced Query Tuning with IBM Data Studio Tony Andrews Themis Session code:????????? Thu, May 03, 2018 (09:20 AM - 10:20 AM) Platform: Both Db2 LUW and z/os 1 1 Objectives By the end of this presentation,

More information

Revival of the SQL Tuner

Revival of the SQL Tuner Revival of the SQL Tuner Sheryl Larsen BMC Session code: F16 9:20 AM Thursday, May 3, 2018 Db2 for z/os Competing More Optimize Drowning Resources, What in Pressures Data You More Have! Problems Drowning

More information

SQL Coding Guidelines

SQL Coding Guidelines SQL Coding Guidelines 1. Always specify SET NOCOUNT ON at the top of the stored procedure, this command suppresses the result set count information thereby saving some amount of time spent by SQL Server.

More information

Query Evaluation Overview, cont.

Query Evaluation Overview, cont. Query Evaluation Overview, cont. Lecture 9 Feb. 29, 2016 Slides based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Architecture of a DBMS Query Compiler Execution Engine Index/File/Record

More information