Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

kill all sessions of a special user

611050Jun 22 2009 — edited Jun 23 2009
Hi all,
I'm not very familar with PL/SQL but I think this will help my on my "issue".

Sometimes I need to kill all current sessions (most times 36 sessions) of a single database user.
All sessions have a different sid and serial# and manually executing "alter system kill session 'xxx,yyyy' isn't really funny.

Im thinking of a small PL/SQL script which receives the dbuser name as parameter and then killing all sessions of the user.

Could please anyone give ma a hint or a short example on this??

Many Thanks
Joerg

Edited by: Joerg Lang on 22.06.2009 12:38
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2009
Added on Jun 22 2009
35 comments
43,046 views