LogMiner™ is a powerful
audit tool for Oracle databases, allowing administrators to easily
locate changes in the database, enabling sophisticated data analyses,
and providing undo capabilities to rollback logical data corruptions or
user errors.
LogMiner offers two interfaces:
- A SQL interface, which calls
built-in PL/SQL packages to setup a data dictionary, specify redo logs,
and execute queries (this interface is applicable to SQL*Plus,
command-line scripts, or custom applications).
- LogMiner Viewer, an intuitive
GUI which allows the administrator to setup a data dictionary, specify
the redo logs, specify query criteria, and view/save redo log
data.
LogMiner can also be leveraged
for:
- Ex post facto auditing of DML
statements, the order in which transactions were committed and the user
responsible for the updates.
- Historical analysis of data
access patterns for database tuning and capacity planning.
- Tracking schema evolution and
the impact on data structure.
LogMiner directly accesses the
Oracle redo logs, which are complete records of all activities
performed on the database, and the associated data dictionary, which is
used to translate internal object identifiers and types to external
names and data formats. Using a dynamic view V$LOGMNR_CONTENTS, LogMiner populates a row in this
view with each logical operation performed on the database, thus
offering familiar, relational-based access for ad-hoc querying or
custom application consumption. Each row contains a SQL UNDO statement,
which can be used to rollback the change, and SQL REDO statement, which
details the original operation. Log analysis can be conducted with the
online catalog as the dictionary source, or an offline dictionary that
has been extracted to a set of relevant redo logs, or a standalone flat
file. With offline analysis, LogMiner can be run on a separate
database, using archived redo logs and the associated dictionary from
the source database, thus alleviating resource consumption on the
source system.
|