LogPurge

If the LogPurge attribute is set, TimesTen automatically removes transaction log files when they have been written to both checkpoint files and there are no transactions that still need the transaction log files' contents.

The first time checkpoint is called, TimesTen writes the contents of the transaction log files to one of the checkpoint files. When checkpoint is called the second time, TimesTen writes the contents of the transaction log files to the other checkpoint file.

TimesTen purges the transaction log files if all these conditions are met:

  • The contents of the transaction log files have been written to both checkpoint files.

  • The transaction log files are not pending incremental backup.

  • If replication is being used, the transaction log files have been replicated to all subscribers.

  • If XLA is being used, all XLA bookmarks have advanced beyond the transaction log files.

  • The transaction log files are not being used by any distributed transactions using the XA interface.

If this attribute is set to 0 or unchecked, unneeded transaction log files are appended with the.arch suffix. Applications can then delete the files.

Required Privilege

Only the instance administrator can change the value of this attribute.

Usage in TimesTen Scaleout and TimesTen Classic

This attribute is supported in both TimesTen Classic and TimesTen Scaleout.

Setting

Set LogPurge as follows:

Where to set the attributes How the attribute is represented Setting

C or Java programs or UNIX and Linux systems odbc.ini file in TimesTen Classic or in the database definition (.dbdef) file in TimesTen Scaleout

LogPurge

0 - Does not remove old transaction log files at connect and checkpoint.

1 (default) - Removes old transaction log files at connect and checkpoint.

Windows ODBC Data Source Administrator

Not applicable