使用LOG Miner挖掘日誌基本步驟

tolywang發表於2010-01-09

 


使用LOG Miner挖掘日誌基本步驟

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

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

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

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

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

SQL> execute dbms_logmnr.end_logmnr();

 

具體說明請參考
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/35489/viewspace-624730/,如需轉載,請註明出處,否則將追究法律責任。

相關文章