Solved

Procedure taking long time to execute

Posted on 2011-09-19
5
757 Views
Last Modified: 2013-12-07
Hello Experts,

I have a package under which I have a procedure with 6 input parameter and one as out parameter .
I have created a PLSQL block and executed with passing all correct values but it is taking very long time to execute but before two days it was executed in seconds with same parameters.

How to check what is causing the issue from database side.
0
Comment
Question by:Swadhin Ray
5 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 125 total points
ID: 36559525
speed is not about correct paramters, but about indexes and statistics.
you have to check the explain plan for the querie(s), and see what is eventually "missing" ...
0
 
LVL 13

Assisted Solution

by:stergium
stergium earned 125 total points
ID: 36559536
hello.
you might be using tables that need analyse .
try using analyse [table] compute on the tables that you use on this procedure.
it should improve your perfomance (due to reindexing)
hope that helps
please feed back
0
 
LVL 2

Assisted Solution

by:mehuje
mehuje earned 125 total points
ID: 36559537
Hi Slobaray,
please share the explain plan. that's the first thing you need to check. some of the possible causes is listed below.
1) may be the index is not working.
2) recent change ( bulk data insertion or deletion) in those tables which are being used in the code and don't have any recent statistic. so need to check the statistics.
3) change in init.ora file or in some parameters.
4) may be some background process was running at time you executed the procedure.
5) may be network issue, there is too many traffic in the network.
so once again, try to get the explain plan. also check the server is busy or not.

Regards,
0
 
LVL 76

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 125 total points
ID: 36559647
What does the procedure do?  You might be running into an object lock.

There are a lot of scripts out there that show you how to track locks.

I would start in the online docs:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/manproc.htm#sthref764
0
 
LVL 16

Author Closing Comment

by:Swadhin Ray
ID: 36571637
Thanks for all your inputs, for which I am sharing points to everyone .
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now