|
本帖最后由 lujiaguai 于 2016-8-12 10:23 编辑
唐sir :
按照课堂笔记及论坛记录,尝试配置邮件通知的job5任务
但是出现以下报错,sys.hr不存在,可能是什么原因造成?
是因为11.2.0.3版本的问题吗?
记得课堂上说,11.2.0.3发送不成功,并没有提到配置的时候会报错
SQL> begin
2 DBMS_SCHEDULER.SET_SCHEDULER_ATTRIBUTE
3 ('email_server','station90.example.com');
4 end;
5 /
PL/SQL procedure successfully completed.
SQL> begin
2 DBMS_SCHEDULER.SET_SCHEDULER_ATTRIBUTE
3 ('email_sender','oracle@example.com');
4 end;
5 /
PL/SQL procedure successfully completed.
SQL> begin
2 DBMS_SCHEDULER.ADD_JOB_EMAIL_NOTIFICATION (
3 job_name =>'HR.JOB5',
4 events =>'job_succeeded,job_completed',
5 recipients =>'oracle@example.com');
6 end;
7 /
begin
*
ERROR at line 1:
ORA-27476: "SYS.HR" does not exist
ORA-06512: at "SYS.DBMS_ISCHED", line 4921
ORA-06512: at "SYS.DBMS_ISCHED", line 7613
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_SCHEDULER", line 4063
ORA-06512: at line 2
|
|