日期:2014-05-16  浏览次数:20939 次

ORA-01008:并非所有变量都以绑定、、、求解!!!
存储过程:
SQL code

create or replace procedure auto_unseal
as
cursor c_seal is select sealend,unsealauditing from vary_seal_detail;
v_emp c_seal%rowtype;
begin
     for v_emp in c_seal loop
        if to_char(sysdate,'yyyy-MM-dd')=v_emp.sealend then 
           begin
             update vary_seal_detail set vary_seal_detail.unsealauditing='1';
           end;
        end if;
     end loop;
end;



job定时器:
SQL code

begin
     dbms_job.submit(:job,'auto_unseal',sysdate,'sysdate+1/1440');
     commit;
end;



求各位大侠帮忙看看错在何方、、在网上找了很多就是解决不了。

------解决方案--------------------
declare job number;
begin
sys.dbms_job.submit(job => job, 
 what => 'begin auto_unseal(); end;', 
next_date => to_date('14-04-2011 00:10:00', 'dd-mm-yyyy hh24:mi:ss'),
interval => 'trunc(sysdate+1)+10/1440'); 
 commit;
end; 自己改一下时间
------解决方案--------------------
SQL code
variable job number;
begin
     dbms_job.submit(:job,'auto_unseal',sysdate,'sysdate+1/1440');
     commit;
end;

------解决方案--------------------