Allow users to kill their own Oracle Sessions

pts.
Tags:
Oracle
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Can you install a Tool (e.g. TOAD) on the End-User’s desktop which they could use to kill their own session through.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Stevewaltz
    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.
    0 pointsBadges:
    report
  • Kurthp
    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.
    195 pointsBadges:
    report
  • Stevewaltz
    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
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following