zoukankan      html  css  js  c++  java
  • Learn How To Use LogMiner(Base Concepts)

    Based on:

      All changes made to user data or to the database dictionary are recorded in the Oracle redo log files so that database recovery operations can be performed.Pinpointing when a logical corruption to a database, such as errors made at the application level and so on.

    LogMiner Benefits:

    • Pinpointing when a logical corruption to a database, such as errors made at the application level.
    • Determining what actions you would have to take to perform fine-grained recovery at the transaction level.
    • Performance tuning and capacity planning through trend analysis.
    • Performing postauditing. LogMiner can be used to track any data manipulation language (DML) and data definition language (DDL) statements executed on the database, the order in which they were executed, and who executed them.

    Four basic objects:

    • The source database is the database that produces all the redo log files that you want LogMiner to analyze.
    • The mining database is the database that LogMiner uses when it performs the analysis.
    • The mining database is the database that LogMiner uses when it performs the analysis. Without a dictionary, LogMiner returns internal object IDs and presents data as binary data.

        For example, consider the following the SQL statement:

    INSERT INTO HR.JOBS(JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY)  VALUES('IT_WT','Technical Writer', 4000, 11000);

        Without the dictionary, LogMiner will display:

    insert into "UNKNOWN"."OBJ# 45522"("COL 1","COL 2","COL 3","COL 4") values(HEXTORAW('45465f4748'),HEXTORAW('546563686e6963616c20577269746572'),
    HEXTORAW('c229'),HEXTORAW('c3020b'));
    • The redo log files contain the changes made to the database or database dictionary.

    Sample LogMiner Database Configuration

    Three Work Mode:

    • Using the Online Catalog

        To direct LogMiner to use the dictionary currently in use for the database, specify the online catalog as your dictionary source when you start LogMiner.

    • Extracting a LogMiner Dictionary to the Redo Log Files

        Extract a LogMiner dictionary to the redo log files and transfer it to the Minidatabase with Archivelog files,then you can analyze the logs on Minidatabase with

            Logminer.

    • Extracting the LogMiner Dictionary to a Flat File

        Extract a dictionary to a flat file and transfer it to the Minidatabase with Archivelog files.

     

     

     

      (To be continue``````《Learn How To Use LogMiner(Practice)》)

    心有猛虎,细嗅蔷薇。
  • 相关阅读:
    终于有人讲清楚准确率(accuracy)、召唤率(recall)和精确率(precision)的关系了
    leetcode之两数相加解题思路
    Django-rest-framwork——认证
    py2neo详细介绍第一章
    springdata的懒加载时机
    错题记录
    SSM框架的优势?
    2020-06-30 pol实现execl导入导出
    2020-06-30 动态sql
    String 、StringBuilder 、StringBuffer 的区别? 什么情况下用“+”运算符进行字符串连接比调用 StringBuffer/StringBuilder对象的 append 方法连接字符串性能更好?.
  • 原文地址:https://www.cnblogs.com/assassinann/p/LogMiner_Associate.html
Copyright © 2011-2022 走看看