ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 使用LOG Miner挖掘日志基本步骤

使用LOG Miner挖掘日志基本步骤

原创 Linux操作系统 作者:andyxu 时间:2009-06-27 09:38:24 0 删除 编辑

SQL> execute dbms_logmnr.add_logfile(logfilename=>'&name',options=>dbms_logmnr.new);   

Enter value for name:

PL/SQL procedure successfully completed.

 

SQL> execute dbms_logmnr.add_logfile(logfilename=>'&name',options=>dbms_logmnr.addfile);

Enter value for name:

PL/SQL procedure successfully completed.

 

SQL> execute dbms_logmnr.add_logfile(logfilename=>'&name',options=>dbms_logmnr.addfile);

Enter value for name:

PL/SQL procedure successfully completed.

 

SQL> execute dbms_logmnr.start_logmnr(options=>dbms_logmnr.dict_from_online_catalog);

 

PL/SQL procedure successfully completed.

 

SQL> create table sfism4.log_hist tablespace log_data nologging as select * from v$logmnr_contents;

 

Table created.

 

SQL> execute dbms_logmnr.end_logmnr();

 

PL/SQL procedure successfully completed.

 

具体说明请参考

Oracle9i Database Administrator's Guide Release 2 (9.2)
Part Number A96521-01

Chapter 9 Using LogMiner to Analyze Redo Logs

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/110321/viewspace-607696/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2009-06-26

  • 博文量
    167
  • 访问量
    291949