我定义了一个job,job里面有个存储过程,存储内容是根据日期判断是否执行另外一个存储过程。
create or replace procedure autoetl_day (indate in date)
is --输入参数
flg number;
mlg number;
begin
--如果是周六日被节假日调休的情况,且该日期是周六或者周日
select count(1) into flg from FESTIVAL f where f.festival_day=indate and f.fe_lag=1;
select count(1) into mlg from FESTIVAL f1 where f1.festival_day=indate and f1.fe_lag=0;
if (flg)=1 and (to_char(indate,'d') ='1' or to_char(indate,'d') ='7')
then
a_etl_proc; dbms_output.put_line(' 假日调休抽取'||indate);
insert into LION_ETL_LOG(ETL_LOGCONTENT) values('调休日抽取'||to_char(indate,'yyyymmdd')||'抽取完成');
else if --如果是节日情况
mlg<>0
then dbms_output.put_line('节日 不抽取'||indate);
else if (to_char(indate,'d') ='1' or to_char(indate,'d') ='7')
then dbms_output.put_line(' 周六日不抽取'||indate);
else
a_etl_proc; dbms_output.put_line(' 工作日抽取'||indate);
insert into LION_ETL_LOG(ETL_LOGCONTENT) values('工作日'||to_char(indate,'yyyymmdd')||'抽取完成');
end if;
end if;
end if;
commit;
end;
各位大神,请问,我如何查询A_ETL_PROC的每天执行记录?