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: script to kill session

Re: script to kill session

From: Ruth Gramolini <rgramolini_at_tax.state.vt.us>
Date: Tue, 12 Feb 2002 08:21:13 -0800
Message-ID: <F001.0040CA94.20020212070333@fatcity.com>


Here is a shell script I use in UNIX, restrict_and_kill. I included the sql command to build the sql with the kill commands, killuser_build. It excludes users with restricted session access and puts the database into restricted session mode. You can modify these scripts to suit your needs.

HTH,
Ruth
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Monday, February 11, 2002 4:58 PM

> Hi,
>
> We are looking for a script that will grep the sid from v$session and
> kill all the sessions of a particular user. The script will prompt the
> username and kill all the related sessions.
>
> Thanks
> --Harvinder
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Harvinder Singh
> INET: Harvinder.Singh_at_MetraTech.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).

restrict_and_kill
Description: Binary data

killusers_build.sql
Description: Binary data


Received on Tue Feb 12 2002 - 10:21:13 CST

Original text of this message

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