Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Steps in using the DBMS_PROFILER package.

1048939Jul 29 2014 — edited Jul 29 2014

Hi All,

I would like to collect statistics for my stored procedures using the DBMS_PROFILER Package, but when I run the package using the below sample, I'm getting errors mentioned below. I read the Oracle documentation that you need to have few scripts loaded (PROFTAB.sql.) etc to run this.

Could someone, please give me the exact steps that are needed so I can use this package in my schema. Steps like with which user does the scripts need to be run, whether the scripts need to be run in my schema, or privileges etc., to be granted to the package and so on.

Thanks.

Below is the sample run and errors I'm receiving. I'm using Oracle 11g version.

Sample run:

BEGIN

   DBMS_PROFILER.start_profiler('test_profile');

   test;

   DBMS_PROFILER.stop_profiler;

END;

Error report -

ORA-06528: Error executing PL/SQL profiler

ORA-06512: at "SYS.DBMS_PROFILER", line 123

ORA-06512: at "SYS.DBMS_PROFILER", line 132

ORA-06512: at line 2

06528. 00000 -  "Error executing PL/SQL profiler"

*Cause:    An error occurred in during execution of a PL/SQL profiler

           procedure.

This post has been answered by Manik on Jul 29 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2014
Added on Jul 29 2014
4 comments
632 views