ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Don't Kill That Process - Suspend It!(转)

Don't Kill That Process - Suspend It!(转)

原创 Linux操作系统 作者:lsq_008 时间:2010-12-28 13:54:24 0 删除 编辑

Have you ever had to kill a long-running batch process because it had overrun its window and was affecting online performance? Well, next time, think again, because there may be a better solution. You may be able to suspend such a process instead of killing it.

If you kill the process it may take longer to roll back than it would have needed to run to completion, and all of the resources used will have been wasted. However, there is an undocumented command that can be used to suspend an Oracle process indefinitely. If you suspend the process, it will consume no more resources until you resume it.

The APT scripts suspend_process.sql and resume_process.sql can be used to suspend and resume Oracle processes. However, don't try to use them under NT, before release 8.1.6, because they suspend the current session instead!

There are, however, two circumstances in which suspending and later resuming a process is not suitable. These are:

  1. If other processes need locks that the long-running process is holding in an incompatible mode.
  2. If the long-running process is dependent for read consistency on rollback segment information that would be overwritten while it is suspended.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10972173/viewspace-682708/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
十余年大型金融及电信系统数据库管理经验,曾服务于中国建设银行、中国移动。对oracle,mysql数据库有深入了解。 擅长python开发,独立开发了开源数据库自动化监控运维平台Power Monitor。

注册时间:2008-02-29

  • 博文量
    335
  • 访问量
    1369148