SELECT OWNER, INDEX_NAME,STATUS FROM ALL_INDEXES WHERE INDEX_NAME='SYS_C0010302'
查看status狀態(tài)是否為unusable
如果是則對這個索引進(jìn)行重置:ActiveRecord::Base.connection.execute("ALTER INDEX SYS_C0010302 REBUILD")
注:https://blog.csdn.net/u013948858/article/details/80306860