Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Tuning Help
Hello everyone,
I have a report that runs for 15 minutes and produces 1500 pages of output. The main query is a UNION ALL of three select statements. On reviewing the tkprof output, the total cpu time for non-recursive calls is only 39 secs.
The query uses indexes on all tables mentioned in the select list and joins them in NESTED LOOPS and then sorts the output.
The optimizer is defaulted to RULE and all tables are analyzed as of date. I have used FIRST_ROWS, USE_HASH, CHOOSE, INDEX hints in the select clauses but could not reduce the run time of the report.
Could anyone provide some comments based on the above information. Is it a problem with the sql statement or should i look some place else??
Any help is greatly appreciated.
Thanks,
Kumar