If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > kill an oracle process

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-03, 09:14
dexter_modem dexter_modem is offline
Registered User
 
Join Date: Jun 2003
Posts: 14
kill an oracle process

does oracle have a way of listing the processes? and let me kill one?

I logged into the system today and oracle was useing all of the processor strength. when I run top on the machine I see this.

PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
9433 oracle 19 0 238M 238M 235M R 219M 95.5 23.5 17:38 oracle

It is really chewing up my system. Can I just kill the process with a signal 9?
Reply With Quote
  #2 (permalink)  
Old 07-09-03, 16:09
MicheleDD MicheleDD is offline
Registered User
 
Join Date: Jul 2003
Location: Germantown, MD
Posts: 5
killing session

If you have the privileges, you can query the v_$session table for the SID, SERIAL#, osuser, username, status for all current sessions. Once you have identified the session that is causing the problem, if you have the privileges, you can submit the following command -
ALTER SYSTEM KILL SESSION 'SID,SERIAL#';
replacing SID and SERIAL# with the values from the query.

If you don't have the privileges, you will need to work with your DBA to do this.

There is another table that can show you what query the session is trying to execute, but I can't recall it at this time.

I hope this helps...
Reply With Quote
  #3 (permalink)  
Old 07-09-03, 16:14
aruneeshsalhotr aruneeshsalhotr is offline
Registered User
 
Join Date: Jul 2003
Location: US
Posts: 314
quering the v$session objects

use the following command to see all the parameters of the various sessions of oracle.

select * from v$session.

Also it comes in handy, when u have to know how many sessions are concurrent.

select count(*) from v$session.


The second query really comes in handy when u have a multi-user system.
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

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