UBS HAINER LOG ANALYSIS

Log Analysis

The Db2 log already records every data change. ULT4Db2 reads it directly and turns it into the evidence, repairs, and updates your teams need.

5 Jobs for the Db2 log

Auditing, undo of erroneous changes, undrop of deleted objects, data propagation, and activity reporting.

What ULT4Db2 does

A log analyzer for Db2 on z/OS that simplifies most tasks related to the Db2 log, from a single tool with an online interface.

Who it is for

Database administrators, application developers, auditors, and data centers running Db2 for z/OS.

Key Answers

The three questions Db2 teams ask first, before they put any process on the log.
1

Why analyze the Db2 log?

Because the log already records all data changes, it is ideally suited as a base for audit reports. Using it makes later changes and supplements to established applications dispensable, and avoids the known operational drawbacks of triggers.
2

Why use a tool instead of a script?

Specifying and running a process that continuously delivers changes for a set of tables takes real effort. Naming conventions, restarts on full datasets, empty-file housekeeping, new tables, and structural changes all have to be handled — so a tool with an online interface that resumes where the previous run ended fits data center requirements far better.
3

What does it cost the source subsystem?

Nothing extra at capture time. ULT4Db2 uses no log capture exits; it reads the archive and active log datasets directly, which saves CPU time. Because you decide when it runs, jobs can be scheduled outside peak hours to keep the four-hour rolling average low.

How Db2 Log Analysis Works

From defining a task in ISPF to reviewing the output datasets of every execution.
STEP 1

Define the scope

Name the tables to analyze using name patterns, plus a time frame. Control the details where needed: hide or rename columns, treat them as binary, or include cascaded deletes, trigger actions, and logged LOAD operations.
STEP 2

Read the log directly

Archive and active log datasets are read in place. At runtime the information needed to interpret them — table structures, compression dictionaries, the required log datasets, and previous table versions — is retrieved automatically.
STEP 3

Generate the output

All required JCL and utility statements are generated for you. Output for different tables, or different sets of tables, is written to separate datasets that are allocated dynamically from a template specification.
STEP 4

Resume and repeat

Each execution records how far the log was read and which transactions were still open. The ISPF interface shows the execution history of all tasks and lets you browse the output, so recurring jobs pick up exactly where the last one stopped.

Put the record you already have to work.

Tell us which tables matter and what the log needs to prove, and we will walk through how ULT4Db2 would run in your environment.

Talk to a Db2 log analysis expert

LOG ANALYSIS FAQS

Common questions, answered.

The essentials on Db2 log analysis and how ULT4Db2 works, in short form.
Ask an expert

Db2 log analysis is the practice of reading the Db2 transaction log, which records every data change, to support auditing, error recovery, and data propagation without modifying the applications that generated those changes.

ULT4Db2 is a Db2 log analyzer that reads the Db2 log directly to support four core needs: propagating data changes to other tables or systems, building audit trails of who changed what and when, generating SQL to undo specific erroneous changes, and recreating accidentally dropped databases, tablespaces, tables, or indexes.

ULT4Db2 can execute the same INSERT, UPDATE, and DELETE statements against target tables, write them to external datasets, or generate statements adapted for other database systems such as Oracle or Microsoft SQL Server. It tracks how far the log was read after each run, so propagation tasks can be scheduled to run periodically, from once a day to near real-time.

ULT4Db2 reads the Db2 log to reconstruct who changed a table, when the change was made, and what exactly was changed, then populates auditing tables with that information. You can analyze changes over a given time period and filter by user name, plan name, column contents, or other criteria, and choose which original columns and meta information, such as timestamp or correlation ID, appear in the output.

For erroneous changes, ULT4Db2 generates SQL statements that revert a specific update at a given point in time, without affecting other changes made afterward, and writes them to an external dataset for DBA review. For accidentally dropped objects, it uses the Db2 log and existing image copies to recreate databases, tablespaces, tables, or indexes, including their foreign keys, check constraints, and table privileges, without requiring a point-in-time recovery of the Db2 catalog.