oracle11g - How can I pass parameter needed by procedure that run through Scheduler Program -
i have scheduler program run store procedure requires input parameter.
begin dbms_scheduler.drop_program (program_name => 'myschema.export_schema_starting'); end; / begin sys.dbms_scheduler.create_program ( program_name => 'myschema.export_schema_starting' ,program_type => 'stored_procedure' ,program_action => 'myschema.export_status' ,number_of_arguments => 0 ,enabled => false ,comments => null ); sys.dbms_scheduler.enable (name => 'myschema.export_schema_starting'); end; /
i wonder how can pass parameter export_status procedure
you should able pass parameters using define_program_argument
begin dbms_scheduler.create_program( program_name => 'myschema.export_schema_starting' ,program_type => 'stored_procedure' ,program_action => 'myschema.export_status' ,number_of_arguments => 1 ,enabled => false ,comments => null ); dbms_scheduler.define_program_argument ( program_name => 'myschema.export_schema_starting', argument_position => 1, argument_name => 'status', argument_type => 'varchar2', default_value => 'starting'); dbms_scheduler.enable (name => 'myschema.export_schema_starting'); end;
Comments
Post a Comment