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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Identifying indexes

Re: Identifying indexes

From: Arup Nanda <arupnanda_at_hotmail.com>
Date: Fri, 22 Nov 2002 11:33:57 -0800
Message-ID: <F001.00509A30.20021122113357@fatcity.com>


The only indexes that enforce a constaint are primary key and unique key indexes. You can easily spot them using

SELECT INDEX_NAME, OWNER
FROM DBA_INDEXES
WHERE UNIQUENESS = 'NONUNIQUE' However, beware, there may be some unique indexes that may have been created for performance reasons only, even though a secondary intent may be to enforce a unique constraint. For instance Social Security Numbers are probably unique, guranteed pretty much by the application but an index defined on them will be defined as unique as unique indexes perform better. Therefore the intent here was not to enforce the constraint but rather to design a better index.

HTH Arup Nanda
www.proligence.com
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Friday, November 22, 2002 1:39 PM

> I am trying to find out what indexes are in the database only for
performance
> reasons and do not enforce a constraint. What would be the query to do
that?
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: <cemail2_at_sprintmail.com
> INET: cemail2_at_sprintmail.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Arup Nanda
  INET: arupnanda_at_hotmail.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Nov 22 2002 - 13:33:57 CST

Original text of this message

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