Forked from ryanthames/GenerateUnusableIndexRebuildStmts.sql
Created
April 28, 2017 23:56
-
-
Save RichVRed/a3715238dd1d5fbb450d15795352f737 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