I need to see all queries coming to database. How to do that? I could not get proper results from a Google search.
Enable SQL Trace & all the queries coming to the database will be logged.
ALTER SESSION SET sql_trace = true; ALTER SESSION SET tracefile_identifier = mysqltrace;
The trace file will be present in the udump directory.
If you want to audit the database, look at my previous answer.
2.1m questions
2.1m answers
60 comments
57.0k users