Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Cancelling User sessions
Please excuse this reply if a similar answer has already been posted (I only
caught the tail end of the thread).
You could have your DBA modify the default profile (or create a new profile and assign it to all users) that sets the IDLE_TIME resource to some value other than unlimited. This resource restriction will cause any user connection to be disconnected after being inactive on the system for any amount of time greater than this value. Hope this helps.
Jeff S
Bhooshan Prabhu <bhooshan.prabhu_at_citicorp.com> wrote in message
news:377C938C.23D3FDF6_at_citicorp.com...
> Hi Nigel,
>
> A session is killed by issuing command "ALTER SYSTEM KILL SESSION 'x,n'".
> For a user with non-dba privileges to achive this, each such user will
have
> to have a ALTER SYSTEM privilege granted to her / him. I don't think, your
> DBA will agree to that.
>
> Your DBA can write a piece of code, which can look for sessions, that have
> been inactive for a acceptable time limit i.e. 30 minutes or so and issue
> statements to kill these sessions. This piece of code, can then be
submitted
> as a dbms_job so that Oracle will execute it, at intervals as specified
> during job submission.
>
> Regards
> Bhooshan
>
> --------------------------------------------------------------------------
![]() |
![]() |