Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

27
DBMS_LOGMNR_D

DBMS_LOGMNR_D contains the LogMiner procedure, DBMS_LOGMNR_D.BUILD, used to create the LogMiner dictionary file. This procedure extracts the dictionary either to the redo log files or to a flat file.

This information is saved in preparation for future analysis of redo log files using the LogMiner tool.

See Also:

Oracle9i Database Administrator's Guide and Oracle9i User-Managed Backup and Recovery Guide 

This chapter discusses the following topics:

Extracting a Dictionary to the Redo Log Files

To extract a dictionary file to the redo log files, the following conditions must be met:

The DBMS_LOGMNR_D.BUILD procedure will not run if there are any ongoing DDL operations.

Additionally, while the procedure is executing, no DDL operations are allowed.

Extracting a Dictionary to a Flat File

When extracting a dictionary to a flat file, the procedure queries the dictionary tables of the current database and creates a text-based file containing the contents of the tables.

To extract a dictionary to a flat file, the following conditions must be met:

The dictionary file must be created from the same database that generated the redo log files you want to analyze

Examples of Using DBMS_LOGMNR_D.BUILD

The DBMS_LOGMNR_D package contains one procedure, DBMS_LOGMNR_D.BUILD. For a complete description of this procedure, see DBMS_LOGMNR_D.BUILD Procedure.

To use the DBMS_LOGMNR_D.BUILD procedure, mount and open the database whose files you will want to analyze.

Then run the PL/SQL procedure DBMS_LOGMNR_D.BUILD,as illustrated in the following examples.

Example of Extracting to a Flat File

The following example extracts the dictionary file to a flat file named dictionary.ora in a specified path (/oracle/database).

SQLPLUS>EXECUTE dbms_logmnr_d.build('dictionary.ora',  
SQLPLUS>'/oracle/database/', 
SQLPLUS>options => dbms_logmnr_d.store_in_flat_file);

Example of Extracting to Redo Logs

SQLPLUS>EXECUTE dbms_logmnr_d.build (
SQLPLUS>options => dbms_logmnr_d.store_in_redo_logs);

Summary of DBMS_LOGMNR_D Subprograms

DBMS_LOGMNR_D contains one procedure, BUILD, which writes the dictionary tables of the current database (the online catalog) into the redo log files or into a flat file.


Go to previous page Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback