我得到了:
ora-01858:找到数字所在的非数字字符 预期
尝试执行以下脚本时:
begin
DBMS_SCHEDULER.CREATE_JOB
(job_name => 'UK_BANK_BATCH',
job_type => 'PLSQL_BLOCK',
job_action => 'declare
x varchar2(1000);
y varchar2(1000);
p_month number ;
p_year number ;
begin
SELECT to_number(TO_CHAR(SYSDATE,"MM"))into p_month FROM DUAL;
SELECT to_number(TO_CHAR(SYSDATE,"YYYY")) into p_year FROM DUAL;
uei.uk_emp_infotypes_pkg.UK_POST_BANKS(x,y,"E",p_month,p_year,"R");
end;',
start_date => 'sysdate',
repeat_interval => 'FREQ=DAILY',
end_date => '31-dec-9999',
enabled => TRUE,
comments => 'Gather table statistics');
END;