I'm creating a utility to compare tables in two different schemas of a database. I need to compare the indexes as well. For that I'm using the static views all_ind_columns and user_ind_columns. My problem is that i'm not able to distinguish between Primary Keys and other indexes. In user_indexes only index name and index columns are given. Is there any way to obtain all primary key indexes and other indexes in a schema seperatly.