Probably has been asked before, but i’m looking for a utility, which can
- Identify a particular session and record all activity.
- Able to identify the sql that was executed under that session.
- Identify any stored procedures/functions/packages that were executed.
- And able to show what was passed as parameters into the procs/funcs.
I’m looking for a IDE thats lightweight, fast, available and won’t take 2 day’s to install, i.e something I can get down, install and use in the next 1 hour.
Bob.
The easiest way I can think of to do this is probably already installed in your database – it’s the
DBMS_MONITORpackage, which writes trace files to the location identified byuser_dump_dest. As such, you’d need help from someone with access to the database server to access the trace files.But once, you’ve identified the
SIDandSERIAL#of the session you want to trace, you can just call:EXEC dbms_monitor.session_trace_enable (:sid, :serial#, FALSE, TRUE);To capture all the SQL statements being run, including the values passed in as binds.