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 -> How does unique index work?

How does unique index work?

From: John <jbradshaw777_at_yahoo.com>
Date: 3 Dec 2003 18:07:57 -0800
Message-ID: <f2f59d82.0312031807.4cf31d42@posting.google.com>


Strange question. But can somebody shed some light on the internal workings of an unique index?

  1. Insert 1 row into a table with an unique index on it.
  2. Old data and index blocks that the insert statement touched are move to rollback segment.
  3. ORALCE enforces the uniqueness due to the index. How? By doing a full scaning on the table column and the index?
  4. Insert another row into the table. How does ORACLE enforce the uniqueness? ORACLE does not need to look up the rollback segment to check for the uniqueness, right?

Thanks!

John Received on Wed Dec 03 2003 - 20:07:57 CST

Original text of this message

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