Ask the Expert

Checking frequency of full table scans

I run the following query: 'select name, value from v$sysstat where name = 'table scans (long tables)' to monitor the size of DB_FILE_MULTIBLOCK_READ_COUNT. Is there a way to know the names of the tables which are experiencing full table scans most frequently? Also is it possible to know the specific query being raised on the table(s) to explore the possibility of creating indexes. The databases in question is Oracle9i and is running on Windows 2000. Really appreciate your insight.

    Requires Free Membership to View

About the only way to know which tables are undergoing full table scans most frequently is to query V$SQL and V$SQL_PLAN. The V$SQL_PLAN view is new for Oracle 9i. From V$SQL_PLAN, you can find out what the execution plan is for each SQL statement. V$SQL will show you the SQL statement as well as the number of times it executed.

This was first published in September 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: