Problem solve Get help with specific problems with your technologies, process and projects.

Optimizing a query selecting from 10 tables

Are there any ways to optimize a query selecting from around 10 tables? Are there any free tools to optimize or improve the performance of the query in Oracle?

Yes, Oracle supplies trace tools as part of the database server. The first is the ability to trace a database session,...

and there are several ways to do so. The simplest is to issue the SQL statement ALTER SESSION SET SQL_TRACE=TRUE. Oracle8i and Oracle9i offer the DBMS_SUPPORT package, which enables the capture of wait event information. In Oracle10g, DBMS_MONITOR is the preferred means of tracing. The TKPROF utility formats the raw trace files produced by any of these methods. You should consult the documentation, particularly the Performance Tuning Guide.

By the way, a query that joins 10 tables may be a tough one to optimize.

This was last published in May 2005

Dig Deeper on Oracle database performance problems and tuning

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.