问题描述
我想创建一个每周日(不是周末)从 09:00 到 20:00 每 10 分钟运行的 Oracle DBMS 作业.我想知道我是否可以在作业定义的 FREQ
参数中做到这一点,或者我必须创建一个 New Maintenance Window
.
I want to create an Oracle DBMS Job that runs every week day (not on weekends) from 09:00 to 20:00 every 10 min. I wonder if I can do that in the FREQ
parameter of the job definition or I have to create a New Maintenance Window
.
似乎在提出的解决方案中,作业仅在 9 和 20 运行,并且在第一次执行后,当我运行此查询时
It seems that with the solution proposed, the job runs at 9 and 20 only, and after first execution, when I run this query
我收到了 09/10/17 20:01:27,000000000 欧洲/马德里
推荐答案
你可以使用这个:
当这个调度器负责时,我得到以下结果:
When this scheduler in charge I get the results below :
哪里:
更新:
如果您无权访问 dba_
视图,请考虑将这些前缀替换为 user_
,并从选择列表中删除 owner
列对于最后一个查询
If you have no access to dba_
views, then consider to replace those prefixes with user_
, and remove owner
column from the select list for the last query as
这篇关于如何在窗口中安排 Oracle DBMS 作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!