Database Administration (MOSC)

MOSC Banner

foreign keys and indices

edited Aug 17, 2010 2:35AM in Database Administration (MOSC) 7 commentsAnswered
Hi.

I have a script that was generated by a data modelling tool (ER Studio, I belive) to create a bunch of tables in oracle 11.1 DB.  For most of the tables, the tool generates an index on any combination of the columns as long as there is a FK defined on these columns. For instance if my table has a primary key on columns col1, col2, col3, there will be a unique index on these three columns. If there is a FK on the columns col1 and col2, there will be another index on col1 and col2.

I do remember that a few versions back there was a requirement to index the columns that are part of a FK to preven oracle from locking tables, but this was probably version 8 or 9. I don't think that this is needed in oracle 11 (or 10 for that matter). Am I correct here?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center