Log management user exit samples
UNIX directory: sqllib/samples/c
. Windows directory: sqllib\samples\c
.
Note: Instructions for compiling the Log Management User Exit programs are given at the top of each of the source files listed in the following table.
Sample file name | File description |
---|---|
db2uext2.ctsm |
This is a sample User Exit utilizing Tivoli Storage Manager (TSM) APIs to archive and retrieve database log files. The sample provides an audit trail of calls (stored in a separate file for each option) including
a timestamp and parameters received. It also provides a trail of calls
in error including a timestamp and an error isolation string for problem determination. These options can be disabled. The file must be renamed db2uext2.c and compiled as a C program. Available on UNIX and Windows operating
systems.
Note: Applications on AIX using the TSM API Client must be built with the xlc_r or xlC_r compiler invocations, not with xlc or xlC, even if the applications are single-threaded. This ensures that the libraries are thread-safe. If you have an application that is compiled with a non-thread-safe library, you can apply fixtest IC21925E or contact your application provider. The fixtest is available on the index.storsys.ibm.com anonymous ftp server.
|
db2uext2.cdisk |
This is a sample User Exit utilizing the system copy command
for the particular platform on which it ships. The program archives and retrieves
database log files, and provides an audit trail of calls (stored in a separate
file for each option) including a timestamp and parameters received. It also
provides an error trail of calls in error including a timestamp and an error
isolation string for problem determination. These options can be disabled.
The file must be renamed db2uext2.c and compiled as a C program.
Available on UNIX and Windows operating systems. |
db2uext2.ctape |
This is a sample User Exit utilizing system tape commands
for the particular UNIX platform on which it ships. The program archives and
retrieves database log files. All limitations of the system tape commands
are limitations of this user exit. The sample provides an audit trail of calls
(stored in a separate file for each option) including a timestamp and parameters
received. It also provides an error trail of calls in error including a timestamp
and an error isolation string for problem determination. These options can
be disabled. The file must be renamed db2uext2.c and compiled as
a C program. Available on UNIX platforms only. |