Codeplace Library

Interested in adding to the library? Click here to submit your own code to share on Codespace. 

Db2 Extract Database Size Information from UNIX List Commands

Have you ever run the db2 [call get_dbsize_info(?,?,?,0)] command to get the size of your Db2 LUW database and noticed that the size is much smaller than the space used on your UNIX file systems? Do you need to monitor database growth over time to help plan for future storage requirements? This article describes a script that will calculate the size of a Db2 LUW database on a UNIX server using UNIX commands that will give you a more accurate measure of the space used by the database. This script also stores this information in an operational table that you may use as part of your DBA Monitoring Dash Board to help you monitor and manage space in relation to growth trends.

View File

REXX to Interpret DBRM - Exec

This is a major update to the DBRMMAP code originally written by Ron Root. This exec goes with the panel and messages from May 1 2008 in Code Place. It adds many enhancements to the ISPF handling (eg. enter DBRMMAP beside member in memberlist or enter TSO %DBRMMAP), corrects some errors, converts UTF-8 to EBCDIC for Db2 V8 or 9 members, shows contoken & converts it to a timestamp, can show long SQL statements, and shows new data types for Db2 9.

View File


RUNSQL, in a simple .txt file.

View File

Thread Cancel Stored Procedures & ISPF v3

Thread cancel SP/ISPF panel. Users display active threads/issue a cancel. Display threads by SSID, connection, pgm, user id. token to 7 bytes, split MVS SSID. (UPDATED split MVS ssid from token field into own field, allow a full 8 char MVS ssid).

View File

Using the Db2 9 Admin Views to Monitor Your Database

This is a set of SQL scripts that accompany Chris' IDUG Europe 2008 and IDUG NA 2008 presentation entitled 'Using the New Admin Views to Monitor Your Database. The files show you how to query the administrative views in Db2 9 with practical examples for monitoring the health and performance of your database.

View File