Last active
July 19, 2021 09:38
-
-
Save stelf/74627a70b09cc0454282c46dbafd2ae6 to your computer and use it in GitHub Desktop.
query oracle usage stats
This file contains hidden or 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
--- # this GIST is available under the conditions of | |
--- # https://creativecommons.org/licenses/by/4.0/ | |
SELECT | |
MAX(LAST_SAMPLe_DATE) AS "Last use", | |
NAME AS "Name", | |
CAST (TO_CHAR(SUM(DETECTED_USAGES) / SUM(TOTAL_SAMPLES) * 100, '999') AS VARCHAR2(5)) AS "%" | |
FROM | |
dba_feature_usage_statistics | |
WHERE | |
CURRENTLY_USED = 'TRUE' | |
GROUP BY | |
NAME, | |
CURRENTLY_USED | |
HAVING | |
SUM(DETECTED_USAGES) > 0 | |
ORDER BY | |
NAME ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment