Re: kill query w/o killing session?



On Tue, 30 Aug 2005 17:46:01 -0700, susana73 wrote:

> I've been using "alter system kill session 'sid,serial';" to kill
> sessions. Now I am wondering is there a way to kill just the query of
> a session/sid without killing the session/sid itself? Or is it simply
> not recommended?

Kill the client with kill -HUP or kill -INT and write a signal handler
which will cancel any outstanding calls with OCIBreak() and resume the
session. That can be done if the application is your own, not with sqlplus.
With DBI you can disconnect the handle and immediately reconnect, thus
simulating the desired behavior.

--
http://www.mgogala.com

.



Relevant Pages

  • Re: kill query w/o killing session?
    ... Now I am wondering is there a way to kill just the query of a session/sid without killing the session/sid itself? ... Resource Manager will use the statistics in the CBO to generate an estimated completion time for each database operation. ...
    (comp.databases.oracle.server)
  • kill query w/o killing session?
    ... I've been using "alter system kill session 'sid,serial';" to kill ... Now I am wondering is there a way to kill just the query of ... a session/sid without killing the session/sid itself? ...
    (comp.databases.oracle.server)
  • Re: kill query w/o killing session?
    ... Now I am wondering is there a way to kill just the query of a session/sid without killing the session/sid itself? ...
    (comp.databases.oracle.server)
  • Re: Question for Silat Guys: Is This Good Silat?
    ... 'Peace' is not the tolerance of oppression. ... it's all in where you're standing when you kill them. ... The Commandment more likely translates as prohibiting unjustified killing. ... A million and a half men casualty to the War Between States. ...
    (rec.martial-arts)
  • Re: Dillema with right livelihood
    ... and printed the brochure with an untroubled spirit. ... First of all nobody was asking the person to kill anyone. ... tantamount to killing, nor was it taking his refuge vows lightly. ... It is a matter of control, intention, and just how much power one ...
    (talk.religion.buddhism)