How to Find When a User’s Password Was Last Changed in Oracle

Share:
Article Summary

Learn how to track when a user's password was last changed in Oracle with SQL queries and methods for effective monitoring.

Someone reported a login error:

ORA-01017: invalid username/password; logon denied

If you suspect a password change has occurred without notification, you can quickly verify the last password change datetime in Oracle using the following query:

SELECT PASSWORD_CHANGE_DATE  
FROM DBA_USERS  
WHERE USERNAME = 'W3BUDDY';

Output Example:

PASSWORD_CHANGE_DATE  
--------------------  
2024-06-17 11:34:52

This confirms the exact date and time the password for user W3BUDDY was last modified. Ensure you have sufficient privileges to query the DBA_USERS view.

Also read this:

https://w3buddy.com/oracle-user-management-complete-guide/
Was this helpful?

Written by

W3buddy
W3buddy

Explore W3Buddy for in-depth guides, breaking tech news, and expert analysis on AI, cybersecurity, databases, web development, and emerging technologies.