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: Is index used for constraint enforcement?

Re: Is index used for constraint enforcement?

From: Brian Peasland <dba_at_remove_spam.peasland.com>
Date: Tue, 2 Sep 2003 15:57:20 GMT
Message-ID: <3F54BDE0.E9168F28@remove_spam.peasland.com>


Go back and look at USER_CONSTRAINTS again. If the constraint requires an index, then the INDEX_OWNER, INDEX_NAME columns of USER_CONSTRAINTS will tell you which index that specific constraint uses.

HTH,
Brian

Marko Kimpel wrote:
>
> I'm using Oracle 8.1.7.
>
> How can I determine if a given table index is required for enforcement
> of a constraint (e.g. unique or pk constraint)? Didn't find usefull
> information in USER_INDEXES or USER_CONSTRAINTS.
>
> (Assuming the same name of index and constraint does not work since
> Oracle may use an existing index when creating an constraint and thus
> use different names.)
>
> Marko

-- 
===================================================================

Brian Peasland
dba_at_remove_spam.peasland.com

Remove the "remove_spam." from the email address to email me.


"I can give it to you cheap, quick, and good. Now pick two out of
 the three"
Received on Tue Sep 02 2003 - 10:57:20 CDT

Original text of this message

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