Managing Databases using Enterprise Manager (MOSC)

MOSC Banner

Metric Extension - Password Expiration Date

edited Oct 2, 2018 8:55AM in Managing Databases using Enterprise Manager (MOSC) 5 commentsAnswered ✓

I would like to use Enterprise Manger in order to check exipration days of oracle user on my infrastructure database.

I created a metric extension with this query:

select username, account_status, trunc(expiry_date-sysdate) days_to_expire

from dba_users

where expiry_date is not NULL

and account_status in ('OPEN','EXPIRED')

and username not in ('SYS','SYSTEM','SCOTT','JOSH');

The query works but I've some negative results for some users and I don't want false positive alerts.

I'll checked the users with negative results and I've found that they are open but with expiration_date populated with an old date.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center