SELECT OWNER, INDEX_NAME,STATUS FROM ALL_INDEXES WHERE INDEX_NAME='SYS_C0010302'
查看status状态是否为unusable
如果是则对这个索引进行重置:ActiveRecord::Base.connection.execute("ALTER INDEX SYS_C0010302 REBUILD")
注:https://blog.csdn.net/u013948858/article/details/80306860