Skip to Main Content

Oracle Database Discussions

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!

How to lock oracle user accounts which are not connecting to the DB

user13372647May 9 2011 — edited May 9 2011
Hello,

I have the following requirements to be implemented in my oracle DB(10.2.0.4).

1. Lock any db user if not has accessed the database for a period of two months
2. Remove the locked users according to the criteria in 1 from the db, after four months

Following is already enabled:
a. session auditing (SQL>audit connect) where last login details of a given account is available in the sys.aud$ table.
b. password life time and grace time is enabled where the dba_users ACCOUNT_STATUS is changed into EXPIRE at the end of password grace period.

Please let me know, what is the way to implement 1 and 2 with minimum manual intervention ?

Thanks
Charles Ranaweera
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 6 2011
Added on May 9 2011
8 comments
25,928 views