Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Question: cleaning up PK indexes

Re: Question: cleaning up PK indexes

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 29 Apr 2005 23:23:02 +0200
Message-ID: <1b9571db5qailpju8e9qohn7i0mvsp6921@4ax.com>


On 29 Apr 2005 14:15:02 -0700, "DW" <dwhittier_at_shaw.ca> wrote:

>What I'd like to do is something like SELECT SEGMENT_NAME FROM
>SYS.DBA_SEGMENTS WHERE SEGMENT_TYPE = 'INDEX' and SEGMENT_SCRIPT LIKE
>'%UNIQUE INDEX%'. I know that SEGMENT_SCRIPT is not part of that view,
>but this is what I want to find.

dba_indexes has an uniqueness column and dba_constraints has a constraint_type column where constraint_type ='U' refers to the unique constraint.

select * from dict shows you all dictionary views and select * from dict_columns all columns in those views.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Apr 29 2005 - 16:23:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US