Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > How can I delete the running procedure?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-08-07, 23:29
jp7234 jp7234 is offline
Registered User
 
Join Date: Aug 2006
Posts: 49
How can I delete the running procedure?

Hi, everyone ,thank you in advance!

I have finished a procedure. But it has run over 3 hours. I found that there is a LOOP statement without EXIT statement. Now I want to stop the procedure and delete it.

In the tool "UTF-8 TeraTerm Pro", I have used the keyes [CTRL]+[C], I hope I can stop the procedure. But I failed. How can I delete the running procedure with Oracle 10g database running in the operation system "Solaris"?

Thank you very much!
Reply With Quote
  #2 (permalink)  
Old 10-08-07, 23:47
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 3,569
From the Solaris command line issue:
$ kill -9 <pid>
where <pid> is the process id of the offending OS process.

You could try:
SQL> ALTER SYSTEM KILL SESSION .......

but I expect the offending session to be tagged as KILLED or SNIPED but the session won't clear until after OS process get terminated
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On