📜  oracle last connexion - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:02.886000             🧑  作者: Mango

代码示例1
SELECT a.USERNAME, max(TIMESTAMP) FROM DBA_AUDIT_TRAIL a
WHERE ACTION_NAME = 'LOGON' AND USERNAME IN ('MY_USER')
GROUP BY USERNAME ORDER BY 1;