免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5181 | 回复: 4
打印 上一主题 下一主题

schedule.job的job action 怎么传递Procedure的参数? [复制链接]

论坛徽章:
0
1 [报告]
发表于 2009-10-09 15:42 |显示全部楼层

回复 #1 TOADLover 的帖子

job_action => 'OPS.SALES_PKG.UPDATE_SALES_SUMMARY',
Using the Scheduler (9 October 2009)
http://download.oracle.com/docs/ ... heduse.htm#i1009668

论坛徽章:
0
2 [报告]
发表于 2009-10-09 15:45 |显示全部楼层
job_name => 'ops_reports', argument_position => 2, argument_value => '12-DEC-03');
Using the Scheduler (9 October 2009)
http://download.oracle.com/docs/ ... heduse.htm#i1009668

自己通过连接看吧,我想给你拷贝过来,CU上发不上去。

论坛徽章:
0
3 [报告]
发表于 2009-10-09 15:49 |显示全部楼层
Setting Job Arguments

After creating a job, you may need to set job arguments if:

    *

      The inline job action is a stored procedure or other executable that requires arguments
    *

      The job references a named program object and you want to override one or more default program arguments
    *

      The job references a named program object and one or more of the program arguments were not assigned a default value

To set job arguments, use the SET_JOB_ARGUMENT_VALUE or SET_JOB_ANYDATA_VALUE procedures or Enterprise Manager. SET_JOB_ANYDATA_VALUE is used for complex data types that must be encapsulated in an ANYDATA object.

An example of a job that might need arguments is one that starts a reporting program that requires a start date and end date. The following code example sets the end date job argument, which is the second argument expected by the reporting program:

BEGIN
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
   job_name                => 'ops_reports',
   argument_position       => 2,
   argument_value          => '12-DEC-03');
END;
/


Using the Scheduler (9 October 2009)
[url]http://download.orac

论坛徽章:
0
4 [报告]
发表于 2009-10-09 16:16 |显示全部楼层

回复 #6 TOADLover 的帖子

job_type => 'STORED_PROCEDURE',
Using the Scheduler (9 October 2009)
http://download.oracle.com/docs/ ... heduse.htm#i1009668


提到了啊

论坛徽章:
0
5 [报告]
发表于 2009-10-12 09:36 |显示全部楼层

回复 #9 TOADLover 的帖子

BEGIN
DBMS_SCHEDULER.SET_JOB_ARGUMENT_VALUE (
   job_name                => 'ops_reports',
   argument_position       => 2,
   argument_value          => '12-DEC-03');
END;

这种方式不可以吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP