I'm trying to find the best way to allow an Oracle 8i and 9i (running in True64 Unix) SQL Plus user who is not a DBA to kill his/her own session(s). I don't want to give the user the alter system privilege, just the ability to kill sessions running with his/her user id. I know how to find session information like SQL text to help the user identify the session(s) to kill. I have created a procedure which will accept a session id and serial number, verify that the user calling the procedure is the owner of the session to be killed and that the session to be killed is not the one calling procedure itself. The procedure uses dynamic SQL to issue the alter system kill session request. Does anyone have a better way to let users kill only their own sessions?
Software/Hardware used:
ASKED:
August 30, 2005 12:00 PM
UPDATED:
August 31, 2005 7:39 PM
I was hoping to avoid the hassle and cost of licensing and distributing additional software to the users, but will keep that in mind. We are already using other Quest software though. I’ll check into it. Thanks for the suggestion.
Saw this orakill utility mentioned at the following site:
http://www.dbazine.com/oracle/or-articles/moore3
Still have to identify the desired SPID to kill.
Most of what I’ve read about orakill recommends it for DBA use only and then, only if less drastic methods fail. When it comes to users killing sessions, I want to limit that to killing their own sessions and not allowing them any system privileges in the process. I can do that with dynamic SQL, but was hoping to avoid that. Thanks for the response.
Steve