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!

unindex foreign key

834639Dec 28 2011 — edited Dec 30 2011
HI ,

I run the following query to found the foreign key columns that are not indexed :

SELECT c.owner, c.table_name, c.constraint_name
, c.r_owner, c.r_constraint_name
, r.table_name r_table_name
FROM all_constraints c
, all_constraints r
WHERE c.constraint_Type = 'R'
AND r.owner = c.r_owner
AND r.constraint_name = c.r_constraint_name
AND r.constraint_Type = 'P'

When I Created the indexes on the columns given by the query but this query still shows me the same columns to create indexes which I had already did it.


Thank you for helping me out.


Kind Regards,

Adnan Hamdus Salam
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2012
Added on Dec 28 2011
10 comments
3,340 views