Reading log records with IFI
You can use the READA (read asynchronously) request of the instrumentation facility interface (IFI) to read log records into a buffer. Use the READS (read synchronously) request to read specific log control intervals from a buffer. You can use these requests online while Db2 is running.
About this task
You
can write a program that uses IFI to capture log records while Db2 is running.
You can read the records asynchronously, by starting a trace that
reads the log records into a buffer and then issuing an IFI call to
read those records out of the buffer. Alternatively, you can read
those log records synchronously, by using an IFI call that returns
those log records directly to your IFI program.
Restriction: Either the primary authorization ID or one of the
secondary authorization IDs must have the MONITOR2 privilege. 