Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Orphaned process on the server (how to kill..)

Re: Orphaned process on the server (how to kill..)

From: Thomas Griffin <tgriffin_at_qualitech.com>
Date: 1997/02/19
Message-ID: <330AF663.82F@qualitech.com>#1/1

Eric Hartzenberg wrote:
>
> Hi:
> Could anyone suggest a neat method of killing orphaned Oracle processes
> on a Unix server? These hang around when the client application (Windows
> 3.1 usually) is aborted, usually by a re-boot.
>
> Doing Unix 'ps -fu daemon' gives me a pid, which I can then use to query
> v$process and v$session. This tells me quite a bit about the parent
> process, but I was hoping there would be something to say whether the
> parent process (the Windows app) was still attached or not, so I would
> definitely know that the Unix process was orphaned. Any ideas?
>
> TIA.
> ________________________________________________________________
> | ~~~~~~~~~~~~~~~~~~~~ | ERIC HARTZENBERG | ~~~~~~~~~~~~~~~~~~~ |
> | Email : eric_at_erichome.demon.co.uk Compuserve : 100073,21 |
> | Homepage : www.erichome.demon.co.uk |
> |________________________________________________________________|

You could pipe 'ps -ef|grep LOCAL' to awk. If $3 = 1, kill -9 $2.

-- 
Thomas Griffin
Project Leader
QUALITECH Systems, Inc.
tgriffin_at_qualitech.com
Received on Wed Feb 19 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US