Link to home
Start Free TrialLog in
Avatar of Mushfique Khan
Mushfique Khan

asked on

Pl/sql package procedure reivew/tuning

DB: Oracle 11gR2

Hi, need some assistance, how one can review/tune a 500 lines pl/sql package, have already tried DBMS_PROFILER, but not good, also able to tune each and every sql within the package too, all the sql looks good, but when executed within this 500 lines package, taking more time then expected.

Is there any way to review/tune this whole package, what exactly it is doing and where exactly is the bottleneck.

Looking for some hints/tips or even some guidelines should work too.

Thanks in advance.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Unfortunately the best way I've found is just adding some debug statements inside the procedure.  Either with dbms_output or at times I create a timing table and insert rows into it as my code runs.

My timing table looks like: create table test_timing(where_am_i varchar2(30), time_stamp systimestamp);

Then as the code executes I insert into it like:
insert into test_timing('Starting run',systimestamp);
commit;

As for tuning the SQL, this is the same way you tune any SQL:  Explain Plan and/or tkprof.
Avatar of Mushfique Khan

ASKER

Hmmm ... means there is no way/technique to review the execution of a pl/sql package in a whole ... ?

Let's wait for some more ... let's see.
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

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
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