Cancel executing query programmatically
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Cancel executing query programmatically

  1. #1
    Join Date
    Apr 2004
    Posts
    1

    Cancel executing query programmatically

    Dear All.

    I want to stop queries that executes for a long time.

    I know that there is "Ctrl+C" or "Cancel Button" in sqlplus.

    But How can I do it progmmatically, for example: in Delphi. I don't want you to give me example for Delphi, I mean which steps I have to do in order to do it?

    Thanks in advance!!!

  2. #2
    Join Date
    Aug 2001
    Location
    chennai,bangalore
    Posts
    840
    If your using scripts then u can kill the script

    kill -9 scriptname

    Or kill the session

    alter system kill session 'sid,serial#';

    regards
    anandkl
    anandkl

  3. #3
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Or even.. Kill the tread/process at OS level
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  4. #4
    Join Date
    Aug 2002
    Location
    Atlanta
    Posts
    1,187
    a more elegant approach would be to create a resource plan and consumer groups so that users in X group can be limited to things like how much max execution time, undo quota , cpu usage etc
    I'm stmontgo and I approve of this message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width