How do I write a SELECT statement that "show all user accounts" that have not logged into the database for more than 180 days? My goal is to revoke the users accounts roles that have not logged into the database for more the 180 days.
In other words, I need to find the roles that are currently granted to current users who have not logged in for more than 180 days.
I am using Oracle 11g.
Thank you.