Skip to content

Success Stories

For the last 19 years Gunning Technology Solutions, LLC has been providing a myriad of services for Db2 on Linux, UNIX and Windows…This year with COVID and it’s impact on the workforce we have been extremely busy helping clients succeed with Db2. We have a very large financial services client for 15 years running that continues to meet business objectives running Db2 on a large Windows Server, running over 10 billion transactions a year with zero downtime in an HADR environment with Reads-On-Standby.

Another client uses Db2 to store analytical data regarding Wi-Fi quality of service data for large hospitals and financial services companies. A plethora of analytics are provided to the clients to understand and review all aspects of there wireless network infrastructure. We have done lots of SQL tuning, index redesign, Db2 configuration updates and improved their ability to purge obsolete data using Db2 Stored Procedures and referential integrity with cascade deletes. We also right-sized there Db2 versions which were a mixture of Db2 Express-C, Db2 Express and DB2 Workgroup Server Edition.

We have a client that is very large in the music business, offering sheet music worldwide. This offering uses Db2 on Linux RedHat to provide clients with access to music products worldwide. Most of our work here has been upgrading to a supported release of Db2, firefighting (tuning problematic SQL) in real-time, and educating the client support personnel on Db2 operations and support. We provide support on a retainer basis for this client.

Another client uses Db2 on AIX as there platform of choice for Healthcare benefits enrollment. This client has in-house servers and also installed software clients on premises. Major work here has been providing 24×7 support for the production environment which consists of Power9 servers running AIX 7.2 with many LPARS. We’ve tuned SQL, conducted extensive index redesign, fixed DB2 configuration problems, automated reorgs for only those objects that need it and continue to provide Db2 database administration support for production.

So this year we haven’t been as visible on social media because we are just busy doing Db2. And, all Db2 and Security related conferences which were initially planned for onsite were changed to virtual conferences due to the ongoing COVID issues.

We participated in calls with the IBM Db2 Toronto Lab team, Customer Advisory Councils for both Db2 on LUW and z/OS and other IBM product offerings that are of interest to our clients.

In summary, we continue to help people succeed with Db2!!!

IBM Cloud Pak for Security

Although you may be a Db2 database professional, you are always concerned about data access, authorities and privileges along with unauthorized database object access attempts. Well, IBM’s Cloud Pak for Security can make your job as a Db2 professional easier to accomplish. And the documentation has been updated similarly to Db2 documentation in an easy to find, all inclusive manner. For example, using Cloud Pak for Security you can track an attempted unauthorized access back to the originating IP address and geographical location, and using QRadar, you may find that the unauthorized access attempt is tied to an existing hacker organization. You can then quickly change firewall and router configs to deny access. For more information on the packaging, take a look at the overview, demo and documentation here: and here:

Still thinking about doing AI in the Cloud? IBM has a feature packed product for you…

IBM has been a leader in AI and Machine Learning as recognized by Gartner previously. IBM’s Cloud Pak for Data includes all the tools you need to begin your journey to AI in a single solution. With Cloud Pak for Data you get the tools to build, deploy and manage AI at scale in hybrid cloud environments. Get more information here: and find a detailed overview and documentation here: Now get ready to run on the cloud, on premises and connect from anywhere. #IBMChampion #Db2

IBM Documentation is now the former Knowledge Center

Your friendly former Db2 Knowledge Center has a new name and format. Now known as Documentation, you can easily find everything you need to know about a particular product. For example, you can find links to IBM Support should you need to open a service request, change between versions of the product, or even find Redbooks of interest. I find it very handy since it has links to everything Db2. Here is the link to the Db2 11.5 Documentation:

Db2 Provided Monitoring Facilities

Besides being a stellar product, Db2 includes everything you need to monitor and tune Db2. I will point out 2 of these facilities in this post, and provide more info on additional capabilities in a later post. For point-based monitoring, Db2 provides for DSMTOP on Linux/UNIX and Windows platforms. It was formerly known as Db2top prior to DB2 10.1. DSMTOP uses the mon_get table functions as its source of performance data. DSMTOP is launched from the Db2 command line. It provides for monitoring of currently executing SQL, sessions and applications along with monitoring of Db2 memory areas and various caches. It can interface with db2explain and enhance SQL tuning. You can use it to identify locking issues and long running SQL. It is a great free tool and you should become familiar with it. Below is an example of a DSMTOP screen show DB level information.

Get more info on it here:

The MONREPORT reporting tool is very handy for identifying currently running SQL with various top 10 rankings in terms of CPU, IO and Wait time. You can use it to grab suspect running SQL and feed it to an explain and can also farm the package cache for dynamic and static SQL statements. Below is a brief example of some output provided:

Result set 1


Monitoring report – current SQL

Database: GC_PROD
Generated: 02/05/2021 12:48:42
— Command options —

Part 1 – Summaries by ‘top’ metrics

Top 10 current activities by TOTAL_CPU_TIME

——– —— ———– ——— ————————————–
1 1 12030 209103740 SELECT DATE(MAX(lt.Time)) AS “Date” ,
1 1 5095 0 CALL monreport.currentsql()
1 20 10770 0 SELECT Acc_Num, Segment_Code, Type, Se

Top 10 current activities by ROWS_READ

——– —— ———– ————- ———————————-
1 1 12030 0 SELECT DATE(MAX(lt.Time)) AS “Date
1 20 10770 0 SELECT Acc_Num, Segment_Code, Type
1 1 5095 0 CALL monreport.currentsql()

Top 10 current activities by DIRECT READS + DIRECT WRITES

——– —— ———– ————– ———————————
1 1 12030 0 SELECT DATE(MAX(lt.Time)) AS “Dat
1 20 10770 0 SELECT Acc_Num, Segment_Code, Typ
1 1 5095 0 CALL monreport.currentsql()

Part 2 – Overall ranking of activities

——– —— ———– ——— ————- ———————-
1 1 12030 1 1 1
1 1 5095 2 1 1
1 20 10770 2 1 1

Output from the pkgcache option of monreport:

C:\Program Files\IBM\SQLLIB_01\BIN>db2 call monreport.pkgcache |more

Result set 1


Monitoring report – package cache

Database: GC_PROD
Generated: 02/05/2021 12:50:35
— Command options —
CACHE_INTERVAL: All statements
SECTION_TYPE: Dynamic and static SQL

Part 1 – Summaries by ‘top’ metrics

Top 10 statements by TOTAL_CPU_TIME

— ———– —————————————————————
1 60808862119 with a as ( select b.CASINO_ID ProductCode ,case b.CASINO_I
2 54956843451 with a as ( select b.CASINO_ID ProductCode ,case b.CASINO_I
3 14570462338 SELECT given_name, family_name, username, ca.LOCK AS ACC_LOCK,
4 13923316926 VALUES( GENERATE_UNIQUE())
5 13156703141 SELECT DATE(MAX(lt.Time)) AS “Date” , lt.acc_num , lt.IP , MAX(
6 10642076225 select a.ACC_NUM as CustomerId ,a.DOB as CustomerDateOfBirth f
7 5150965819 WITH target AS ( SELECT segment_code, minimum, maximum, state,
8 4601218295 SELECT h.reward_ext_account_id, SUM(h.wager_amount) AS wager_am
9 2582440580 SELECT HEX(Trans_Num) AS Trans_Num, Acc_Num, Trace_Type, Type_D
10 2322480497 SELECT Acc_Num, HEX(Client_Id) AS ClientId, Casino_Id, Password

Top 10 statements by TOTAL_CPU TIME per exec

— ———– —————————————————————
5 257974571 SELECT DATE(MAX(lt.Time)) AS “Date” , lt.acc_num , lt.IP , MAX(
11 31699403 select b.CASINO_ID productCode ,case b.CASINO_ID when ‘LS’ the
12 31137800 select b.CASINO_ID productCode ,case b.CASINO_ID when ‘LS’ the
13 30310994 select b.CASINO_ID productCode ,case b.CASINO_ID when ‘LS’ the
14 29718191 select b.CASINO_ID productCode ,case b.CASINO_ID when ‘LS’ the
15 28828984 select b.CASINO_ID productCode ,case b.CASINO_ID when ‘LS’ the
16 27643376 select a.CASINO_ID productCode ,case a.CASINO_ID when ‘LS’ the
17 24991360 select sum(new_cust) new_customers, sum(today_purchase) purchas
18 23088148 select a.CASINO_ID productCode ,case a.CASINO_ID when ‘LS’ the

Top 10 statements by TOTAL_ACT_WAIT_TIME

— ———– ———– ————————————————–
— More —

The default collection interval for MONREPORT is 10 seconds. Although there are a few more report options with MONREPORT I find these two presented are the ones most often used. The DBSUMMARY option provides some good info on bottlenecks but you will almost always find that writing to logs has the most wait time.

This is just a brief overview of two monitoring facilities provided with Db2. You’ll want to make sure you are familiar with them and using them. For a complete description of MONREPORT options go here:

Create Db2 PDFs from the IBM Knowledge Center

There is a beta create PDF option in the Db2 Knowledge Center online that enables you to create a PDF from a section or topic of the online documentation. This comes in handy if you want something for reference later when you are not online or want to research a topic in more detail. Check it out, I think it’s quite handy.

IBM champion for 2021 (12th Consecutive year)

Honored to be named an IBM Champion for the 12th time. The Champions are a great group of professionals with highly technical skills along with being social influencers in their area of IBM product expertise. #IBMChampion @IBMChampions

IBM Ended the Year 2020 with a bang with the release of Db2 11.5.5

Db2 11.5.5 is designed to take full advantage of IBM Cloud Pak for Data and to work seamlessly with other cloud offerings such as AWS and Azure. Featuring a machine learning (ML) optimizer, Db2 11.5.5 also makes it easier to containerize Db2 databases using its OpenShift Click to Containerize tool. For more info check out the following links:

IBM Rolls Out Fully Homomorphic Encryption Solution

Fully homomorphic encryption allows data to remain encrypted even while being processed or analyzed in cloud or third-party environments. IBM’s new offering, IBM Security Homomorphic Encryption Services provides tools, services and support to implement the new service. A cloud managed compute environment is available from IBM. To learn more, go to the announcement ( and if you want the details regarding this new encryption there is a a very detailed video at

Db2 11.5.5 is a leading Cloud database according to Gartner

Review the Gartner study and all all the new webinars in Db2 11.5.5 at the following link: