Avatar of paeddy
paeddy

asked on 

Using DBMS_Profiler or other techniques for procedure profiling - oracle11g

Hi,
    I have a stored procedure which is quite huge.
It gives results but it tends to take some time.
I am trying to see if I can profile it. I have never done this profiling for tuning before.
Can someone explain me how I can profile the procedure?
I want to see which block in the procedure plsql, its taking time..

currently, I used like below:
storedprocedure()
variables....
x integer;
begin
x:=dbms_profiler.start_profiler('Test Profiler');

stored procedure plsql code..

x:=dbms_profiler.flush_data;
x:=dbms_profiler.stop_profiler;
end;
/

After using like this, I am having difficulty how to approach further.. after executing the procedure..


Thanks
Aeddy.
Oracle Database

Avatar of undefined
Last Comment
Sanjeev Labh
ASKER CERTIFIED SOLUTION
Avatar of Swadhin Ray
Swadhin Ray
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of paeddy
paeddy

ASKER

Thank you very much. Really nice and easy to follow the information provided at oracle-base..

I have one question though. I am trying to profile one of the stored procedures. when I run for the first time using the profiler it takes some time to run.
I just ran again to see if it takes the same time, but its extrememly fast during subsequent runs.
Also, if I run during day time at work the procedure runs little slower.
When I come home and run it, remotely connecting to my office pc, it runs much faster.
I am having difficulty to profile the procedure as I am little confused,  as the execution times differ..

Any suggestions please..
SOLUTION
Avatar of Swadhin Ray
Swadhin Ray
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Sanjeev Labh
Sanjeev Labh
Flag of Switzerland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Oracle Database
Oracle Database

Oracle is an object-relational database management system. It supports a large number of languages and application development frameworks. Its primary languages are SQL, PL/SQL and Java, but it also includes support for C and C++. Oracle also has its own enterprise modules and application server software.

81K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo