Link to home
Start Free TrialLog in
Avatar of drcrazy44
drcrazy44

asked on

How to find procedure/package by SQL statement(SQL_TEXT) for tuning

Hi,

Our systems are running well-known ERP and Oracle 8i or above.
We have performance issues.
We can find problematic SQL statements (SQL full text)by monitoring, but we don't know
which procedure/package the SQL statements were executed from.

Could anyone please tell us how to find procedure/packages by SQL text?

Assumption: we did not set module, action, client_info, etc by using
DBMS_MONITOR and DBMS_APPLICATION_INFO packages.

Thank you in advance.
SOLUTION
Avatar of pratikroy
pratikroy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
use statspack. documentation : ORACLE_HOME/rdbms/admin/spdoc.txt
Avatar of drcrazy44
drcrazy44

ASKER

Thank you very much for all.