-
-
-
-
-
-
-
- begin
- DBMS_SCHEDULER.create_job_class (
- job_class_name => 'no_logging_class',
- resource_consumer_group => 'default_consumer_group',
- logging_level => DBMS_SCHEDULER.LOGGING_OFF);
- end;
-
-
- DBMS_SCHEDULER.create_job (
- job_name => 'test_log_job',
- job_type => 'PLSQL_BLOCK',
- job_action => 'BEGIN NULL; END;',
- job_class => 'no_logging_class',
- enabled => FALSE,
- auto_drop => FALSE,
- comments => 'Job used to job logs.');
-
-
- begin
- dbms_scheduler.set_attribute('REFRESH_MV_RT_SEC_MKT','LOGGING_LEVEL',DBMS_SCHEDULER.LOGGING_OFF);
- end;
-
-
-
-
-
-
- select * from all_scheduler_job_log where owner='JJAPPLHB' and (job_name='XXX' or job_name='AAA' or job_name='BBB')
- select * from all_scheduler_job_run_details where owner='JJAPPLHB' and (job_name='XXX' or job_name='AAA' or job_name='BBB')
-
-
-
- delete from all_scheduler_job_log where owner='JJAPPLHB' and (job_name='XXX' or job_name='AAA' or job_name='BBB')
- delete from all_scheduler_job_run_details where owner='JJAPPLHB' and (job_name='XXX' or job_name='AAA' or job_name='BBB')
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24570973/viewspace-752022/
,如需转载,请注明出处,否则将追究法律责任。