Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Burned by DBMS_STATS **AGAIN**
Jesse,
I was perusing some notes on DBMS_STATS on MetaLink last month because we wanted to start using it regularly. A simple search for GATHER_STALE will help you find them. Anyhow, just about every note I read stated three basic items to do to get this to work right:
It seems to work for us, now.
Dick Goulet
-----Original Message-----
Sent: Monday, April 07, 2003 4:17 PM
To: Multiple recipients of list ORACLE-L
Hey all,
Just upgraded a 3rd-party app's DB from 8.1.6.0.0 to 32-bit 8.1.7.2.0 on 64-bit Solaris. The Oracle install was not standard -- it was "installed" (i.e. files just copied to $ORACLE_HOME) by the 3rd-party installer, and therefore, not patchable with the Oracle Installer. I was using DBMS_STATS successfully on 8.1.6 and am trying to continue using it, but I'm being thrown for a loop. Here's the highly-abbreviated scenario:
As I've done in past headaches when using DBMS_STATS, I checked the DBA_TAB_HISTOGRAMS view and get different counts for the ANALYZE than I do for using DBMS_STATS with a METHOD_OPT of either "FOR ALL COLUMNS SIZE 1" or "FOR INDEXED COLUMNS SIZE 1". I have verified that the ANALYZE uses "SIZE 1", but not the rest of the method_opt (which columns).
So, back and forth I go again -- ANALYZE appears to work better than DBMS_STATS at gathering more accurate object statistics. This leaves me with questions:
What method opt is the default for ANALYZE?
Where the hell is this documented? It's not in the SQL Ref manual. I've
found it once before but can't seem to recall where (see thread "Defaults
for ANALYZE" on 03/04/2002).
Should I bother with DBMS_STATS, sacrificing gathering performance and
reporting for "correct" stats?
If, as Oracle reports, DBMS_STATS is generating correct stats and ANALYZE
isn't, what am I doing wrong?
Should I finish off the Pete's Wicked Ale tonite or go with the Sierra
Nevada Pale Ale?
Frustratedly yours,
Rich
Rich Jesse System/Database Administrator rich.jesse_at_qtiworld.com Quad/Tech International, Sussex, WI USA
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jesse, Rich
INET: Rich.Jesse_at_qtiworld.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Goulet, Dick
INET: DGoulet_at_vicr.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Apr 07 2003 - 15:38:44 CDT
![]() |
![]() |