Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
DBMS_LOGMNR , 2 of 3
Table 25-1 describes the constants for the ADD_LOGFILE
options flag in the DBMS_LOGMNR
package.
Table 25-2 describes the constants for the START_LOGMNR
options flag in the DBMS_LOGMNR
package.
LogMiner data extraction from redo logs is performed using two mine functions: DBMS_LOGMNR.MINE_VALUE
and DBMS_LOGMNR.COLUMN_PRESENT
, described later in this chapter.
The following example shows how to use the DBMS_LOGMNR
procedures to add redo logs to a LogMiner session, how to start LogMiner (with a flat file dictionary), how to perform a select operation from V$LOGMNR_CONTENTS
, and how to end a LogMiner session. For complete descriptions of the DBMS_LOGMNR
procedures, see Summary of DBMS_LOGMNR Subprograms.
SQL> EXECUTE DBMS_LOGMNR.ADD_LOGFILE( - 2 LogFileName => '/oracle/logs/log1.f', - 3 Options => dbms_logmnr.NEW); SQL> EXECUTE DBMS_LOGMNR.ADD_LOGFILE( - 2 LogFileName => '/oracle/logs/log2.f', - 3 Options => dbms_logmnr.ADDFILE); SQL> EXECUTE DBMS_LOGMNR.START_LOGMNR( - 2 DictFileName =>'/oracle/dictionary.ora'); SQL> SELECT sql_redo 2 FROM V$LOGMNR_CONTENTS SQL> EXECUTE DBMS_LOGMNR.END_LOGMNR();
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|