Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Identification of tables NOT being used in the System.

RE: Identification of tables NOT being used in the System.

From: Jack C. Applewhite <>
Date: Fri, 15 Mar 2002 14:13:27 -0800
Message-ID: <>


Instead of the overhead of auditing, how about periodic queries of V$SQL_Text for SQL statements that reference those tables. It should be pretty easy to come up with occurrences and counts for each table, though statements using bind variables could cause low counts for the tables referenced by them.

Heck, you might flush the Shared Pool occasionally and requery V$SQL_Text just to see which tables are the "hottest" - most frequently referenced. That may not be a good idea on a Production DB, though - depends on your application load.

If you bounce your database regularly (for cold backups, for instance), do it right before shutdown.

It's just a quick thought...which I probably absorbed from someone else's posting on this very valuable list. ;-) If so, then my thanks to the originator.


Jack C. Applewhite
Database Administrator/Developer
OCP Oracle8 DBA
iNetProfit, Inc.
Austin, Texas

-----Original Message-----
Sent: Friday, March 15, 2002 3:08 PM
To: Multiple recipients of list ORACLE-L

In our production database environment, I have a list of about 1000 tables ,for which we want to find if these tables are being used by anyone. How it can be done. One of the ideas is that we start database auditing on these tables for a considerable period of time say one month. Then for those tables for which there is nothing in database audit, we assume that tables are not being used. For this option I would like to know if we put auditing on these 1000 tables, how much extra burden it is add onto the system (CPU, Memory etc). We are using Oracle 8.1.6 on HP-UX 11.00. If there are some other alternatives, please let me know. Thanks.

Dharminder Kumar

Please see the official ORACLE-L FAQ:
Author: Jack C. Applewhite

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
To REMOVE yourself from this mailing list, send an E-Mail message
to: (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Fri Mar 15 2002 - 16:13:27 CST

Original text of this message