Database Tuning (MOSC)

MOSC Banner

Optimizing a sql stamement with Order By caluse

edited Aug 15, 2012 6:58AM in Database Tuning (MOSC) 20 commentsAnswered

I have the below sql statement that is called from the Quality form in Oracle EBS 11i. The sql with out the order by caluse runs in 2 seconds, where as with Order by takes about 32 secs.  Since this sql is called from the Oracle form, we have limited options on otimizing this as we do not wan't to customize the form itself. We are on database 10g. Any ideas on how to optimize this?

SELECT /*+ FIRST_ROWS leading(qa_results_v.qr) index_desc(qa_results_v.qr

qa_results_n12) use_nl(qa_results_v.amr qa_results_v.cii) */

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