We have Oracle 11g so the following query didn't work.
select USERNAME,LAST_LOGIN from dba_users
Then I searched and people suggested multiple ways and i got confused. What is the correct way to get the last login date for all users in oracle 11g?
select username, logon_time
from v$session
or
SELECT
username,
timestamp
FROM
sys.dba_audit_session
or
select username, timestamp
from dba_audit_Trail
