Oracle dbms_scheduler - 对系统日期的更改做出反应
我有一个在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您要从 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.