Optimizing a sql stamement with Order By caluse
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) */