从JOBS中的包调用过程

时间:2012-08-22 11:45:14

标签: oracle plsql jobs oracle-sqldeveloper

enter image description here

我在Oracle SQL Developer中工作,我在包体中创建了一个包“XXX”和一个过程UPDATE_CUSTOMERS_RECORDS。我测试了这个程序并且有效。

但我想在JOBS中调用此过程。我找到了一份工作,在“工作类型”中,我选择PL/SQL Block选项并输入MERITUM.update_customers_records(),但它不起作用:

"ORA-06550: line ORA-06550: line 1, column 506:
PLS-00103: Encountered the symbol "" when expecting one of the following:

   := . ( % ;
The symbol ";" was substituted for "" to continue.
, column :"

我也试过了call MERITUM.update_customers_records(),但也遇到了同样的错误。

2 个答案:

答案 0 :(得分:0)

MERITUM.update_customers_records();

;应该被使用。

答案 1 :(得分:0)

J找到了解决方案。代替

MERITUM.update_customers_records();

PL/SQL Block中我放

declare
begin
  MERITUM.update_customers_records();
end;

结束终于有效:)