Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query taking too long

Status
Not open for further replies.

urgent72

Programmer
Jun 3, 2004
15
US
HI,
I have a oracle stored procedure running through Crystal reports 10.The query is taking too long to retrive the data.Its taking like more than 2 hours to retrive the data.
Any suggestions on how to make is more robust and cut the time down??I am not a DBA and is there any way that i can track why it is taking too long and reduce the output time??any suggestions please.
 
Hi,
Try executing the SP from SqlPlus ( or have whoever coded it do so)..
Have the DBA monitor the excution plan for the SP's
actions..

If possible post the folowing:
The Version of Oracle
Method on connecting ( Native Driver, ODBC ( whose?) , etc)
The SP code..


[profile]


 
hi
i have 120 formula, and 15 views and tables and takes only 1.45 minutes to run, return 10,000,000 records
the problem your having is the linking
you getting loop somewhere
Try to crate a view and bring the table and make your link there then get the field you need for your report

cheers

pg

pgtek
 
I'd guess that you have an inefficient SP.

Follow Turk's suggestions, and also make sure that you're using the Oracle Native connectivity. Your dba should be able to add indexes or suggest alternative means to improve the SP.

Crystal doesn't add much overhead to execution times, it's purely the driver used and the efficiencies of the database.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top