Oracle uses LOGMNR to analyze online redo logs

Source: Internet
Author: User

LOGMNR needs to be installed before it can be used.

Installation steps:

    1. Install with the SYS user log-in execution of the following script

      @ORACLE_HOME/rdbms/admin/dbmslm.sql

      @ORACLE_HOME/rdbms/admin/dbmslmd.sql


Pre-use steps:

Set system parameters Utl_file_dir for storing data dictionary files

Alter system set utl_file_dir= '/home/oracle/halee ' scope=spfile;

Generate the data dictionary file corresponding to the analyzed database, ensure that the information of the database ID in the online log or archive log is consistent with the data dictionary before analyzing correctly.

Call Dbms_logmnr_d Package Generation

Execute Dbms_logmnr_d.build (dictionary_filename=> ' logminer_dict.dat ',dictionary_location=> '/home/oracle/ Halee ');


Call LOGMNR for analysis:

    1. Add an online log to analyze

      EXEC dbms_logmnr.add_logfile (logfilename=> '/home/oracle/redo01.log ', options=>dbms_logmnr.new);

    2. Add additional online logs

      EXEC dbms_logmnr.add_logfile (logfilename=> '/home/oracle/redo02.log ', options=>dbms_logmnr.addfile);

    3. Parsing the added Files

      EXEC dbms_logmnr.start_logmnr (dictfilename=> '/home/oracle/halee/logminer_dict.dat ');

    4. Query the corresponding content

      SELECT * from V$logmnr_contents;

      Select Sql_redo from v$logmnr_contents where username = ' Halee ';


This article is from the "8016776" blog, please be sure to keep this source http://8026776.blog.51cto.com/8016776/1871011

Oracle uses LOGMNR to analyze online redo logs

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.