Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Index and foreign keys

RoberJan 31 2011 — edited Jan 31 2011
Hi, we have an Oracle RAC 10gR2 EE on SLES 10.

I have tables with 300.000.000 of records. These tables need some indexes because it access is very very slow. I check that it need one index for each foreign key. I have a lot of tables, and I'm looking for some tools or sql sentences or similar that says me, the index of the tables for each foreign key. For example, I need to know what many index left to me to complete the processes and which it.

Table A
ID (PK)
B1_ID
B2_ID
C_ID
D_ID
...
...

(B1_ID,B2_ID) FK TO TABLE_B
(C_ID) FK TO TABLE C
(D_ID) FK TO TABLE_D


I have create the index in the table A, for table B, but I have not the index for table C and table D.

I have a lot of tables, with many foreign keys.
How can I know what indexes I need create?

Thanks you very much.
This post has been answered by anand prakash - oracle on Jan 31 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2011
Added on Jan 31 2011
2 comments
143 views