Oracle dbms_scheduler - 对系统日期的更改做出反应

发布于 2024-07-08 22:39:55 字数 241 浏览 7 评论 0原文

我有一个在 Oracle 10.2.0 中运行的 dbms_scheduler-Job。

当我将系统日期更改回昨天时,该作业将等待一天才能继续工作。 原因是 next_run_date 没有改变。

这种情况不会经常发生,但有时有人决定更改系统日期,而不考虑甚至不知道 Oracle 作业正在运行。

关于如何让我的作业按照配置的时间间隔运行(无需手动更改)有什么建议吗?

I've got a dbms_scheduler-Job running in Oracle 10.2.0.

When I change the system date back to yesterday, the job will wait for one day to continue its work. The reason for this is that next_run_date does not change.

This does not happen regularly, but sometimes someone decides to change the system date without thinking or even knowing about oracle jobs running.

Any suggestions on how to keep my job running with the configured interval (without having it to change manually)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美羊羊 2024-07-15 22:39:56

如果您要从 Oracle 底层更改系统日期,您的双手可能会被束缚。 您定期更改系统日期是否有原因? 如果是这样,也许您应该创建一个脚本来执行此操作,并让该脚本也更新 next_run_date。

If you are changing the system date out from underneath Oracle, your hands might be tied. Is there a reason you are regularly changing the system date? If so, perhaps you should create a script for doing so, and have that script also update next_run_date.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文