其他分享
首页 > 其他分享> > ORA-01502: index 'xxx' or partition of such index is in unusable state

ORA-01502: index 'xxx' or partition of such index is in unusable state

作者:互联网

查找出失效索引,然后放入对应的用户库中执行

 

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