How to Disconnect or Expire the Idle Oracle 10g 11g Sesssions Automatically Using Profile IDLE_TIME Resouce

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
In many times we wanted to implement the automatic session expiry for the idle session in the databases which are having huge number of user session. Suppose if you wanted to expire the Oracle sessions which are idle more than 3 minutes.

Step 1. Create new profile with IDLE_TIME parameter as 3.


SQL> CREATE PROFILE TEST
LIMIT PASSWORD_REUSE_MAX 10
PASSWORD_REUSE_TIME 30
IDLE_TIME 3 ;
Profile created.

Step 2. Assign the new profile to the users which need to be automatically expired.
SQL> alter user scott profile test;

User altered.

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer