查找出失效索引,然后放入对应的用户库中执行
SELECT 'alter index ' ||INDEX_NAME || ' REBUILD;' INDEX_NAME,
INDEX_TYPE,
TABLESPACE_NAME,
TABLE_TYPE,
STATUS
FROM DBA_INDEXES
WHERE STATUS = 'UNUSABLE'
标签:STATUS,INDEX,NAME,index,REBUILD,xxx,01502,TYPE
来源: https://www.cnblogs.com/lhlworklife/p/16676001.html