查询数据库分区表中非分区的索引。

select

dba_tables.table_name,
dba_indexes.index_name,
dba_indexes.index_type,
dba_indexes.partitioned,
dba_indexes.uniqueness

 

 from dba_tables, dba_indexes
where 1 = 1
and dba_tables.owner = dba_indexes.owner
and dba_tables.table_name = dba_indexes.table_name

and dba_tables.owner = 'RMS'
and dba_tables.partitioned = 'YES'
and dba_indexes.partitioned = 'NO'
and dba_indexes.uniqueness = 'NONUNIQUE'

 

你可能感兴趣的:(数据库)