I am running oracle 11g. I try to setup an email notification for a job.
BEGIN
DBMS_SCHEDULER.add_job_email_notification (
job_name => 'JOB_COLLECT_SESS_DATA',
recipients => 'kaushik.guha@bmo.com',
events => 'job_failed'/*,
filter_condition => ':event.error_code=600'*/);
END;
/
And I get:
PLS-00302: component 'ADD_JOB_EMAIL_NOTIFICATION' must be declared
Is it some issue related to privileges?
That function exists in 11.2 but not in 11.1.
You may be able to reproduce that functionality by creating another job that looks at job statuses:
That query works at least for some errors. But ORA-00600 errors are always special and may not always show up in that table for all I know. You’ll want to test this carefully.