PLS-00306:“ JOB”调用中参数的数量或类型错误

时间:2018-12-21 10:14:58

标签: oracle plsql

当我在Oracle 11g中手动运行函数时,出现以下错误。

  

从命令第1行开始的错误:错误报告:
  ORA-06550:第22行,    第8列:PLS-00306:对的调用中参数的数量或类型错误    '工作'   ORA-06550:第22行,第1列:PL / SQL:语句已忽略
   06550。00000-“%s行,%s列:\ n%s”   *原因:通常是PL / SQL编译错误。
  *动作:

我正在运行的代码是:

DECLARE
     xyz                          config_jobs.id%TYPE;
     p_daemon_host_name           managed_devices.host_name%TYPE;
     p_target_device_id           managed_devices.id%TYPE;
     p_target_device_host_name    managed_devices.host_name%TYPE;
     p_target_device_ip_address   managed_devices.ip_address%TYPE;
     p_type                       daemon_job_types.key%TYPE;
     p_set_of_files               set_of_files; -- for config download
     p_plugin_name                config_collection_classes.name%TYPE;
     p_plugin_date                config_collection_classes.timestamp%TYPE;
     p_plugin                     config_collection_classes.class%TYPE;
     p_reason                     VARCHAR2(200); -- 'M'anual, backup before/after 'U'pdate,'S'cheduled collection
     p_username                   config_jobs.username%TYPE;
     p_ft_key                     file_types.key%TYPE;
     p_oids                       set_of_oids;
     p_properties                 BLOB;
     p_max_thread_count           job_daemons.max_threads%TYPE := NULL;
     p_current_thread_count       job_daemons.current_threads%TYPE := NULL;
     p_jd_version                 job_daemons.version%TYPE := NULL;
BEGIN
     xyz := device_job.job(p_daemon_host_name,p_target_device_id,p_target_device_host_name,p_target_device_ip_address
    ,p_type,p_set_of_files,p_plugin_name,p_plugin_date,p_plugin,p_reason,p_username,p_ft_key,p_oids,
     p_properties,p_max_thread_count,p_current_thread_count,p_jd_version);
END;

我的软件包Device_job中的主要功能如下:

 FUNCTION job (
     p_daemon_host_name           IN managed_devices.host_name%TYPE,
     p_target_device_id           OUT managed_devices.id%TYPE,
     p_target_device_host_name    OUT managed_devices.host_name%TYPE,
     p_target_device_ip_address   OUT managed_devices.ip_address%TYPE,
     p_type                       OUT daemon_job_types.key%TYPE,
     p_set_of_files               OUT set_of_files,        -- for config download
     p_plugin_name                OUT config_collection_classes.name%TYPE,
     p_plugin_date                OUT config_collection_classes.timestamp%TYPE,
     p_plugin                     OUT config_collection_classes.class%TYPE,
     p_reason                     OUT VARCHAR2,        -- 'M'anual, backup before/after 'U'pdate,'S'cheduled collection
     p_username                   OUT config_jobs.username%TYPE,
     p_ft_key                     OUT file_types.key%TYPE,
     p_oids                       OUT set_of_oids,
     p_properties                 OUT BLOB,
     p_max_thread_count           IN job_daemons.max_threads%TYPE := NULL,
     p_current_thread_count       IN job_daemons.current_threads%TYPE := NULL,
     p_jd_version                 IN job_daemons.version%TYPE := NULL
) RETURN config_jobs.id%TYPE IS

0 个答案:

没有答案