可以使用如下sql语句:
select t1.username,t1.logon_time last_logon_time,t2.account_status,created 账号创建时间 from (select username,max(timestamp) logon_time from dba_audit_session where action_name='LOGON' and username in (select username from dba_users) group by username) t1 left join (select username,account_status,created from dba_users) t2 on t2.username=t1.username
以上
本文提供了一种使用SQL语句来查询和展示用户登录状态、最后登录时间、账户状态及账号创建时间的方法。通过联接两个子查询,分别从会话审计和用户信息中获取所需数据。
102

被折叠的 条评论
为什么被折叠?



