Created
November 11, 2015 13:10
-
-
Save ryanthames/b9caafd0edbfe5f5e152 to your computer and use it in GitHub Desktop.
Finding and generating rebuild index SQL statements for unusable indexes in Oracle.
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 'alter index '||OWNER||'.'||INDEX_NAME||' rebuild online;' | |
| from DBA_INDEXES | |
| WHERE STATUS = 'UNUSABLE'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment