SQL Performance (MOSC)

MOSC Banner

Costly SQL to run faster

edited May 23, 2013 5:29AM in SQL Performance (MOSC) 7 commentsAnswered
Hi,
Platform info: Datawarehouse Oracle 11.2.0.2 EE on AIX 6.1
Tables are RANGE partitioned by date: 6 tables involved with 3 having 2 millions rows  and 3 others with hundreds
Block_size:16K

I have a general question:
I got a case where I had a SQL having a cost of 3000 that never returned because of a missing index (nested loop were involved), during the run I saw that billions of consistent gets occured, then I cancelled the query.

I added the index then the plan changed and the cost became 590,000 and the query returned in 4min...

I know that this is pretty generic info but in case there is a simple explanation

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