Подниму тему, все настроил, письма ходят с помощью пакета utl_smtp, utl_mail, а вот сообщения от планировщика об ошибках не ходят.
Куда еще копнуть?
> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
BEGIN
DBMS_SCHEDULER.CREATE_JOB (
job_name => '"my_job_name"',
job_type => 'PLSQL_BLOCK',
job_action => 'Begin
my_package.sync_pdf_result;
End;',
number_of_arguments => 0,
start_date => NULL,
repeat_interval => 'FREQ=MINUTELY;INTERVAL=2',
end_date => NULL,
enabled => FALSE,
auto_drop => FALSE,
comments => 'my_job_name'
);
DBMS_SCHEDULER.SET_ATTRIBUTE(
name => '"my_job_name"',
attribute => 'logging_level', value => DBMS_SCHEDULER.LOGGING_OFF
);
DBMS_SCHEDULER.enable(name => '"my_job_name"');
END;
/
BEGIN
DBMS_SCHEDULER.REMOVE_JOB_EMAIL_NOTIFICATION (
job_name => '"SCHEMA"."my_job_name"'
);
DBMS_SCHEDULER.ADD_JOB_EMAIL_NOTIFICATION (
job_name => '"SCHEMA"."my_job_name"',
recipients => 'my_email@mailserver.ru',
sender => 'robot@mailserver.ru',
subject => 'Oracle Scheduler Job Notification - %job_owner%.%job_name%.%job_subname% %event_type%',
body => 'Job: %job_owner%.%job_name%.%job_subname%
Event: %event_type%
Date: %event_timestamp%
Log id: %log_id%
Job class: %job_class_name%
Run count: %run_count%
Failure count: %failure_count%
Retry count: %retry_count%
Error code: %error_code
%Error message: %error_message%
',
events => 'JOB_BROKEN, JOB_CHAIN_STALLED, JOB_FAILED, JOB_OVER_MAX_DUR, JOB_SCH_LIM_REACHED',
filter_condition => ''
);
END;
SELECT count(*) FROM user_scheduler_notifications t WHERE job_name = 'my_job_name';
COUNT(*)
----------
5