Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> REPOST: Re: Stop/kill runnind dbms_job process ?
"Henry" <henry_2303_at_hotmail.com> wrote in message news:<a2ptsd$499_at_dispatch.concentric.net>...
> Is there a way to do it ?
>
> 1. dbms_job.remove ... does not stop running job
>
> 2. alter system kill session ...
> in my testing example it returns ORA-00031: session marked for kill but then
> it creates new session with same sid but new serial# and remains there even
> is my testing job is one-time run only (the interval parameter for job is
> null).
> The second thing is that for alter system kill session you need system
> privileges and I would like to be able to do it from application (user
> account).
Henry,
what you can do is
1) dbms_job.broken
2) alter system kill session
now it should be stopped permanently. Make a procedure of it owned by
a user that has the correct privs and grant the procedure to a user
role. A normal user can call the proc and uses the privileges of the
proc owner.
Ronald.
This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers. Received on Fri Jan 25 2002 - 03:19:39 CST