-- 创建executable job
begin
dbms_scheduler.create_job(
job_name => 'LF_PERL',
job_type => 'EXECUTABLE',
job_action => '/ETL/loader/RWA_EDW_PLEDGE_IMPAWN_INFO.pl',
start_date => systimestamp,
number_of_arguments => 1,
-- job_class => 'no_logging_class',
auto_drop => true,
comments => 'LF_PERL');
end;
-- 传入参数
begin
dbms_scheduler.set_job_argument_value(job_name => 'LF_PERL',
argument_position =>1 ,
argument_value =>'etl_test' );
end;
-- 执行
begin
dbms_scheduler.run_job(job_name =>'LF_PERL');
end;
-- 删除job
begin
dbms_scheduler.drop_job(job_name => 'LF_PERL');
end;
-- 清除job日志
begin
dbms_scheduler.purge_log(job_name => 'LF_PERL');
end;
SCHEDULER执行PERL脚本加载数据(6)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/30e842e3136f891e69be07a6ad38451b.html