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.
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.
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.
Let's wait for some more ... let's see.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.