13:30:22 SQL> show parameter utl_file_dir;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
utl_file_dir string /xxx/
13:30:35 SQL> @?/rdbms/admin/dbmslm.sql
Package created.
Grant succeeded.
13:31:09 SQL> @?/rdbms/admin/dbmslmd.sql
Procedure created.
No errors.
Grant succeeded.
PL/SQL procedure successfully completed.
Package created.
13:31:28 SQL> exit
BEGIN
sys.dbms_logmnr_d.build(dictionary_filename => 'mylogmine.ora',
dictionary_location => '/xxx/',
options => dbms_logmnr_d.store_in_flat_file);
END;
/
begin
sys.dbms_logmnr.add_logfile('/xxxx/xxx_1_752457.arc',dbms_logmnr.new);
end;
/
begin
dbms_logmnr.add_logfile('/xxxx/xxx_1_752458.arc',dbms_logmnr.addfile);
end;
/
begin
dbms_logmnr.add_logfile('/xxxx/xxx_1_752459.arc',dbms_logmnr.addfile);
end;
/
BEGIN
sys.dbms_logmnr.start_logmnr(dictfilename => '/xxx/mylogmine.ora');
END;
/
CREATE TABLE dbmgr.my_logmnr AS select * from V$LOGMNR_CONTENTS;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22818880/viewspace-2077118/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22818880/viewspace-2077118/