Oracle logminer 使用簡介

來源:互聯網
上載者:User

Oracle logminer 是用來分析歸檔日誌的一個工具,我這裡列出一個簡單、高效的使用流程。

1. 初始化參數配置

alter system set utl_file_dir='*' scope=both;

這需要重啟才會生效。

SQL> show parameter utl_file_dir

NAME                                  TYPE

------------------------------------ --------------------------------

VALUE

------------------------------

utl_file_dir                          string

*

SQL>

2. 建立資料字典

EXECUTE dbms_logmnr_d.build('dictionary.ora','/u01/home/oracle/');

SQL> EXECUTE dbms_logmnr_d.build('dictionary.ora','/u01/home/oracle/');

PL/SQL procedure successfully completed.

SQL> host;

[oracle@rac1 ~]$ ls -ltr dictionary.ora

-rw-r--r-- 1 oracle oinstall 27267751 May   7 17:40 dictionary.ora

[oracle@rac1 ~]$

  • 1
  • 2
  • 下一頁

相關文章

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.