Reading log records with the log capture exit routine

You can use the log capture exit routine to capture Db2 log data in real time. You can use this exit routine online while Db2 is running.

About this task

Begin program-specific programming interface information. This installation exit routine presents log data to a log capture exit routine when the data is written to the Db2 active log. Do not use this exit routine for general purpose log auditing or tracking. The IFI interface is designed for this purpose.

The log capture exit routine executes in an area of Db2 that is critical for performance. As such, it is primarily intended as a mechanism to capture log data for recovery purposes. In addition, the log capture exit routine operates in a very restrictive z/OS® environment, which severely limits its capabilities as a stand-alone routine.

Procedure

To capture log records with the log capture exit routine:

You must write an exit routine (or use the one that is provided by the preceding program offering) that can be loaded and called under the various processing conditions and restrictions that are required by this exit routine.
End program-specific programming interface information.