Quantcast
Channel: DB2 Settings – db2commerce.com
Browsing latest articles
Browse All 39 View Live

Image may be NSFW.
Clik here to view.

Two Worlds of DB2 LUW Performance Monitoring

I generally suggest both my readers and my clients turn on the monitor switches using the DFT_MON* parameters in the DBM CFG. However, I find myself using traditional snapshots less and less. The main...

View Article


HADR_TIMEOUT vs. HADR_PEER_WINDOW

It has taken me a while to fully understand the difference between HADR_TIMEOUT and HADR_PEER_WINDOW. I think there is some confusion here, so I’d like to address what each means and some...

View Article


SQL5005C and Ulimit Issues

I’m spoiled. While we build a fair number of environments each year, we also have basic starting standards. Because of this, I sometimes miss the basics when a problem shows up. Or at least it takes me...

View Article

Do you see a ‘Congested’ State for HADR while Performing Reorgs?

I monitor HADR closely, and want to be paged out if HADR goes down. Why? Because any subsequent failure would then be a serious problem. Once HADR has a problem, I suddenly have a single point of...

View Article

Image may be NSFW.
Clik here to view.

Informational Constraints – Benefits and Drawbacks

One of the most frustrating things a DBA can experience is troubleshooting due to bad data. The client is upset because rows are missing or incorrect data is returned.  The client facing web front end...

View Article


Image may be NSFW.
Clik here to view.

STMM Analysis Tool

I mostly like and use DB2’s Self Tuning Memory Memory Manager (STMM) for my OLTP databases where I have only one DB2 Instance/Database on a database server. I do have some areas that I do not let it...

View Article

Image may be NSFW.
Clik here to view.

Quick Hit Tips – CPUSPEED, RESTRICTIVE, and DB2_WORKLOAD

Today we are going to talk about some random DB2 features that can’t stand in a blog of their own, but are worth discussing nonetheless. These are tidbits I had discovered during “DB2’s Got Talent”...

View Article

Giving Automatic Maintenance a Fair Try

I’m a control freak. I think that control freaks tend to make good DBAs as long as they don’t take it too far. My position for years has been that I would rather control my runstats, reorgs, and...

View Article


Analyzing Package Cache Size

Note: updated 7/21 to reflect location of the package cache high water mark in the MON_GET* table functions I have long been a fan of a smaller package cache size, particularly for transaction...

View Article


Issues with STMM

I thought I’d share some issues with STMM that I’ve seen on Linux lately. I’ve mostly been a fan of STMM, and I still am for small environments that are largely transaction processing and have only one...

View Article

Registry Variables and DB2_WORKLOAD=WC

I was happy to see the new workload registry variable in Commerce 7/DB2 9. Mostly out of laziness – it requires fewer variables to be set manually, but it also ensures that nothing major is missed (I...

View Article

HADR

What is HADR? HADR is DB2’s implementation of log shipping. Which means it’s a shared-nothing kind of product. But it is log shipping at the Log Buffer level instead of the Log File level, so it can be...

View Article

Managing db2 transaction log files

Logging method There are two methods of logging that DB2 supports: Circular and Archive. I believe Oracle has similar modes. Circular To my extreme disgust, the default that Commerce uses if you don’t...

View Article


Locking Parameters

So I thought I’d write a post covering locking parameters. This is by no means a comprehensive coverage of isolation levels and locking, but more of a practically oriented guide to the parameters...

View Article

Analyzing Deadocks – the old way

In 9.7, DB2 started offering a new monitoring method for deadlocking. Though this post describes the “old” way, this method also works in db2 9.7. Detailedeadlock event monitors have been deprecated,...

View Article


Analyzing Deadlocks – the new way

The section titled “To Format the Output to a Flat File” was updated on 2/13/2012. Edit on 12/11/2014: This new method of analyzing locking issues became available in DB2 9.7. So you can still use the...

View Article

How to use the DB2 Governor to force off long idle connections

Ok, so the DB2 Governor is deprecated with 9.7. But it’s only replacement is a pay-for-use tool – the workload manager. So I imagine I’ll be writing a script to do the very basic things that I do with...

View Article


Introducing Parameter Wednesday – DBM CFG: NUMDB

This is a new blog post format I’m introducing. I’m declaring Wednesday Parameter Day. That means each Wednesday, I’ll pick a parameter and cover it in excruciating detail. Some of the details will...

View Article

What DBAs can do to Reduce Deadlocks

Deadlocking is an application problem. There are only a few things that DBAs can do to reduce deadlocking, and they all require buy-in from the application. Let me repeat that another way. Don’t set...

View Article

Parameter Wednsday – DBM CFG: DIAGLEVEL

Continuing my trend of attacking some of the simpler parameters first, I’m going to cover DIAGLEVEL this week. DB2 Version This Was Written For 9.7 Parameter Name DIAGLEVEL Where This Parameter Lives...

View Article

Parameter Wednesday: DBM CFG – INTRA_PARALLEL

DB2 Version This Was Written For 9.7 Parameter Name INTRA_PARALLEL Where This Parameter Lives Database Manager Configuration How To Check Value $ db2 get dbm cfg |grep INTRA_PARALLEL Enable...

View Article


Parameter Wednesday – DB CFG – LOCKLIST

DB2 Version This Was Written For 9.7 Parameter Name LOCKLIST Where This Parameter Lives Database Configuration How To Check Value $ db2 get db cfg for wc005s01 |grep LOCKLIST Max storage for lock list...

View Article


Parameter Wednesday – DB CFG – pckcachesz

DB2 Version This Was Written For 9.7 Parameter Name PCKCACHESZ Where This Parameter Lives Database Configuration How To Check Value > db2 get db cfg for sample |grep PCKCACHESZ Package cache size...

View Article

Parameter Wednesday: DB2 Registry DB2_SKIPINSERTED

DB2 Version This Was Written For 9.7 Parameter Name DB2_SKIPINSERTED Where This Parameter Lives DB2 Registry (db2set) How To Check Value > db2set -all |grep DB2_SKIPINSERTED [i] DB2_SKIPINSERTED=YES...

View Article

Installing DB2 Using a Response File

Some friends on Twitter were commenting that db2_install is not just deprecated in DB2 10, but is fully discontinued and not available. Melanie Stopfer mentioned this on her webcast on June 22. I do...

View Article


Parameter Wednesday: DB2 Registry DB2_EVALUNCOMMITTED

DB2 Version This Was Written For 9.7 Parameter Name DB2_EVALUNCOMMITTED Where This Parameter Lives DB2 Registry (db2set) How To Check Value > db2set -all |grep DB2_EVALUNCOMMITTED [i]...

View Article

Parameter Wednesday: DB CFG UTIL_HEAP_SZ

DB2 Version This Was Written For 9.7 Parameter Name UTIL_HEAP_SZ Where This Parameter Lives DB CFG How To Check Value > db2 get db cfg for sample |grep UTIL_HEAP_SZ Utilities heap size (4KB)...

View Article

Using TSA/db2haicu to Automate Failover Part 3: Testing, Ways Setup can go...

Part 3 in this series is a bit overdue. Parts 1 and 2 were back in April. This is a complicated topic. Please use any procedures here with extreme care, and keep in mind that if you have anything other...

View Article

What to Change in DB2 when IP Addresses or Host Names Change

I have been through a number of IP address or host name changes over the years, and thought I’d share the lessons learned. I’m specifically talking about changes to the IP address or hostname of a DB2...

View Article



Looking at How Much Memory DB2 is Using

I used to think that if I could just get enough details into a spreadsheet, I could tell exactly how much memory DB2 would be using at any point in time. I gave up on the spreadsheet idea long ago,...

View Article

IDUG NA 2013 Brain Dump

Wait, don’t avoid reading this because you didn’t go to the conference. There is still valuable stuff here. In fact, it is even more valuable for those who did not go. Last year, I posted my brain dump...

View Article

When is ‘AUTOMATIC’ Not STMM?

Somewhere along the line, I associated ‘AUTOMATIC’ settings for parameters with DB2’s Self-Tuning Memory Manger (STMM). But the two are not associated. Sure, if STMM is set to ON, then some parameters...

View Article

Image may be NSFW.
Clik here to view.

DB2 LUW – What is a Page?

The logical view of a database consists of the standard objects in any RDBMS – Tables, Indexes, etc. There are a number of layers of abstraction between this and the physical hardware level, both in...

View Article


Using Vendor Backup Solutions with DB2 for LUW

There are an astonishing number of vendor solutions available with specific interfaces for DB2. Working with a variety of clients, I see and help to evaluate and implement a variety of backup...

View Article

DB2 Memory Area In-Depth: The Package Cache

The package cache is just one memory area that DB2 offers to tune memory usage for a DB2 database. This article is a deep dive into this memory area. What is the Package Cache The package cache is an...

View Article

Image may be NSFW.
Clik here to view.

Db2 Basics: Levels of Configuration

There are a number of places where we can store and change configuration for a Db2 server. I wanted to walk through the main areas and a few details about them. Db2 Registry The Db2 registry actually...

View Article


Excluding a Table from Db2’s Automatic Runstats

The Problem The application in this case – SPSS – maintains an exclusive lock at all times on one table. I think this is poor application design, but IBM was not willing to change it when we brought it...

View Article


Comparing Two Db2 Systems

Sometimes configuration needs to be kept in sync between two or more Db2 systems. There are a variety of reasons – sometimes this is for keeping two HADR servers in sync, and other times it may be for...

View Article
Browsing latest articles
Browse All 39 View Live