Created
July 31, 2015 19:39
-
-
Save caiogallo/918fc569f86ddaa280e0 to your computer and use it in GitHub Desktop.
Select falhas tentativas login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT username, count(1) falhas | |
FROM sys.dba_audit_session | |
WHERE returncode != 0 | |
and trunc(timestamp) >= trunc(sysdate) | |
group by username | |
union | |
SELECT '>>TOTAL DE ERROS', count(1) falhas | |
FROM sys.dba_audit_session | |
WHERE returncode != 0 | |
and trunc(timestamp) >= trunc(sysdate) | |
ORDER BY 2,1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment