| Oracle8i Supplied PL/SQL Packages Reference Release 2 (8.1.6) Part Number A76936-01  | 
  | 
DBMS_LOGMNR, 2 of 2
| Subprogram | Description | 
|---|---|
| 
 Adds a file to the existing or newly created list of archive files to process.  | 
|
| 
 Initializes the log analyzer tool.  | 
|
| 
 Finishes a session.  | 
This procedure adds a file to the existing or newly created list of archive files to process.
In order to select information from the V$LOGMNR_CONTENTS view, the LogMiner session must be set up with some information. This procedure tells the LogMiner session the list of logfiles to analyze. 
DBMS_LOGMNR.ADD_LOGFILE( LogFileName IN VARCHAR2, Options IN BINARY_INTEGER default ADDFILE );
This procedure starts a LogMiner session.
DBMS_LOGMNR.START_LOGMNR( startScn IN NUMBER default 0, endScn IN NUMBER default 0, startTime IN DATE default '01-jan-1988', endTime IN DATE default '01-jan-2988', DictFileName IN VARCHAR2 default '', Options IN BINARY_INTEGER default 0 );
| Parameter | Description | 
|---|---|
    
startScn  | 
 
Only consider redo records with   | 
    
endScn  | 
 
Only consider redo records with   | 
    
startTime  | 
 
Only consider redo records with timestamp greater than or equal to the   | 
    
endTime  | 
 
Only consider redo records with timestamp less than or equal to the   | 
    
DictFileName  | 
 
This flat file contains a snapshot of the database catalog. This must be specified if you expect to see reconstructed   | 
    
Options  | 
 
 See "Constants for START_LOGMNR Options flag" and "Using the logmnr.opt Place Holder Column".  | 
After executing the START_LOGMNR() procedure, you can obtain current information about the dictionary file by querying the V$LOGMNR_DICTIONARY view. For information about the LogMiner session, query the V$LOGMNR_PARAMETERS view.
ORA-1293 for the following reasons: 
This procedure finishes a session.
DBMS_LOGMNR.END_LOGMNR;
None.
EXECUTE DBMS_LOGMNR.ADD_LOGFILE( LogFileName => '/oracle/logs/log1.f', Options => dbms_logmnr.NEW); EXECUTE DBMS_LOGMNR.ADD_LOGFILE( LogFileName => '/oracle/logs/log2.f', Options => dbms_logmnr.ADDFILE); EXECUTE DBMS_LOGMNR.START_LOGMNR( DictFileName =>'/oracle/dictionary.ora'); SELECT sql_redo FROM V$LOGMNR_CONTENTS EXECUTE DBMS_LOGMNR.END_LOGMNR();
| 
 | 
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved.  | 
 
  |