Is it possible to kill a single query in oracle without killing the session?

后端 未结 4 749
囚心锁ツ
囚心锁ツ 2020-12-01 08:32

I would like to be able to kill a user\'s query in Oracle 10.2.0.4 without killing their entire session. This would allow the query to end, but not log that user out of the

4条回答
  •  甜味超标
    2020-12-01 08:58

    You could look at Resource Limits:

    "If a user exceeds a call-level resource limit, then Oracle halts the processing of the statement, rolls back the statement, and returns an error. However, all previous statements of the current transaction remain intact, and the user's session remains connected."

    That assumes the reason for cancelling the SQL is a resource limit, rather than it updating the wrong set of rows (for example). I suspect you wouldn't be able to affect currently running SQL through adding a resource limit.

    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/security.htm#i13767
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dbrm.htm#i1010776
    

提交回复
热议问题