SELECT username, expiry_date
FROM dba_users;
Main Topics
Browse All TopicsIn my Oracle 8i database, I have set up a profile that requires users to change their password every 90 days (policy requires it, and sarbanes/oxley enforces it.) My users change their password using a 3rd party tool. If the don't change it, it simply locks them out without warning.
Is there a query I can run, that will tell me when a user's password is about to expire, so I can send them an automatic email that it's nearly time to change their password again?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I'm sorry rbrooker but...
SQL> SELECT username, expiry_date
2 FROM dba_users
3 WHERE username='SCOTT';
USERNAME EXPIRY_DA
--------------------------
SCOTT
SQL> CREATE PROFILE proftest
2 LIMIT PASSWORD_LIFE_TIME 10;
Profile created.
SQL> ALTER USER scott
2 PROFILE proftest;
User altered.
SQL> SELECT username, expiry_date
2 FROM dba_users
3 WHERE username='SCOTT';
USERNAME EXPIRY_DA
--------------------------
SCOTT 05-NOV-06
SQL>
ploubier,
i just updated that this might help the author who posted this question. I cannot go and validate each users comments which are posted for each and every question on which i am going to write something. Kindly understand that i have not posted it for points.
AptDev,
my comments are duplicate comments. Just ignore them.
Thanks
Business Accounts
Answer for Membership
by: rbrookerPosted on 2006-10-25 at 16:00:07ID: 17807817
Hi,
you can query the last time a person set their password from sys.user$ and add the expiration duration from what profile the user has...
good luck ... :)