DB2 10.5 for Linux, UNIX, and Windows

Automating log file archiving and retrieval with user exit programs

You can automate log file archiving and retrieval by creating a user exit program that the DB2® database manager calls to carry out the archiving or retrieval operation.

When the DB2 database manager invokes your user exit program, the following happens:

Configuration

Before invoking a user exit program for log file archiving or retrieval, ensure that the logarchmeth1 database configuration parameter is set to USEREXIT. This also enables your database for rollforward recovery.

User exit program requirements