oracle索引查询

--查看分区表索引
SELECT A.TABLE_NAME,A.TABLE_OWNER,A.INDEX_NAME,A.INDEX_TYPE,A.STATUS UISTATUS,C.STATUS UIPSTATUS
FROM USER_INDEXES A, USER_TAB_PARTITIONS B, USER_IND_PARTITIONS C
WHERE A.TABLE_NAME = B.TABLE_NAME
AND A.INDEX_NAME = C.INDEX_NAME;

--查看所有索引
SELECT A.TABLE_NAME,A.TABLE_OWNER,A.INDEX_NAME,A.INDEX_TYPE,A.STATUS
FROM USER_INDEXES A;

你可能感兴趣的:(oracle)