SQL Performance (MOSC)

MOSC Banner

sql differences

edited Mar 26, 2014 12:00PM in SQL Performance (MOSC) 3 commentsAnswered

i have a query that executes fast in one database and takes long time to execute in another..i have attached execution plan as good and bad plan

things i noticed are

1.In good plan parallel execution is used

2.PS0CA_CONSTR_HDR doing  a fast full scan  in good plan where as in bad plan it chooses range scan

3.There are no major object differences but i can see in bad plan  additional index are used instaed of full scan in good plan.(both the databases has the same set of indexes)

when i change the indexes in bad plan to invisible parallel is used but still the execution is slow.

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