10.12.2012 Views

Oracle TimesTen In-Memory Database API and SQL Reference Guide

Oracle TimesTen In-Memory Database API and SQL Reference Guide

Oracle TimesTen In-Memory Database API and SQL Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Access<br />

Control<br />

LogPurge<br />

If the LogPurge attribute is set, <strong>TimesTen</strong> automatically removes log files when<br />

they have been written to both checkpoint files <strong>and</strong> there are no transactions that<br />

still need the log files' contents. The first time checkpoint is called, the contents<br />

of the log files are written to one of the checkpoint files. When checkpoint is<br />

called the second time, <strong>TimesTen</strong> writes the contents of the log files to both<br />

checkpoint files.<br />

<strong>TimesTen</strong> purges the log files if all of these conditions are met:<br />

• The contents of the log files have been written to both checkpoint files,<br />

• The log files are not pending incremental backup,<br />

• If replication is being used, the log files have been replicated to all<br />

subscribers,<br />

• If XLA is being used, all XLA bookmarks have advanced beyond the log files.<br />

• The log files are not being used by any distributed transactions using the XA<br />

interface.<br />

If this attribute is not set, unneeded log files are appended with the.arch suffix.<br />

Applications can then delete the files.<br />

This attribute is relevant only if Logging is set to 1. See also MatchLogOpts<br />

(page 53).<br />

If Access Control is enabled, this attribute requires ADMIN privileges.<br />

Setting Set LogPurge as follows:<br />

C or Java<br />

programs<br />

or UNIX<br />

ODBC.INI file<br />

Windows<br />

ODBC Data<br />

Source<br />

Administrator<br />

LogPurge 0—Does not remove old log files at<br />

connect <strong>and</strong> checkpoint.<br />

1—Removes old log files at connect<br />

<strong>and</strong> checkpoint (default).<br />

LogPurge<br />

check box<br />

unchecked—Does not remove old log<br />

files at connect <strong>and</strong> checkpoint.<br />

checked—Removes old log files at<br />

connect <strong>and</strong> checkpoint (default).<br />

38 <strong>Oracle</strong> <strong>TimesTen</strong> <strong>In</strong>-<strong>Memory</strong> <strong>Database</strong> <strong>API</strong> <strong>and</strong> <strong>SQL</strong> <strong>Reference</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!