Q

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 first published in May 2005

Dig deeper on Oracle database performance problems and tuning

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close