Home » RDBMS Server » Performance Tuning » performance problem (oracle 10g, windows)
performance problem [message #454558] Thu, 06 May 2010 04:47 Go to next message
klinki
Messages: 2
Registered: May 2010
Junior Member
one and the same sql-query needs from time to time more than 20 times longer (15 minutes) than usual. this query is used twice a day. there is no system to see. sometimes it happens not only once in 20 days. sometimes within 2 days in a row.

does oracle do any work beyond the knowing tasks like gather_schema_stats etc. that are not well known?
Re: performance problem [message #454560 is a reply to message #454558] Thu, 06 May 2010 04:56 Go to previous messageGo to next message
Its_me_ved
Messages: 979
Registered: October 2009
Location: India
Senior Member
Klinki,
Forget for a while what your problem is or what you know. Try to understand what you wrote. Now, Do you think that people here in this forum will understand what you want to say?

Here is the link

Thanks
Ved

[Updated on: Thu, 06 May 2010 04:59]

Report message to a moderator

Re: performance problem [message #454685 is a reply to message #454558] Thu, 06 May 2010 21:35 Go to previous messageGo to next message
Kevin Meade
Messages: 2103
Registered: December 1999
Location: Connecticut USA
Senior Member
don't be too hard on him. I am guessing he is working from a different language and you are looking at a translated version of his initial question. Automatic Language Translaters often mangle the job to humorous effect.

Kevin
Re: performance problem [message #454746 is a reply to message #454558] Fri, 07 May 2010 03:37 Go to previous messageGo to next message
JRowbottom
Messages: 5933
Registered: June 2006
Location: Sunny North Yorkshire, ho...
Senior Member
Based on the very sparse information you've provided, the most likely guess is a bind variable problem.

I will guess that your data has a column with a skewed distribution, such that for one value your query should use an index, and for another value a Full Table Scan would be better.

If your query uses a bind variable for this column, then if the first time that query is run, a value is passed in that causes the CBO to use a Full Table Scan, then all subsequent executions of that query will use a full table scan until the query ages out of the shared pool.

Further details from you may result in a more detailed, or different answer from us.
Re: performance problem [message #455305 is a reply to message #454746] Tue, 11 May 2010 01:37 Go to previous message
klinki
Messages: 2
Registered: May 2010
Junior Member
thank you for your hint. it must have been a bind variable problem indeed. by changing the query, the way of retrieving data has changed. did not really understand the big difference but it works fine and faster than ever.

l.q. klinki
Previous Topic: Optimisation Strategies
Next Topic: Consistent gets reduced but Elapsed time increased.. please help.
Goto Forum:
  


Current Time: Sun May 12 13:56:51 CDT 2024