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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: UNIX question(killing a process)

RE: UNIX question(killing a process)

From: Uma Sankara_Sivadanam <UmaSankara_Sivadanam_at_satyam.com>
Date: Sat, 11 Nov 2000 13:23:07 +0530
Message-Id: <10676.121824@fatcity.com>


This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.

------_=_NextPart_001_01C04BB4.6EDC9730
Content-Type: text/plain

Yes i got it.Let me put it this way:

        how to find the processes which are in hung state and wait for 15 minutes to see if there is any change in the status and then kill that process?

cheers,
/uma

> ----------
> From: Suzy Vordos[SMTP:lvordos_at_datsit.com]
> Reply To: ORACLE-L_at_fatcity.com
> Sent: Friday, November 10, 2000 11:18 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Re: UNIX question(killing a process)
>
>
> Just because a process is idle, doesn't mean it should be killed. If
> you're trying to manage idle database connections, do this by setting
> IDLE_TIME in the user's PROFILE. Rarely, if ever, do I kill an Oracle
> process at the OS level.
>
> Suzy
>
> > Uma Sankara_Sivadanam wrote:
> >
> > Hi,
> >
> > Environment:SUNOS 5.6
> >
> > I am working on a script which should check for processes using
> > ps and kill all the processs which are IDLE for more than 15
> > minutes.
> >
> > I need the exact syntax of the PS command(i mean the command
> > options).
> >
> > cheers
> > /uma
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Suzy Vordos
> INET: lvordos_at_datsit.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

------_=_NextPart_001_01C04BB4.6EDC9730
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2650.12">
<TITLE>RE: UNIX question(killing a process)</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Yes i got it.Let me = put it this way:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT COLOR=3D"#0000FF" = SIZE=3D2 FACE=3D"Arial">how to find the processes which are in hung = state&nbsp; and wait for 15 minutes to see if there is any change in = the status and then kill that process?</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">cheers,</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">/uma</FONT>
</P>
<UL>
<P><FONT SIZE=3D1 FACE=3D"MS Sans Serif">----------</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"MS Sans Serif">From:</FONT></B> &nbsp; =
<FONT SIZE=3D1 FACE=3D"MS Sans Serif">Suzy =
Vordos[SMTP:lvordos_at_datsit.com]</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"MS Sans Serif">Reply To:</FONT></B> = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D1 FACE=3D"MS Sans = Serif">ORACLE-L_at_fatcity.com</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"MS Sans Serif">Sent:</FONT></B> &nbsp; = <FONT SIZE=3D1 FACE=3D"MS Sans Serif">Friday, November 10, 2000 11:18 = AM</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"MS Sans Serif">To:</FONT></B> = &nbsp;&nbsp;&nbsp; <FONT SIZE=3D1 FACE=3D"MS Sans Serif">Multiple = recipients of list ORACLE-L</FONT>
<BR><B><FONT SIZE=3D1 FACE=3D"MS Sans Serif">Subject:</FONT></B> = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D1 FACE=3D"MS Sans = Serif">Re: UNIX question(killing a process)</FONT> </P>
<BR>

<P><FONT SIZE=3D2 FACE=3D"Arial">Just because a process is idle, = doesn't mean it should be killed.&nbsp; If</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">you're trying to manage idle database = connections, do this by setting</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">IDLE_TIME in the user's = PROFILE.&nbsp; Rarely, if ever, do I kill an Oracle</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">process at the OS level.</FONT> </P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Suzy</FONT> </P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&gt; Uma Sankara_Sivadanam = wrote:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Hi,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = Environment:SUNOS 5.6</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I = am working on a script which should check for processes using</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ps = and kill all the processs&nbsp; which are IDLE for more than 15</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = minutes.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I = need the exact syntax of the PS command(i mean the command</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = options).</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt; </FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = cheers</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
/uma</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">-- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Please see the official ORACLE-L =
FAQ:</FONT><U> <FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial"><A =
HREF=3D"http://www.orafaq.com" =
TARGET=3D"_blank">http://www.orafaq.com</A></FONT></U>
<BR><FONT SIZE=3D2 FACE=3D"Arial">-- </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Author: Suzy Vordos</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; INET: =
lvordos_at_datsit.com</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Fat City Network = Services&nbsp;&nbsp;&nbsp; -- (858) 538-5051&nbsp; FAX: (858) = 538-5051</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">San Diego, = California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Public Internet = access / Mailing Lists</FONT>
<BR><FONT SIZE=3D2 =

FACE=3D"Arial">---------------------------------------------------------=
-----------</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">To REMOVE yourself from this mailing = list, send an E-Mail message</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">to: ListGuru_at_fatcity.com (note EXACT = spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the message BODY, include a line = containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">(or the name of mailing list you want = to be removed from).&nbsp; You may</FONT> <BR><FONT SIZE=3D2 FACE=3D"Arial">also send the HELP command for other = Received on Sat Nov 11 2000 - 01:53:07 CST

Original text of this message

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