| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: system stats (9205) - can they go stale?
Mark,
Did you recently collect stats for histograms? When you say the query runs fast outside, did you specify bind variables or literal values? 9.x introduced the now-slowly-becoming-infamous bind peeking that has many a DBA scratching their heads wondering why performance see-saws.... Would you able to flush the shared pool and retry the query from the procedure, and if so, does the performance change?
John Kanagaraj <><
DB Soft Inc
Phone: 408-970-7002 (W)
Listen to great, commercial-free christian music 24x7x365 at http://www.klove.com
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of Teehan, Mark
Sent: Thursday, May 26, 2005 3:40 AM
To: 'oracle-l_at_freelists.org'
Subject: system stats (9205) - can they go stale?
Hi all
I have a query on a simple table of a few thousand rows that suddenly takes
minutes instead of < 1 sec; and it is only slow when called from a
procedure. One suspicion is that the system stats are stale; I know queries
on this DB used to drag without the system stats.
Is there any way to tell if the optimizer has suddenly decided that it
doesnt like the contents of sys.aux_stat$ any more?
Rgds
Mark
-- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-lReceived on Thu May 26 2005 - 13:19:06 CDT
![]() |
![]() |