Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I log/trace Oracle stored procedure calls with parameter values?

Tags:

oracle

We're looking for a way to log any call to stored procedures in Oracle, and see what parameter values were used for the call.

We're using Oracle 10.2.0.1

We can log SQL statements and see the bound variables, but when we track stored procedures we see bind variables B1, B2, etc. but no values.

We'd like to see the same kind of information we've seen in MS SQL Server Profiler.

Thanks for any help

like image 489
Clyde Avatar asked Mar 02 '23 05:03

Clyde


1 Answers

You could take a look at the DBMS_APPLICATION_INFO package. This allows you to "instrument" your PL/SQL code with whatever information you want - but it does entail adding calls to each procedure to be instrumented.

See also this AskTom thread on using DBMS_APPLICATION_INFO to monitor PL/SQL.

like image 75
Tony Andrews Avatar answered Mar 04 '23 04:03

Tony Andrews