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: Korn Shell & Sqlplus

Re: Korn Shell & Sqlplus

From: Mohammad Rafiq <rafiq9857_at_hotmail.com>
Date: Tue, 21 May 2002 12:27:00 -0800
Message-ID: <F001.004667DE.20020521122700@fatcity.com>


I must agree with Jared on this practice. By following this practice, you never bounce database to just get rid of hanging sessions holding locks as some listers are complaining about that they had to bounce database to get rid of hanging sessions becuase they killed process on database level first.

Regards
Rafiq

Reply-To: ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Date: Tue, 21 May 2002 11:47:10 -0800

Stephane Faroult wrote:

    Killing Oracle server processes is definitely bad manners. Especially   if you are using MTS. Even if you are not, the proper way to kill an   Oracle process is to use ALTER SYSTEM KILL SESSION. I think that you   should use the DBMS_APPLICATION_INFO package to set something like 'Hey!   Shoot me!' in your CLIENT_INFO column in V$PROCESS - it would make it   easier to another process to log as DBA, spot the process and bang.


Stephane,

We will certainly disagree on that. I contend that you should *always* kill the process first. The reason being that using 'ALTER SYSTEM KILL SESSION' has a nasty habit of hanging sessions that are holding locks.

I've seen it happen on all versions from 7.0.16 - 8.1.6, on DG/UX, Windows NT 4.0 and Solaris 2.5 - 2.6.

It has become my habit to always kill the process ( if dedicated server ) or NT thread first. If the session still appears in v$session, use ALTER SYSTEM KILL SESSION to finish it off. Works every time.

Doing it Oracle's way has necessitated too many database bounces for my tastes.

Jared

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
   INET: Jared.Still_at_radisys.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). MOHAMMAD RAFIQ _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mohammad Rafiq INET: rafiq9857_at_hotmail.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).
Received on Tue May 21 2002 - 15:27:00 CDT

Original text of this message

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