Using MON_GET_PKG_CACHE_STMT To Identify Waits

As a DBA I worked on a number of projects fighting fires and putting them off successfully. However in the beginning of my career I was not sure where to start, as I matured as a DBA there is a pattern that developed to troubleshoot performance issues. Each of the following areas need different kind … Read more

DB2 Finding Top 10 Most Active Tables ?

Problem: How would you generate a report of the top 10 most active tables of your DB2 database ? To be more precise how would you generate a list of top 10 tables that are being Read/Inserted/Updated/Deleted and also against which most table scans are happening ? Solution: Use the following SQL to generate a … Read more

DB2 Finding Duplicate Rows

Problem: As a DBA, you may get asked by development/other teams to get the list of duplicate rows based on a certain column or a key (non-primary). In this short blog post I am going to discuss a couple of ways to get the list of duplicates. Solution: For e.g. lets assume you have a … Read more

How To Find Redundant/Unused Indexes ?

Problem Statement: A redundant index in my book can have one or more leading columns that match with any other existing index leading columns on a given table. As a DBA I worked in many places where this is a reccurring problem. Many DBA’s are hesitant to drop these redundant indexes despite number of disadvantages … Read more

Alternative(s) To db2cluster command To Display GPFS Configuration

While working in a pureScale environment, I learned that db2cluster command is not the quickest way to get the information you are looking for. If you are working on troubleshooting a problem, waiting for db2cluster command to return the output could be frustrating. Depending on the state of your pureScale cluster it is possible that … Read more

What Are Column Group Statistics ?

In this blog post I am going to talk about how DB2 optimizer can underestimate or overestimate join ratios or cardinalities resulting from join operations and a few other situations. This topic is very broad and need multiple other blog entries to cover in detail. However in this blog post at a very high level … Read more

How To Measure Tablespace Utilization In DB2 ?

Problem: You would like to find out quickly how much space your tablespaces are utilizing and how much space is being wasted below the high watermark with in a tablespace, how would you look for it ? While there are multiple ways to pull out that information but ever since MON_GET functions were introduced I … Read more

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close