Created
July 15, 2022 08:34
-
-
Save Clijsters/23ae3df45481f9a25268a7aceeab10f9 to your computer and use it in GitHub Desktop.
Get query to rebuild all indices by owner in oracle sql
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
with query as ( | |
SELECT index_name FROM all_indexes where OWNER = '&owner' | |
) | |
select | |
'alter index &owner.'|| q.index_name || ' rebuild' || ';' cmd | |
from | |
query q; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment