Created
July 13, 2018 01:24
-
-
Save bradbrowne/6a87c1aa8ebca5cd93cb5a43496b1123 to your computer and use it in GitHub Desktop.
Number of seconds to refresh Oracle Materialized View
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
SELECT | |
mview_name, | |
last_refresh_date "START_TIME", | |
CASE | |
WHEN fullrefreshtim <> 0 THEN | |
LAST_REFRESH_DATE + fullrefreshtim/60/60/24 | |
WHEN increfreshtim <> 0 THEN | |
LAST_REFRESH_DATE + increfreshtim/60/60/24 | |
ELSE | |
LAST_REFRESH_DATE | |
END "END_TIME", | |
fullrefreshtim, | |
increfreshtim | |
FROM all_mview_analysis | |
WHERE owner='ASSET'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment