Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Can we find all queries which run against a production table?

Posted on 2011-09-06
Medium Priority
Last Modified: 2012-06-21
is there a way to find out all the queries which run against a table in a production environment?
Question by:Rao_S
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 77

Accepted Solution

slightwv (䄆 Netminder) earned 500 total points
ID: 36488477
If you have auditing turned on.

If you do not, you can scan the SQL in memory but you will lose past SQL that has been flushed.

What are you looking to do?
LVL 74

Assisted Solution

sdstuber earned 1500 total points
ID: 36488483
with auditting on yes,  if not, no there isn't a reliable way to capture them all
LVL 74

Assisted Solution

sdstuber earned 1500 total points
ID: 36488488

simple example to catpure all activity for a table...


for more info...
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.


Author Comment

ID: 36488670
after i run this:
AUDIT ALL ON schema1.table1;
how i find all sql that ran against the table?
LVL 74

Assisted Solution

sdstuber earned 1500 total points
ID: 36488722
look in dba_audit_trail or your adump directory

depends on your audit_trail parameter.

Author Closing Comment

ID: 36498098
thank you....

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question