Oracle 11g logminer Experiment

Source: Internet
Author: User


The directory for creating the oracle 11g logminer experiment: mkdir-p/home/oracle/logmnr www.2cto.com will be archived to open the archive analysis experiment. Install three packages: dbmslm. SQL dbmslmd. SQL dbmslms. after the SQL statement is completed, set utl_file_dir alter system set utl_file_dir = '/home/oracle/logmnr' scope = spfile; restart to create a data dictionary: begindbms_logmnr_d.build. dat ', dictionary_location =>'/home/oracle/logmnr '); end;/now you can create a list: execute dbms_logmnr.add_logfile (options => dbms_logmnr.new, logfilename => '/home/oracle/app/oracle/oradata/bdlms/redo11.log'); add: execute dbms_logmnr.add_logfile (options => dbms_logmnr.new, logfilename => '/home/oracle/app/oracle/oradata/bdlms/redo21.log'); you can view v $ logmnr_logs to enable log analysis: begindbms_logmnr.start_logmnr (dictfilename => '/home/oracle/logmnr/logminer_dict.dat'); end;/restrictions: begindbms_logmnr.start_logmnr (dictfilename => '/home/oracle/logmnr/logminer_dict.dat', starttime => to_date ('2017-01-01 16:40:23 ', 'yyyy-MM-DD HH24: MI: SS '), endtime => to_date ('1970-01-02 16:40:00', 'yyyy-MM-DD HH24: MI: ss'); end;/observed analysis results: select SQL _redo from v $ logmnr_contents; you can also save this result: create table log_backup as select * from v $ logmnr_contents; finally stop log analysis: 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.