Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9183787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:53:23+00:00 2026-06-17T18:53:23+00:00

Is it possible to passed named arguments to for dbms_scheduler job with a type

  • 0

Is it possible to passed named arguments to for dbms_scheduler job with a type ‘stored_procedure’ ? I’ve tried this way:

-- 1) example dummy procdure
CREATE OR REPLACE PROCEDURE my_test_proc (
 param1 IN NVARCHAR2,
 param2 IN NUMBER,
 param3 IN NUMBER
) IS
BEGIN
-- ...
END;

-- 2)Example dummy job:
BEGIN    
    dbms_scheduler.create_job(
        job_name => 'my_test_job'
        ,job_type => 'STORED_PROCEDURE'
        ,job_action => 'my_test_proc'
        ,start_date => sysdate
        ,number_of_arguments => 3
        ,enabled => FALSE
        ,auto_drop =>FALSE
    );
END;
-- 3)Set named param value:
BEGIN  
    dbms_scheduler.set_job_argument_value(
        job_name => 'my_test_job'
        ,argument_name => 'param1' 
        ,argument_value => 'some value'
    );
END;  

I get following error:
ORA

-27484: Argument names are not supported for jobs without a program. ORA-06512: at “SYS.DBMS_ISCHED”, line 207 ORA-06512: at
“SYS.DBMS_SCHEDULER”, line 602 ORA-06512: at line 2

I successfully set parameter values with set_job_argument_value by using argument_position setting. But there can be cases when I will need to run stored procedures to whom I will need to set only certain parameters and this could not work. Is there a way to pass named argument to stored procedure runed by scheduler job?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:53:24+00:00Added an answer on June 17, 2026 at 6:53 pm

    as the error states, create a program first, then the job on that.

    dbms_scheduler.create_program(program_name        => 'YOUR_PROGRAM',
                                  program_type        => 'STORED_PROCEDURE',                                                          
                                  program_action      => 'my_test_proc', 
                                  number_of_arguments => 2,
                                  enabled             => false,
                                  comments            => 'Comments you want');
    
    dbms_scheduler.define_program_argument(program_name      => 'YOUR_PROGRAM',
                                           argument_name     => 'param1',
                                           argument_position => 1,
                                           argument_type     => 'VARCHAR2',
                                           default_value     => '');
        ..etc, do for all 3.                                         
    
    dbms_scheduler.enable (name => 'YOUR_PROGRAM');
    
    
    dbms_scheduler.create_job(job_name        => 'my_test_job',
                              program_name    => 'YOUR_PROGRAM',
                              start_date      => systimestamp,
                              end_date        => null,
                              ...
    
    dbms_scheduler.set_job_argument_value(job_name          => 'my_test_job',
                                          argument_position => 1,
                                          argument_value    => 'value');
      ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to actually use the type passed as a template for control
Is it possible to get a Type via Type.GetType() when the assembly-qualified name passed
I'm trying to create metaclass in Python (2.7) that will set arguments passed to
Is is possible to access the arguments which were passed to __init__ , without
Possible Duplicate: Finding the Variable Name passed to a Function in C# In C#,
Possible Duplicate: Determine original name of variable after its passed to a function. I
Possible Duplicate: Is there a standard date/time format that can be passed on a
Is it possible to modify the list of defines/include paths passed to the Visual
I need a flexible way to log keyvalue pairs of arguments using System.Diagnostics.Trace. Basically,
Possible Duplicate: When should I make explicit use of the this pointer? I'm wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.