Oracle uses Logminer profiling redo log files All steps (WINDOWS NT Chinese VERSION)

Source: Internet
Author: User
Tags log
Oracle|window Oracle installed on disk D:
1. Re-establish the Pl/sql package Dbms_logmnr_d
Open D:\oracle\ora81\rdbms\admin\dbmslmd.sql
Find
"TYPE Col_desc_array is Varray (513) of col_description;"
To
"TYPE Col_desc_array is Varray (1023) of col_description;"
Execute the following command in Server Manager
Svrmgr>@d:\oracle\ora81\rdbms\admin\dbmslmd.sql
2. Set initialization parameter Utl_file_dir, add a row in the parameter file:
Utl_file_dir=d:\oracle\oradata\manu
Restart database
3. Execute the following command to create a dictionary file
Svrmgr>execute DBMS_LOGMNR. Build (
' V817dict.dic ', ' D:\oracle\oradata\manu ');
4. Add redo log files to be analyzed
Svrmgr>execute DBMS_LOGMNR. AddFile (
' D:\oracle\oradata\manu\redo10.log ', DBMS_LOG_MNR. NEW);
Svrmgr>execute DBMS_LOGMNR. AddFile (
' D:\oracle\oradata\manu\redo20.log ', DBMS_LOG_MNR. AddFile);
5. Start analysis
Svrmgr>execute DBMS_LOGMNR. START_LOGMNR (
Dictfilename=> ' D:\oracle\oradata\manu\v817dict.dic ');
6. Query V$logmnr_contents View
Svrmgr>select * from V$logmnr_contents;
7. Stop Analysis
Svrmgr>execute DBMS_LOGMNR. END_LOGMNR;


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.