oracle: ocp题解与实验(15/205)

题目:

15. You work as a database administrator at Certkiller .com. In your production 
database there is a job, CALC_STAT, which has been scheduled to run every Friday at 5.00 p.m. 
CALC_STAT updates the optimizer statistics for the objects owned by the APPS schema. You want the task
to be generic, there by allowing users to modify the attributes of the task at run time without 
affecting the original task.Which component of Oracle Scheduler must you define to achieve this?
A. Window
B. Program
C. Job class
D. Window group
Answer: B

题目翻译:作为Certkiller.com的数据管理员,在生产数据库上有一个job名为CALC_STATE,已经计划每周五下午5点运行。它的功能是为apps schema拥有的objects更新optimizer statistics。你希望这个工作是generic的,因此允许用户可以在运行时间修改工作的attributes参数,而不影响原先的task。哪个oracle scheduler模块组件可以用来完成这项工作?
答案解释:

Programs
Programs provide a layer of abstraction between the job and the action it will perform.They are created with the DBMS_SCHEDULER.CREATE_PROGRAM procedure:
PROCEDURE CREATE_PROGRAM
Argument Name                               Type                                 In/Out  Default?
-------------------------------------------    ------------------------------   ------    --------
PROGRAM_                                     NAME VARCHAR2         IN
PROGRAM_TYPE VARCHAR2                                               IN
PROGRAM_ACTION VARCHAR2                                           IN
NUMBER_OF_ARGUMENTS          BINARY_INTEGER         IN          DEFAULT
ENABLED BOOLEAN                                                              IN          DEFAULT
COMMENTS VARCHAR2                                                        IN          DEFAULT

By pulling the “what” of a job out of the job definition itself and defining it in a program, it becomes possible to reference the same program in different jobs, and
thus to associate it with different schedules and job classes, without having to define it many times
. Note that (as for a job) a program must be ENABLED before it can be used. 

Program就是这个作用。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值