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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.