Replication Agent creates Java procedure objects in the DB2 primary database.
Replication Agent for UDB installs SYBRAUJAR.jar and SYBTRUNCJAR.jar into these directories.
On Windows, the files are installed in $DB2DIR/SQLLIB/FUNCTION/jar/ pds_username, where $DB2DIR is the path to the DB2 installation, and pds_username is the value of pds_username.
On UNIX, the files are installed in $HOME/sqllib/function/jar/ pds_username, where $HOME is the home directory of the DB2 instance owner, and pds_username is the value of pds_username.
These JAR files implement several Java procedures in the UDB primary database and are created and used in log truncation.
Procedure |
Database name |
---|---|
Retrieves the name of the log file that contains the current LSN |
prefixget_log_name_ |
Retrieves the version of the get_log_name Java class |
prefixget_version_str_ |
Truncates the database log file or files from the archive log directory |
prefixtrunc_log_files_ |
Retrieves the version of the trunc_log_files Java class |
prefixget_trunc_ver_str_ |